cancel
Showing results for 
Search instead for 
Did you mean: 

Option Bytes programming by Keil

Zheng Liang
Associate III

I'm trying to program option bytes in STM32G4 series by Keil, I did steps below but still some problem exists:

  1. Add "STM32G4xx_SB_OPT.s" file from Keil pack directory to project
  2. Add "STM32G4xx dual bank Flash Options" algorithm in Flash Download tab

I still got a "Contents mismatch at: 1FFFF7802H", and the option byte semms not programmed right yet.0693W00000Lz9XFQAZ.png 

Anyone successed using "STM32G4xx dual bank Flash Options" program the option bytes? What points I missed?

1 REPLY 1
AnDaVa
Associate

Hi,

 

Items 1 and 2 must be consistent.
If you use the dual bank for the *.s you have to use the dual bank for the Flash Options as well.

STM32G4xx_DB_OPT.s ---> STM32G4xx dual bank Flash Options

STM32G4xx_SB_OPT.s ---> STM32G4xx singol Flash Options