kopia lustrzana https://github.com/stlink-org/stlink
flash_loader: fix typo in the stm32l4 loader
rodzic
32ba234b30
commit
7cfab876e7
|
@ -12,7 +12,7 @@
|
||||||
.global copy
|
.global copy
|
||||||
copy:
|
copy:
|
||||||
ldr r12, flash_base
|
ldr r12, flash_base
|
||||||
ldr r10, flash_off_bsy
|
ldr r10, flash_off_sr
|
||||||
add r10, r10, r12
|
add r10, r10, r12
|
||||||
|
|
||||||
loop:
|
loop:
|
||||||
|
@ -44,5 +44,5 @@ exit:
|
||||||
.align 2
|
.align 2
|
||||||
flash_base:
|
flash_base:
|
||||||
.word 0x40022000
|
.word 0x40022000
|
||||||
flash_off_bsy:
|
flash_off_sr:
|
||||||
.word 0x12
|
.word 0x10
|
||||||
|
|
|
@ -114,7 +114,7 @@ static const uint8_t loader_code_stm32l4[] = {
|
||||||
0x08, 0x3a, 0xf0, 0xdc,
|
0x08, 0x3a, 0xf0, 0xdc,
|
||||||
0x00, 0xbe, 0x00, 0xbf,
|
0x00, 0xbe, 0x00, 0xbf,
|
||||||
0x00, 0x20, 0x02, 0x40,
|
0x00, 0x20, 0x02, 0x40,
|
||||||
0x12, 0x00, 0x00, 0x00
|
0x10, 0x00, 0x00, 0x00
|
||||||
};
|
};
|
||||||
|
|
||||||
static const uint8_t loader_code_stm32f7[] = {
|
static const uint8_t loader_code_stm32f7[] = {
|
||||||
|
|
Ładowanie…
Reference in New Issue