Skip to main content
MJens.2
Associate II
March 18, 2022
Question

HAL_FLASH_Program returns error

  • March 18, 2022
  • 1 reply
  • 1150 views

I'm using the STM32U575 MCU and try to use the "HAL_FLASH_Program". This MCU only allow "FLASH_TYPEPROGRAM_QUADWORD". When trying to program a few words at flash address "80F0000" (page 120) I get the error "FLASH Programming sequence error flag" 

  

My sequence is: Unlock, delete flash page 120, program flash, lock

Maybe someone have an idea what could be wrong?

Thanks in advance - Michael

This topic has been closed for replies.

1 reply

TDK
Super User
March 18, 2022

Here are your options:

0693W00000KdAm8QAF.png 

Figure out which condition you're hitting and fix it.

"If you feel a post has answered your question, please click ""Accept as Solution""."