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
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
??
Is the micro lost forever ??
Thaks in advance
Yes, I also tried that. The flash erase returns ok (Full Chip Erase Done), but then if I try to Download or to start the debugger I get the usual error (Error: Flash Download failed - "Cortex-M3"), both with blinky project any my. I included the option key programming file and its algorithm in my project and then selected Erase Sectors instead of Erase Full Chip as stated in infocenter.arm.com/.../index.jsp It seems to works! Thanks a lot!