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/HalCoGen: RM46 example_freeRTOSBlinky needs an extra set of declarations to run

Part Number: HALCOGEN

Tool/software: Code Composer Studio

Using HalCoGen 4.6.1, the FreeRTOS initialization fails if the default timer task value of zero are left.  The three values must be set in HalCoGen, or the timer task fails.  I suggest the examples have the descriptive comments updated.

#define configTIMER_TASK_PRIORITY ( 2 )

#define configTIMER_QUEUE_LENGTH 10

#define configTIMER_TASK_STACK_DEPTH ( 128 )

  • Hi NeiBerry,

    Thanks for your suggestions. I will forward your suggestions to our SW team, they will evaluate them and add comments to the sample code.
  • Hi,

    Those parameters can be configured through the HALCoGen GUI. By default, HALCoGen does not enable the timers module provided by FREERTOS. That is the reason, why we kept those values as 0.

    Even in the sample code we provide as part of HALCoGen, we do not make use of timers and hence we use the default values

    Please configure these values in the GUI rather than manually updating the config.h file

    Thanks and Regards,

    Veena

  • I did have the timers enabled.  The Stack Size of Zero results in the failure of setup for the idle task.

    I can believe that you might not need the idle task for the Blinky example to function.

    Using the HalCoGen GUI to make the change is the right choice, I showed the code because it was faster to paste.