We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Program Size: Code=296716 RO-data=10516 RW-data=3536 ZI-data=125080
At the compilation time, is the RAM data ( RW-data + ZI-data ) is inclusive of the Stack as well?
Hello Arran,
No, the stack (nor heap) is not included in these numbers. You would place these in their own region, named ARM_LIB_STACK, ARM_LIB_HEAP, or a combined ARM_LIB_STACKHEAP region.
You can generate stack info at linktime with --info=stack:https://developer.arm.com/documentation/101754/0620/armlink-Reference/armlink-Command-line-Options/--info-topic--topic-----armlink-
You may also find this application note useful:https://developer.arm.com/documentation/kan316/latest/
See also:
"UVISION DEBUGGER: Enabling the Stack Usage Watermark Feature"
https://developer.arm.com/documentation/ka002825/latest/
and
"UVISION DEBUGGER: Accessing Stack Usage Watermarking Results
https://developer.arm.com/documentation/ka002216/latest