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.

28335使用print()函数程序卡死

在调试28335的程序时想要打印一些程序中的信息方便观察然后调用了printf()函数,程序中#include "stdio.h"包含了这个文件,开始用的时候提示.text段不够大修改了RAM_lnk.cmd文件增大了这个段解决了问题,但是程序运行时只打印一次然后就不再打印了,程序卡死,但是编译的时候并没有报错,有个警告

>> warning: creating output section $build.attributes without SECTIONS
specification

程序的堆栈设置的是0x400

编译器用的是V4.1.3

请教各位有什么解决办法吗,或者改怎么用log_printf(),给个说明文档吧。