Skip to content

Conversation

@JordanYates
Copy link
Contributor

After writing option bytes, force them to be loaded. Failing to perform this step means the values are never applied and not actually written to non-volatile memory.

This step is documented on the HAL FLASH_OB_RDPConfig function, but nowhere else:
image

image

After writing option bytes, force them to be loaded. Failing to perform
this step means the values are never applied and not actually written
to non-volatile memory.

Signed-off-by: Jordan Yates <[email protected]>
@kartben kartben merged commit a5643a4 into zephyrproject-rtos:main Jan 8, 2025
29 checks passed
@JordanYates JordanYates deleted the 250105_stm32_optb branch January 8, 2025 01:02
@fouge
Copy link
Contributor

fouge commented Jun 19, 2025

hey

are we sure we wanted to merge that?
Using OBL_LAUNCH when setting RDP OB puts the target into a bad state where a POR is awaited, and i don't think it's the expected behavior most of the time, since we are trying to set RDP at runtime.

the more graceful way is to go into standby mode.

https://www.youtube.com/watch?v=f7vs0NwZPFo&list=PLnMKNibPkDnGxKqGyLbiGygmlrvISIBIT&index=5

@fouge
Copy link
Contributor

fouge commented Jun 19, 2025

update: i've been trying to use the Standby mode without success, the RDP option byte isn't loaded on wake up... any clue? 🤔
OBL_LAUNCH locks the MCU and thus needs a power cycle.

cc @erwango

@erwango
Copy link
Member

erwango commented Jun 19, 2025

@fouge Thanks for the update. Would you mind raising an issue to ensure the point doesn't get lost ?

@fouge
Copy link
Contributor

fouge commented Jun 20, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants