I’m encountering a hardfault issue with my Raspberry Pi Pico SDK project. My controller gets stuck in a hardfault state, and I am unsure how to handle it properly. Ideally, I would expect the controller to reset itself after a hardfault, but instead, it remains stuck, requiring a manual reset to resume operation.
Here are some details of my setup:
Device: Raspberry Pi Pico W
Development Environment: Arduino IDE 2.0
SDK Version: Raspberry Pi Pico SDK 1.5.1
Debugging Tool: Official Raspberry Pi Debug Probe
Has anyone else faced a similar issue, or does anyone know of an implementation of isr_hardfault in the Raspberry Pi Pico SDK that I can utilize to handle this more effectively? Any insights or suggestions on resolving this would be greatly appreciated.
My major concern is regarding the IMPLEMENTATION OF HARDFAULT HANDLER IN PICO-SDK .
Thank you!
I used Official Raspberry Pi Debug Probe in Arduino ide 2.0 to debug my code . It is providing me with the below given logs .
hardfault error log
I am expecting the controller to reset itself while encountering hardfault.
Agrimote is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.