cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_FLASH_Program returns error

MJens.2
Associate II

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

1 REPLY 1
TDK
Guru

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".