Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Program option bytes on STM32G4xx
#5
I think I'm pretty close, I'm at the final step and need help with reconnecting to the target.
From the reference manual:
Quote:Option byte loading
After the BSY bit is cleared, all new options are updated into the Flash but they are not
applied to the system. They have effect on the system when they are loaded. Option bytes
loading (OBL) is performed in two cases:
– when OBL_LAUNCH bit is set in the Flash control register (FLASH_CR).
– after a power reset (BOR reset or exit from Standby/Shutdown modes).
Option byte loader performs a read of the options block and stores the data into internal
option registers. These internal registers configure the system and cannot be read with by
software. Setting OBL_LAUNCH generates a reset so the option byte loading is performed
under system reset.

So the CPU does a reset to take the new options into use when setting OBL_LAUNCH bit. 
I can see this as EBlink seems to loose connection with the target.
How do I tell EBlink to reconnect so the script can continue?
Attached is what I have so far.


Attached Files
.zip   stm32g4_options_scripts_v0.0.zip (Size: 5.63 KB / Downloads: 55)
Reply


Messages In This Thread
Program option bytes on STM32G4xx - by matsb - 22-11-2022, 12:59 PM
RE: Program option bytes on STM32G4xx - by embitz - 23-11-2022, 09:38 AM
RE: Program option bytes on STM32G4xx - by matsb - 24-11-2022, 09:10 AM
RE: Program option bytes on STM32G4xx - by embitz - 24-11-2022, 10:52 AM
RE: Program option bytes on STM32G4xx - by matsb - 25-11-2022, 03:27 PM
RE: Program option bytes on STM32G4xx - by embitz - 25-11-2022, 07:36 PM
RE: Program option bytes on STM32G4xx - by mri - 25-11-2022, 09:03 PM
RE: Program option bytes on STM32G4xx - by embitz - 25-11-2022, 09:14 PM
RE: Program option bytes on STM32G4xx - by embitz - 25-11-2022, 09:20 PM
RE: Program option bytes on STM32G4xx - by mri - 25-11-2022, 10:38 PM
RE: Program option bytes on STM32G4xx - by embitz - 26-11-2022, 04:11 PM
RE: Program option bytes on STM32G4xx - by matsb - 28-11-2022, 09:48 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)