Skip to main content
Aatif Shaikh1
Associate III
January 4, 2021
Question

How to bypass or reset the Hard fault error?

  • January 4, 2021
  • 2 replies
  • 936 views

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.

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
January 4, 2021

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 VenmoUp vote any posts that you find helpful, it shows what's working..
Vangelis Fortounas
Associate II
January 4, 2021
Error while parsing Rich Text Content