cancel
Showing results for 
Search instead for 
Did you mean: 

strange bevaviour of firmware in stm32F100VB

mahapushpa
Associate II
Posted on January 04, 2014 at 16:16

I am using Keil 4.72, STM32F100VB with STLinkV2 for debugging purposes. When system is in debug mode, it looks perfectly but if I flash the chip and run in non debug mode (with SWD connected or removed), firmware do not work properly.

Does anybody seen symptoms like this, I do not change any setting of tool like optimisation etc.

Thanks in advance for any hint to look the problem.

#stm32f100-swd
2 REPLIES 2
Posted on January 05, 2014 at 03:08

I guess I'd look at how structures are initialized, especially auto/local variables. Make sure the stack is adequately sized, and there isn't any timing sensitive code.

Can you share some code that shows this type of behaviour?
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
mahapushpa
Associate II
Posted on January 05, 2014 at 08:57

Yes. You are right, it was due to local/Auto variable. It was not initialize in some cases properly and create the problem. After init, it is fixed and system is working uniformly.