Skip to main content
JVan .3
Associate II
November 15, 2021
Question

STM32F469N - Cannot program option bytes, cannot erase flash.

  • November 15, 2021
  • 1 reply
  • 652 views

I've got a custom board with an STM32F469, 32 Mbit of parallel flash, and 64 Mbit of external DRAM. This board had been working fine until an incident where execution or data fetch occurred on the external 32 MBit flash, which had not been programmed. After this happened, the device was unable to be debugged.

Further investigation using the STM32Cube programmer revealed that full chip erase won't work. Trying this results in the error "Error: Mass erase operation failed. Please verify flash protection."

Trying to change the value of the nWRPx bits is unsuccessful.

I also noted that the read out protection value is invalid (0) and cannot be set to the correct value (AA) when I try, I get Error: Option Byte Programming failed.

Any ideas about how to proceed here? I'm using an STLink-V3SET, though I have segger tools available too.

Josh

This topic has been closed for replies.

1 reply

Technical Moderator
November 18, 2021

Hello @JVan .3​ and welcome to the Community :)

Try to strap BOOT0 high and connect to the board in normal mode.

Maybe this post will help you in your issue.

Please let me know if this solved your issue.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks