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.

FreeRTOS + TMS570LS3137

Other Parts Discussed in Thread: TMS570LS3137, HALCOGEN

Hi,

I have some questions that I would to ask you. I hope that you will help me. 

I used HalcoGen to generate the code to using FreeRTOS in TMS570LS3137 HDK. 

The first question is related with the MPU.  Is the MPU of FreeRTOS linked with the MPU of the microcontroller? If the answer is not, can I use the MPU configured in HalCogen while FreeRTOS is running?

The second question is about the data allocation in the RAM memory map. When I put the variables in the task using FreeRTOS, they automatically goes to the ".kernelHEAP" section. I used to change it using "#pragma SET_DATA_SECTION" , but it doesnt works in FreeRTOS. Can I create sections within the tasks? Or, can I get the data off ".kernelHEAP" somehow?

  • Good afternoon,

    We have received your question.  One of our experts will review it and respond you soon.

    Enrique

  • Hi Ibon,

    1) Yes MPU of FreeRTOS uses MPU of the microcontroller. Look at os_portmacro.h file to know previledge info on the MPU regions.

    2) I am not a expert at this, but what i realized is when creating the task (restricted) based on the Mode it's executed there is a strict need of the MPU useage. I think if you are not creating a restricted task you need not bind the data sections as tight as HALCoGen does by default. 

    Regards
    Prathap