This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Can't disable Read Out Protection

We had run our STM32F207 Hardware over night with a battery. Now the battery is empty and we can't flash the STM32F207 with Ulink Me (of course with proper powersupply).

Ulink says: Error: Flash Download failed - "Cortex-M3"

We can check the RDP register: the value is 0xff so we are in RDP Level 1.

We try to flash the STM32F207 with the " erase full chip"-Option but Full Chip Erase failed. If we try to flash an other STM32F207-Hardware this works fine.

So we tried to flash \Keil\ARM\Boards\Keil\MCBSTM32F200\Blinky with OPTs set to Level 0 but we can't flash it.

So we have 2 Questíons

How is it posible that the Level change form 0 to 1 without any line of code to do this?
How can we disable the Read Out Protection with Ulink Me?

Parents
  • I have installed the STM ST-LINK Utility Software.

    It shows that Read Out Protection Level is set to 1.
    If I change it to 0 I get the message that the Option bytes could not set.

    11:27:09 : ST-LINK SN : 48FF6A066765565147401467
    11:27:09 : ST-LINK Firmware version : V2J23S4
    11:27:09 : Connected via SWD.
    11:27:09 : SWD Frequency = 4,0 MHz.
    11:27:09 : Connection mode : Normal.
    11:27:09 : Debug in Low Power mode enabled.
    11:27:09 : Device ID:0x411
    11:27:09 : Device family :STM32F2xx
    11:27:09 : Can not read memory! Disable Read Out Protection and retry.
    11:27:29 : Could not set Option bytes! Please reset the target and retry.
    11:27:31 : Can not read memory! Disable Read Out Protection and retry.

Reply
  • I have installed the STM ST-LINK Utility Software.

    It shows that Read Out Protection Level is set to 1.
    If I change it to 0 I get the message that the Option bytes could not set.

    11:27:09 : ST-LINK SN : 48FF6A066765565147401467
    11:27:09 : ST-LINK Firmware version : V2J23S4
    11:27:09 : Connected via SWD.
    11:27:09 : SWD Frequency = 4,0 MHz.
    11:27:09 : Connection mode : Normal.
    11:27:09 : Debug in Low Power mode enabled.
    11:27:09 : Device ID:0x411
    11:27:09 : Device family :STM32F2xx
    11:27:09 : Can not read memory! Disable Read Out Protection and retry.
    11:27:29 : Could not set Option bytes! Please reset the target and retry.
    11:27:31 : Can not read memory! Disable Read Out Protection and retry.

Children