ARM Technical Support Knowledge Articles

STM32 FLASH OPTION BYTES PROGRAMMING FAILS

Applies to: MCBSTM32 Evaluation Board

Answer


Information in this knowledgebase article applies to:


QUESTION

I use the Flash Option bytes of the STM32 devices. But if I download my application to Flash ROM, µVision reports the error Flash Download failed - "Cortex-M3". It seems that my application is programmed correctly but not the Flash Option bytes. How can I solve this error?

ANSWER

Please select the Erase Sectors option rather than Full Chip Erase option, under Cortex-M Target Driver Setup - Flash Download as the erase method when downloading to Flash.

The Full Chip Erase option programs the RDP Key (part of the Flash Option bytes) and disables Flash protection. Because of this, it is not possible to program the Flash Option bytes when the Full Chip Erase option is selected.

Full Chip Erase is intended to recover a protected Flash and will execute automatically when Erase is invoked from the Flash menu. When Download is invoked from the Flash menu, then the erase method selected configured in the Flash Download Setup - Download  Function is used.

MORE INFORMATION

SEE ALSO

ATTACHED FILES

Request the files attached to this knowledgebase article.

Article last edited on: 2009-03-19 10:24:36

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential