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.

MSP432 分配内存异常

MCU:MSP432P401R;

SDK:simplelink_msp432p4_sdk_2_20_00_12;

IDE:Code Composer Studio Version: 9.2.0.00013

RTOS:ti Rtos

大家好:我再使用MSP432P401R进行动态内存分配(malloc)的时候,发现如果分配的大小大于Heap剩余大小,分配失败,就会出现系统异常。

在CC26XX/CC13XX的BLE例程以及MSP432 noRTSO例程中,分配失败回return NULL;

请问

1. MSP432+ti Rtos怎么进行内存分配,分配失败可以return NULL?

2.怎样查看Heap剩余大小?

谢谢