Keil™, An ARM® Company

Technical Support

MCBSTM32: STM32 FLASH OPTION BYTES PROGRAMMING


Information in this article applies to:

  • RealView MDK V3.23 or higher
  • MCBSTM32 Evaluation Board

QUESTION

I would like to use the Flash Option bytes of the STM32 devices. Is there a way to program the device using the ISP interface?

ANSWER

By default, new projects select the CPU algorithm STM32F10x Flash (from the device database). This means the CPU programs the on-chip FLASH ROM.

However, you may also program the Flash Option bytes using the CPU algorithm STM32F10x Flash Options. For the STM32 devices the following Flash programming algorithms are available:

  • STM32F10x Flash: programming via CPU
  • STM32F10x Flash Options: programming via CPU

When programming Flash Option bytes is required, then add file ..\ARM\RV31\Startup\STM32F10xOPT.s to your application. Use the Configuration Wizard to configure the Flash Option bytes. Add STM32F10x Flash Options to the used Programming Algorithms.

A programming example is provided as part of the RealView Microcontroller Development Kit in the folder ..\ARM\Boards\Keil\MCBSTM32\Blinky.

MORE INFORMATION

  • ST Microelectronic Programming Manual STM32F10xxx Flash programming.

Last Reviewed: Monday, September 15, 2008


Did this article provide the answer you needed?
 
Yes
No
Not Sure