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.

printf on TMS570 running FreeRTOS

Other Parts Discussed in Thread: HALCOGEN

Hi,

I'm trying to use printf in a working application that uses FreeRTOS generated with HalcoGen.

No matter what I try, I keep getting the following two warnings:

#10247-D creating output section ".sysmem" without a SECTIONS specification FreeRTOS_generated C/C++ Problem
#10210-D creating ".sysmem" section with default size of 0x800; use the -heap option to change the default size FreeRTOS_generated C/C++ Problem

And my program stops at the printf call. I've tried to add a .sysmem section to the linker file, and tried to increase the stack size. This gets rid of the warnings, but the outcome of the program is still the same; it freezes at the printf.

  • Hi,

    I did not use HalcoGen, but instead the demo code from FreeRTOS. I hit the same issue as you, even after adding a .sysmem memory section that redirects to RAM and 0x400 for both stack and heap.

    It started working for me when I explicitly enabled the printf support level (I set it to minimal as the device RAM is not extensive), as shown in the screenshot below:

    Try this and see if it works for you.

    Hope this helps,

    Rafael 

  • Hi Rafael,

    I had tried setting printf support to full, but I hadn't tried minimal. This did the trick for me as well.

    Thanks a lot!