cancel
Showing results for 
Search instead for 
Did you mean: 

How to bypass or reset the Hard fault error?

Aatif Shaikh1
Associate III

Hello, I'm working on a project based on STM32F446 controller. In my project, I'm reading and writing some data on the external flash. Its interface to one of the SPI port of the controller. The frequency of data accessing (reading and writing) is a bit high. The device placed in an automobile, and due to the random power cut, sometimes a particular page (which was being accessed during the power cut) of the external flash gets corrupted. Later, when I try to read that page, I get a hard fault. Therefore, I want to know how to reset the "hard fault", clear the interrupt and restore the code without resetting the device. So, I can mark the corrupted page and skip it next time.

2 REPLIES 2

Pull the details from the stack frame and registers, advance the PC and return to the next instruction

Review the ARM TRM if you are unfamiliar with the core's reporting and expectations.​

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