Can someone remind me how the hell to debug Chibios startup code with gdb as it's handing before it gets to main() so 'start' is useless. I've done this before but can't remember how, nor can I find any useful hits through google either in this forum or more generally.
I'm sure it will be a clock issue, but getting to step through the code seems obscure to say the least.
Thanks.
Debug startup code
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: Debug startup code
You may launch the application, keep it running and place a breakpoint in the startup code, press reset.
Giovanni
Giovanni
Re: Debug startup code
I've tried to find an appropriate point for that breakpoint but can't find one that triggers so I'm starting to think it's the damned changes ST made to the 'boot' pin on later processors ie reversing the polarity. No idea why they did that - just causes bloody pain for everyone.
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Return to “Development and Feedback”
Who is online
Users browsing this forum: No registered users and 16 guests