2014-01-04 07:16 AM
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-swd2014-01-04 06:08 PM
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?2014-01-04 11:57 PM
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.