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.

CCS/TMS570LC4357: FreeRTOS debugging in CCS

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

Dear Sirs.

I,m developing a programm using HALCoGen and Code Composer Studio, and also FreeRTOS. I want to check FreeRTOS objects (queues, tasks, timers) state while debugging, and Code Composer have View -> Oter -> FreeRtos for this:

But when i add one of this 4 Lists and start to debug, I just get this situation:

And it continue to fetch without ending.

I believe i should check Generate Runtime Statistics in HALCoGen -> OS -> General when I generate the code for CCS project to use this FreeRTOS Lists, but when I,m checking it and build my project, I get a lot of errors because of using FreeRTOS library:

It tells that we should define a function to setup a base timer, but how can we define it for certain device? FreeRTOS included to project correctly.

Stack:

Debugger XDS110. CCS version 9.1.0. HALCoGen version 04.07.01.

Sincerely, D.K. Tovmachenko.

  • Dmitriy,

    The first issue is likely related to the second and someone will follow up on that.  However I am curious what tool you installed into CCS to get those FreeRTOS debugging plug-ins.  

    Regards,

    John

  • Hi John.

    I'm need to recive CAN messages on TMS570, and this CAN messages comes pretty fast. Also there will be some memory and time wasteful algoritms on microscheme, so I'm using FreeRTOS to create tasks and queues for manage this messages and algoritms. But I need to know whats going on in this tasks and queues while debugging, otherwise my programm will not work correctly. So what is that function we need to define in runtime statistics to make this FreeRTOS lists working?

    Sincerely, D.K. Tovmachenko.

  • Dmitiry

    The apps engineer supporting Free RTOS queries on Hercules family is out this week, so please expect some delay.

    Expect us to get back some time early next week.

    Regards

    Mukul

  • Dmitiry,

    Where did you get those plugins?  I found something similar that I could install from http://freescale.com/lgfiles/updates/Eclipse/KDS via Install New Software in CCS.  However the package is called "FreeRTOS Task Aware Debugger for GDB".  CCS does not use GDB for debugging.  If these plug-ins require you to use GDB then they are not going to work in CCS.  The license also says they are for use with NXP processors only.  Is that what you installed or something else?

  • Hi John.

    I didn't take those plugins from 3rd party software, I'm using TI HALCoGen for generate code for CCS project, and HALCoGen also generate FreeRTOS files FreeRTOSConfig.h and FreeRTOS.h. I want to use FreeRTOS objects as queues and tasks, so I included FreeRTOS.h in my main.c file and investigated that in CCS->View->Other there is some additional FreeRTOS fields as I showed in previous messages.There is NXP label near this fields, but I want to know, can I use it in Hercules processor or not? FreeRTOS objects working correctly, but those debugging fields cant take any data from debug probe.

    Sincerely, D.K. Tovmachenko.

  • Dmitriy,

    Those plug-ins come from NXP and are licensed to be used on NXP processors only.  You would be violating the license to use them on TI processors.  We do not ship those plug-ins with CCS.

    Regards,

    John

  • Hi Jonh.

    Thank you for your help.

    Regards, D.K. Tovmachenko.