Firmware Working in Debug but not on Stand Alone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-12-01 7:08 AM
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
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-12-01 8:01 AM
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.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-12-01 8:01 AM
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.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-12-01 2:04 PM
Are you sure your hardware gives a proper RESET without the debugger ...
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-12-04 9:44 AM
Hi Clive One,
Thanks, that was the answer. Boot 0 was not forced to GND.
