Skip to main content
msemegen
Associate III
November 7, 2025
Solved

STM32WB Option Bytes read/write

  • November 7, 2025
  • 1 reply
  • 151 views

Hi!

In AN5289, on page 37, the sequence for writing to Flash memory is described, taking into account potential CPU2 access (semaphores Sem2, Sem6, and Sem7). What does the diagram for writing/reading option bytes look like? Is it the same?

Best answer by msemegen

Here is the implementation that was reviewed with ST support. It also takes into account the fact that the BLE stack may access the Flash memory, and therefore the option bytes as well.


xsoc_stm32wb/rm0434/peripherals/internal_flash/option_bytes.cpp at main · xEmbeddedTools/xsoc_stm32wb

1 reply

msemegen
msemegenAuthorBest answer
Associate III
December 1, 2025

Here is the implementation that was reviewed with ST support. It also takes into account the fact that the BLE stack may access the Flash memory, and therefore the option bytes as well.


xsoc_stm32wb/rm0434/peripherals/internal_flash/option_bytes.cpp at main · xEmbeddedTools/xsoc_stm32wb