cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F407VG - write protection after power supply failure

krolik
Associate
Posted on June 12, 2013 at 18:01

After power supply failure the processor is locked for writing. I've tried many ways to solve this, but with no result.

Processor refuses programming. Every attempt to change ''Option bytes'' with st-link utility finishes with:

15:29:23 : Could not set Option bytes! 

                  Please reset the target and retry.

Processor communicate through JTAG, but it's impossible to change RDP in any way.

I've tried:

1. St-link utility (result above)

2. openocd + ''stm32f2x unlock 0'' - no error message but proc is still locked

3. openocd + mww, mdw commands with instructions from reference manual, but registry values aren't changed.

Registry  ''Flash option control register (FLASH_OPTCR)'' value is set to 0x0fffffec. 

What else can I do to unlock?
1 REPLY 1
frankmeyer9
Associate II
Posted on June 12, 2013 at 18:41

What else can I do to unlock?

 

Starting into bootloader mode (with pulling BOOT0 up while) power-up, and trying a mass-erase or unlock with the Flash Loader Demonstrator software (from ST's website).