Skip to content

Commit c70d6a8

Browse files
committed
Fix FLASH_SR cleanup in F0 and F103
closes dmitrystu#45
1 parent 8e6caaf commit c70d6a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mcu/stm32f0xx.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ Err_verify:
395395
movs r0, 0x07 //errVERIFY
396396
.L_exit:
397397
/* clear FLASH_SR */
398-
movs r4, 0x64
398+
movs r4, 0x34
399399
str r4, [r3, FLASH_SR]
400400
/* locking flash */
401401
movs r4, 0x80

mcu/stm32f103.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ Err_verify:
370370
movs r0, 0x07 //errVERIFY
371371
.L_exit:
372372
/* clear FLASH_SR */
373-
movs r4, 0x64
373+
movs r4, 0x34
374374
str r4, [r3, FLASH_SR]
375375
/* locking flash */
376376
movs r4, 0x80

0 commit comments

Comments
 (0)