AnsweredAssumed Answered

STM32L151C6 RAM variables initialization

Question asked by Tobias on Sep 13, 2013
Latest reply on Sep 13, 2013 by Clive One
Hi all,

I am creating code for the STM32L151C6U6 Microcontroller with IAR EW for ARM V6.60. I am now facing a serious problem that seems to lie in the "__iar_data_init3" startup function. For this special case (Optimizationlevel = low, code size near 32kB) all static RAM variables are not initialized correctly. When removing some code or changing the optimization level, i.e. reducing the code size, it works again. When using exactly the same code on the STM32L151CBU6 (128kB) it also works. I would now like to know whether this is a problem coming from IAR or from STM. In the latter case I would assume that someone before has witnessed this behaviour?