Skip to main content
Jesus Villalobos
Associate
July 5, 2018
Question

Increasing ZI Data crushes the application

  • July 5, 2018
  • 1 reply
  • 616 views
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

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    July 6, 2018
    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 VenmoUp vote any posts that you find helpful, it shows what's working..