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.

CC1310: Memory_getStats() causes crash

Part Number: CC1312R

simplelink_cc13x2_26x2_sdk_4_30_00_54

Collector / Sensor examples

RTOS, no FH and non-beacon mode

IAR IDE and compiler: 8.50.9

Hi,

I'm trying to get some idea of heap usage during runtime on my custom board, but my application crashes calling Memory_getStats();

I also tried HeapTrack_create(); calling a NULL heap but the same thing happens.

I have defined HEAPMGR_METRICS and the code compiles fine.

In app.cfg, HEAPMGR_CONFIG = 0x80;

What am I missing?

#include "xdc/runtime/Memory.h"     
...
...
... Memory_Stats stats; Memory_getStats(NULL, &stats);

Thanks,

Andy