This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TivaWare graphics library for TI-RTOS

Hi,

I am trying to use the TivaWare graphics library in a TI-RTOS project (working with the EK_TM4C1294XL launchpad and a lcd touch screen).

I am getting the run-time error message shown in the screenshot below. It occurs whenever it reaches the WidgetMessageQueueProcess() function used to process touch event messages. I've placed this function in a RTOS task so that it continuously checks for touch events. BUT the program terminates at the this function.

Any tips on how I can fix this please?

Thanks in advance!

  • Christopher,

    You PC register is zero. This looks bad to me. This might happen if you are using a function pointer which is NULL.

    Which project are you using or did you write your own? Have you initialized the graphics library?

    For a touch screen, it is usually done in two drivers. One for output (rendering to the screen) with GrLib and one for input (dealing with the touch events). For input, you usually get an interrupt when the screen is touched, so you don't have to constantly poll the device.

    TI-RTOS ships the TivaWare drivers, but unfortunately, we don't ship the TivaWare examples (they have been removed). Try downloading the TivaWare driver product and then look for an example using the Graphics Library.

    http://www.ti.com/tool/sw-tm4c - TivaWare for C Series
    TivaWare_C_Series-2.1.1.71/examples/boards/ek-tm4c1294xl-boostxl-kentec-l35/grlib_demo

    ~Ramsey