ST STM32F3

From SEGGER Wiki
Revision as of 14:17, 28 June 2016 by Niklas (talk | contribs)
Jump to: navigation, search

Option byte programming

The STM32F3 series devices provide some option bytes which allow some "permanent" configuration as well as readout protection for the device. The option bytes become effective after a reset, or, if the read protection is set while a debugger is still connected through JTAG/SWD, become effective after a power-on-reset. The sequence, to program the option bytes consists of multiple read / write accesses to special function registers of the STM32F3 MCU.

Via J-Flash

The sequence to program the option bytes, needs to be added to the exit-steps of the J-Flash project. The exit steps will be executed at the end of an successful auto-programming process (Target -> Auto). This sequence applies for all STM32F3 devices since they are compatible regarding option byte programming and can be adapted to fit custom requirements. The sequence shipped with the J-Flash project sets the Read-Out-Portection (ROP) to level 1. In order to set RDP to level 2, to line commented with "Write new RDP value (RDP = 1)" needs to be changed to "Write 16bit Value: 33CC"


File:STM32F303VC OptBytes.jflash