Hi Qorvo Team,
I have a list to queries regarding memory usage in DWM3001CDK:
- Is it possible to calculate the available memory (ROM) using thread command in the CLI or by using any other method?
This is the output of thread command.
Here we have observed total heap as 51200, Can we consider it as 51kb or 51mb.
- How to identify the RAM availability in DWM3001CDK using any FreeRTOS command?
Hi,
The THREAD
command provides you only RAM memory consumption. All figures are given in Bytes.This command provides you the size of the heap and its current usage for each thread. The 3 last lines provides statistics on the heap (total available, currently used, max used).
To see values moving, you can issue this THREAD
command while the device is ranging.
To see how are retrieved these statistics take a look at Libs\uwb-stack\libs\qosal\src\freertos\qprofiling.c
:
- qstackstat_get for stack statistics
- qmemstat_get for heap statistics
For ROM consumption, the easiest is to recompile the application and get the statistics at the end of the build.