Skip to content

Commit 4e22018

Browse files
zfieldsfpistm
authored andcommitted
fix: Stabilize SWD Programming for Swan (STM32L4R5)
Previous value for `BluesW.menu.upload_method.swdMethod.upload.options` causes option bytes to become corrupted. Fix leverages `ERASE` option provided by `stm32CubeProg.sh`, which includes `-e all` in the parameters provided to `STM32_Programmer_CLI`.
1 parent a04d6e1 commit 4e22018

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

boards.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -5828,8 +5828,8 @@ BluesW.menu.pnum.SWAN_R5.build.peripheral_pins=-DCUSTOM_PERIPHERAL_PINS
58285828

58295829
# Upload menu
58305830
BluesW.menu.upload_method.swdMethod=STM32CubeProgrammer (SWD)
5831-
BluesW.menu.upload_method.swdMethod.upload.protocol=0
5832-
BluesW.menu.upload_method.swdMethod.upload.options=-g -ob nBOOT0=0 -ob nBOOT0=1
5831+
BluesW.menu.upload_method.swdMethod.upload.protocol=10
5832+
BluesW.menu.upload_method.swdMethod.upload.options=-g
58335833
BluesW.menu.upload_method.swdMethod.upload.tool=stm32CubeProg
58345834

58355835
BluesW.menu.upload_method.serialMethod=STM32CubeProgrammer (Serial)

0 commit comments

Comments
 (0)