cancel
Showing results for 
Search instead for 
Did you mean: 

READ PROTECTION can't be removed

stst9184
Associate II
Posted on February 11, 2015 at 15:44

We've got a new board and we can't flash them. I am sending an output from STVP

> Programming  OPTION BYTE area...

Removing *READ PROTECTION* option, this will ERASE all the device flash memory!

< OPTION BYTE programming completed.

> Verifying OPTION BYTE area...

Error : The device is protected

Operation aborted

Error : < OPTION BYTE verifying failed.

What can I do?

#damaged-flash #stvp #option-bytes
13 REPLIES 13
stst9184
Associate II
Posted on February 12, 2015 at 18:16

18:15:22 : ST-LINK SN : 57FF6D064966505517161667

18:15:22 : ST-LINK Firmware version : V2J23S4

18:15:22 : Connected via SWD.

18:15:22 : SWD Frequency = 1,8 MHz.

18:15:22 : Connection mode : Connect Under Reset.

18:15:22 : Debug in Low Power mode enabled.

18:15:22 : Device ID:0x413

18:15:22 : Device family :STM32F40xx/F41xx

18:15:23 : Can not read memory!

                  Disable Read Out Protection and retry.

18:15:36 : Could not set Option bytes!

                  Please reset the target and retry.

18:15:37 : Can not read memory!

                  Disable Read Out Protection and retry.

Posted on February 12, 2015 at 18:26

What is ''System Loader''?

The ROM based loader in the STM32, it can be used to prod the devices internals, and provides a secondary method of access to the device.

https://www.google.com/search?q=stm32+system+loader

You might also want to try doing boundary scan of your board, or inspect/x-ray for solder shorts or other mundane manufacturing issues.

As Jack indicates there might be other causes, but I'd start with manufacturing, handling and process issues, and rule them out first.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
stst9184
Associate II
Posted on February 12, 2015 at 20:02

Ok we have ULINK2, ULINKPro which are too expensive for boundary scans. What is recommended for it. is it enough this https://www.olimex.com/Products/ARM/JTAG/ARM-USB-TINY-H/ ? or better something else?

Posted on February 12, 2015 at 20:37

We're not using a commercial solution, we have in-house tools and hardware that tickle the JTAG scan chain directly. A printer port base Wiggler would probably suffice, or an STM32 SPI type arrangement, or GPIOs

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..