2015-08-27 07:47 AM
Hi
We are using STM32F302C, schematic is attached. some boards when powered on take more than one minute in order to get the application running, this problem happens only in stand alone mode ''without connecting ICD'' but when we are debugging and connecting ICD the boards starts immediately . We tried to change the crystal but didn't solve the problem, any recommendations Best Regards Hossam Alzomor2015-08-27 09:19 AM
Hard to say, I'd probably get the USART1 (PA9/PA10) up and functional very early in the Reset Handler, and try to identify where the system was stuck/hung-up.
As mentioned in your other thread, you likely have an issue with the reset circuit.2015-08-27 12:26 PM
Simple - you need oscilloscope. Check OSC_IN, RST and VDD signals. They should get stable ''fast'', not in minutes.
I HW looks ok then go to SW. There's probably one part in code which causes system to be slow so you need to trace it down. Take few unused pins, make them outputs in SW at very beginning and connect them to oscilloscope. At some certain initialization steps in SW turn the pins high/low so you can see in which stage the program is. If you get closer to the ''slower stage'' then add more pin toggling commands into that stage and pinpoint the reason.