2020-12-08 10:28 PM
When debugging, I saved the data in flash memory successfully and at soon the HardFault_Handler happened ,way? I used the same function in examples and the same Flash memory address.
2020-12-09 01:05 AM
Show a disassembly of the section of code that actually faulted, and the registers at the fault. The handler code is of no interest.
Make sure the memory is erased and aligned, and that you're not trying to reprogram within the flash line.