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.

Compiler/TMS320F28379D: sprintf does not work and the system crasches (reboot)

Part Number: TMS320F28379D

Tool/software: TI C/C++ Compiler

Old question:

sprintf / __TI_printfi is corrupting stack [C2000]

32995
Sal Pezzino

Replies: 2

Views: 869

\ti-cgt-c2000_6.4.2\lib\src\sprintf.c

I am seeing sprintf corrupt the stack.  It is filling the stack with about 0x200 words of 0x0020.

I am not sure why it is doing this. We are using the LDRA test suite which inserts sprintf to communicate via SCI/UART back to the Host PC.  And sprintf is corrupting the stack.

Does anyone have any idea what the problem could be?

Does anybody have a solution to this issue?

I have already increased my system stack to 0x700 and running with full support on printf, but its not fixing the problem.

Best regards

Carsten