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.

CCS malloc 返回NULL

Other Parts Discussed in Thread: CC3200

我用CCS6.2 新建了一个很简单的cc3200的工程, 只有一个文件,文件内容是个简单的测试代码

int main(void)
{
    BoardInit();
    PinMuxConfig();
 InitTerm();
 DisplayBanner(APP_NAME);
 {
 char* test = malloc(100);
 if(test == NULL)
  Message("alloc test fail");
 else
  Message("alloc test success");
 }
 return 0;
}
打印的结果是malloc  返回总是null, 使用malloc是不是要开启什么宏或者要进行一些配置?
x 出现错误。请重试或与管理员联系。