2021-01-04 12:31 AM
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.
2021-01-04 01:00 AM
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.
2021-01-04 01:30 AM