Skip to content

Commit

Permalink
flash_loader: fix typo in the stm32l4 loader
Browse files Browse the repository at this point in the history
  • Loading branch information
Ant-ON committed Mar 27, 2021
1 parent cfff13c commit e4c8240
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions flashloaders/stm32l4.s
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
.global copy
copy:
ldr r12, flash_base
ldr r10, flash_off_bsy
ldr r10, flash_off_sr
add r10, r10, r12

loop:
Expand Down Expand Up @@ -44,5 +44,5 @@ exit:
.align 2
flash_base:
.word 0x40022000
flash_off_bsy:
.word 0x12
flash_off_sr:
.word 0x10
2 changes: 1 addition & 1 deletion src/stlink-lib/flash_loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ static const uint8_t loader_code_stm32l4[] = {
0x08, 0x3a, 0xf0, 0xdc,
0x00, 0xbe, 0x00, 0xbf,
0x00, 0x20, 0x02, 0x40,
0x12, 0x00, 0x00, 0x00
0x10, 0x00, 0x00, 0x00
};

static const uint8_t loader_code_stm32f7[] = {
Expand Down

0 comments on commit e4c8240

Please sign in to comment.