Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[feature] Writing option bytes of STM32F091RCT6 #458

@vladiks

Description

@vladiks

Hello, I am trying to write option bytes of STM32F091RCT6 using Stlink/v2. Bytes start at address 0x1FFF F800 and occupie 1024bytes. I need to write just first four bytes, but writing 1024 would not be problem.

I thought, I could do this using command:

st-flash write optionBytes.bin 0x1FFFF800

but the output is:

2016-08-19T11:31:25 INFO src/common.c: Loading device parameters....
2016-08-19T11:31:25 INFO src/common.c: Device connected is: F09X device, id 0x10006442
2016-08-19T11:31:25 INFO src/common.c: SRAM size: 0x8000 bytes (32 KiB), Flash: 0x40000 bytes (256 KiB) in pages of 2048 bytes

So I guess nothing is written which I could verify by reading the same content as before (I can read proper default values using read at this address).

St-flash version is 1.2.0. OS Linux raspberry 4.1.7+ armv6l

Basic question - is it even possible to write option bytes using this tool?

Thanks for help

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions