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?
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