cancel
Showing results for 
Search instead for 
Did you mean: 

Firmware Working in Debug but not on Stand Alone

ignasi
Associate II
Posted on December 01, 2017 at 16:08

Hi,

I'm developping a firmware with a stm32f405zgt6

Unfortunatly, I debug the code, step by step, and it's working fine, but then, when my board is on stand alone mode, the firmware is not working. It looks it even didn't start.

Any idea or tip about such a behaviour?

Thank you very much

1 ACCEPTED SOLUTION

Accepted Solutions
Posted on December 01, 2017 at 17:01

Assuming a custom board, make sure BOOT0 is pulled low.

Add instrumentation so that it outputs status and progress via a serial port, or use a GPIO/LED. Use check points starting at Reset_Handler to see how far it is getting.

Add status output to obvious failure points, like ErrorHandler() and Hard Fault Handler, so you know if it stuck there. Also anywhere you have while(1) loops where things might get trapped.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

3 REPLIES 3
Posted on December 01, 2017 at 17:01

Assuming a custom board, make sure BOOT0 is pulled low.

Add instrumentation so that it outputs status and progress via a serial port, or use a GPIO/LED. Use check points starting at Reset_Handler to see how far it is getting.

Add status output to obvious failure points, like ErrorHandler() and Hard Fault Handler, so you know if it stuck there. Also anywhere you have while(1) loops where things might get trapped.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on December 01, 2017 at 23:04

Are you sure your hardware gives a proper RESET without the debugger ...

Posted on December 04, 2017 at 17:44

Hi Clive One,

Thanks, that was the answer. Boot 0 was not forced to GND.