2025-06-03 7:52 AM - edited 2025-06-03 7:52 AM
The chip is H743. After performing a erase operation on a page and resetting it, when I read the page again, the debug page shows that the erased page is 0xAA. As long as I read it, I will enter hardfault. Have you ever encountered a big shot,
2025-06-03 8:22 AM
How are you erasing the page? Try erasing in STM32CubeProgrammer instead and see if you can duplicate the behavior.
2025-06-04 6:45 AM
Hello @奥特曼9527 and welcome and the community;
May this article How to debug a HardFault on an Arm® Cortex®-M STM32 can help you to debug the HardFault.
Also, you can take a look at this FLASH_EraseProgram example and check your code.
I hope this help you.
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.