2018-07-05 02:25 PM
Hello,
I am working on an application that uses the STM32F207IGT6 microcontroller, using uVision 5.21.1 as IDE. This is a legacy application that has been working for months now, but it needs an update to add functionallity.
My problem here is that any time I add a global (thus increasing the ZI-data size), the application hangs during the initialization process for a while and then reboots the system. When debugging, If a stop the code during the 'hanging period', it shows that it is executing code in flash address way outside the memory space I am expecting the application to reside, probably just garbage code.
I don't understand here how increasing the RAM size (ZI-data) can affect the performance of the application. Any help is much appreciatted.
Thanks
2018-07-05 06:05 PM
In Keil increasing the statics moves the stack higher.
Make sure the stack is sufficiently large, perhaps measure the actually usage, and fill with non-zero data.
Make sure auto/local variables are properly initialized.
Add diagnostic/telemetry to understand flow/behaviour before failure.