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.

TMS320C6678: 串口中断初始化后,调用stdlib.h文件一些函数出现卡死现象。

Part Number: TMS320C6678


最近在使用6678开发板,串口、GPIO、Timer等中断都已经完成,但是遇到一个问题,在进行中断初始化的时候,要使用CSL_intcInit()函数初始化,这句代码是中断初始化过程中必须调用的,调用了这句代码之后,再调用stdlib.h文件里面的一些函数比如malloc()和rand()函数,出现卡死,执行到次行之后不再往下执行。如果在中断初始化之前调用malloc()或者rand()是可以运行的不会卡死,一旦调用CSL_intcInit()函数之后再调用这些函数就会卡死。

代码如下:

正常执行:

异常执行: