FLASH_EraseProgram example code for STM32CubeU3 not working. fails in erasing
I am running the FLASH_EraseProgram example code provided by STM32CubeU3. the code fails in erasing the flash and enters ErrorHandler.
I have verified the FLASH_USER_START_ADDR & FLASH_USER_END_ADDR. it is set as follows.
#define FLASH_USER_START_ADDR ADDR_FLASH_PAGE_128 /* Start @ of user Flash area */
#define FLASH_USER_END_ADDR (ADDR_FLASH_PAGE_255 + FLASH_PAGE_SIZE - 1) /* End @ of user Flash area */
I have tested in both debug and run mode, it is not working as expected. Is anything to be modified to run the code.
regards,
Rajath
