Hello,
I notice that there is a memory region table shown when the program is compiled.
Memory region Used Size Region Size %age Used
FLASH: 106392 B 960 KB 10.82%
SRAM: 33848 B 178968 B 18.91%
IDT_LIST: 0 GB 2 KB 0.00%
1. How can I used up all the RAM and flash? For example, nRF9160 has 1 MB flash + 256 KB RAM. But there is a difference between 178968B and 256KB.
2. How can I adjust the memory size? In prj.conf?
CONFIG_HEAP_MEM_POOL_SIZE=16384
CONFIG_MAIN_STACK_SIZE=8192
3. Also, why I have to define MAIN_STACK_SIZE/MEM_POOL_SIZE in prj.conf?
4. Main stack size/K_THREAD_STACK_DEFINE located in flash or RAM? Is there any references I can refer to?