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.

TMS570LS3137: FreeRTOS not using RTI driver

Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN

I found myself wanting to use the RTI driver to program/access the 2nd freerunning counter while letting FreeRTOS use the first one. A little digging and I notice that HalCodeGen is configured *not* to generate the RTI driver if FreeRTOS is being used, and FreeRTOS directly configures the RTI.

Is there a reason for this? Ideally FreeRTOS should force the generation of the RTI drive and use it. But maybe I'm missing something. 

  • Hi Rob,

    The HALCoGen only enabled 1 RTI compare for freeRTOS.

    You can add other RTI compares to prvSetupTimerInterrupt() function.
  • prvSetupTimerInterrupt() is in os_port.c
  • Thanks.

    I guess my question was why you're not using the RTI driver that HCG will generate? I haven't looked closely, but it seems like it should do what we want - and then it's available for anyone else to use as well..

    Also, on a slightly different note, FreeRTOS is at release 10.1.0 but it's not clear what HCG is using, or how to update it.

    Could you perhaps write up the process so I can be sure I'm using the latest FreeRTOS?  

  • Hello Rob,

    Checked with HalCoGen developer that we don't have plan to port the latest FreeRTOS to HalCoGen. The freertos used by HalCoGen is 8.2.freertos.

    I don't have the procedure to port new freertos to our device. HALCoGen provides a link to freeRTOS quck start guide: