Skip to content

Commit 0867602

Browse files
committed
Fix RCC address for G4 bootstrap gpio setup
1 parent 8bb9a9f commit 0867602

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcu/stm32g4xx.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Reset_Handler:
170170
/* checking bootstrap pin */
171171
ldr r1, = DFU_BOOTSTRAP_GPIO
172172
movs r2, BOOTSTRAP_RCC
173-
strb r2, [r0, RCC_AHB2ENR]
173+
strb r2, [r5, RCC_AHB2ENR]
174174
movs r2, 0x03
175175
lsls r2, (DFU_BOOTSTRAP_PIN * 2)
176176
ldr r3, [r1, GPIO_MODER]

0 commit comments

Comments
 (0)