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

Error: Flash Download failed - "Cortex-M3" after FLASH_EnableWriteProtection

Hi.

I was trying to protect my custom bootloader pages but the call

FLASH_EnableWriteProtection

always returned with error, so I followed the advice at

www.st.com/.../forums-cat-8438-23.html

and found that

FLASH_EnableWriteProtection

returned SUCCESS if called after

FLASH_EraseOptionBytes

Sice then however, I'm not able to re-program the board (MCBSTM32) and i always get the message:

Error: Flash Download failed - "Cortex-M3"

I tried the suggestion at

http://www.keil.com/support/docs/3342.htm

but it didn't works (not much related to my problem because if I try to program a different board - another MCBSTM32 - I have no problems).

Maybe I should have restored the content of the option register after the call to

FLASH_EnableWriteProtection

??

Is the micro lost forever ??

Thaks in advance