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.

TI-RTOS中断中分配内存malloc,导致程序崩溃

Hi,

我们项目采用的OMAPL138+TI-RTOS操作系统,最近在代码中创建了一个timer的定时器中断函数,在函数里面用到了malloc来分配一小块内存。

但是程序每次运行到中断函数内的malloc时,就会崩溃。

请问,用TI-RTOS创建的timer定时器中断函数里面,是不能用malloc函数吗?

谢谢。