This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Heap and stack size interpretation

Hello, i would like to know what is actual heap and stack size because in segger memory usage i see that 8kB stack and 8 kB heap, but in my runtime memory view options i have 1024 B heap and 1024 B stack. Is this 1024 B for user program. And 8kB for softdevice?

 .

Parents
  • Hi,

    The actual heap and stack size is what's shown in the "Memory Usage" view. But I'm not sure why the project settings are not being applied in your case. Did you apply it to the "common" configuration as shown below?

    Generated linker script reflects settings above:

    Section placement file use the __HEAPSIZE__ and __STACKSIZE__ symbols

Reply
  • Hi,

    The actual heap and stack size is what's shown in the "Memory Usage" view. But I'm not sure why the project settings are not being applied in your case. Did you apply it to the "common" configuration as shown below?

    Generated linker script reflects settings above:

    Section placement file use the __HEAPSIZE__ and __STACKSIZE__ symbols

Children
  • Common section shows that it is 1024 but when i open linker script it shows 8192 but if i change it in linker script segger runtime shows 1024 and if i go to common it shows 1024 and now if i change size in common it works in linker too. Everything works fine now. Thank you.