cancel
Showing results for 
Search instead for 
Did you mean: 

Increasing ZI Data crushes the application

Jesus Villalobos
Associate II
Posted on July 05, 2018 at 23:25

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

1 REPLY 1
Posted on July 06, 2018 at 03:05

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..