We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
I'm using the MCBSTM32E board with STM32F103ZE uC.
If I declare an enumeration type as 'static' in a function or as a global variable then the compiler signals no error or warning but the application simply does not run.
typedef enum{ first=1, second=2 }TeMyEnum; void vMyFunc(){ static TeMyEnum eMyEnum=second; }
Where do I go wrong?
Thanks Henk
simply does not run
What DOES happen?
My testprogram let's some Led light up on the development board. Now nothing happens with the Leds. (I think the board stays in bootmode)
It has to do with 'static'. As soon as i declare a static variable inside a function this misbehaviour occurs.
Henk
What bootloader do you mean? A secondary or the built-in one? If it's a secondary, do you use scatter loading? Are you sure the internal flash space of the bootloader and the application does not overlap? far fetched I know, but so is your description of the problem...