RAM usage not affected by heap/stack size

Hi,

working with nRF52840 with S140 v7.2.0, not sure about SDK version. VS Code + ARM GCC + LD Gold linker.

I changed stack and heap sizes via __HEAP_SIZE and __STACK_SIZE defines. Change is confirmed by .map file, but RAM usage(reported by linker flag --print-memory-usage) is not affected.

No matter what size I set to defines, RAM usage reported by linker stays the same.

How to fix this?

Related