Keil Logo


Information in this article applies to:

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


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?


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.


  • ST Microelectronic Programming Manual STM32F10xxx Flash programming.

Last Reviewed: Monday, September 15, 2008

Did this article provide the answer you needed?
Not Sure
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.