2025-07-17 7:33 PM
STM32H523HEYX Flash Write Issue
1.
I’m currently working on a project using the STM32H523HEYX.
I'm using STM32CubeIDE, and the firmware libraries are up to date.
I’m also using STM32 X-CUBE-FREERTOS.
I’m trying to write data to Flash memory using the following functions:
2. HAL_FLASHEx_Erase(...);
HAL_FLASH_Program(FLASH_TYPEPROGRAM_QUADWORD, ASDF, (uint32_t)&quadData[0]);
However, the code triggers a HardFault when executed.
3. When I run the same code on a STM32H533 Nucleo board, it works without any fault and writes to Flash successfully.
4. I'm not sure why this Flash issue only occurs on the STM32H523HEYX.
If anyone has experienced a similar issue or knows of any related problems, I’d appreciate your advice.
Thank you, fellow developers!