projects
/
fw
/
stlink
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stlink-common: Update STM32L0 and STM32L1 loader ABI
[fw/stlink]
/
flashloaders
/
stm32l0x.s
diff --git
a/flashloaders/stm32l0x.s
b/flashloaders/stm32l0x.s
index 9fc44468f5efdcd1fc61eab992d5e8884335870e..6c863c64aef7a869251c872675d319b5b767210b 100644
(file)
--- a/
flashloaders/stm32l0x.s
+++ b/
flashloaders/stm32l0x.s
@@
-34,8
+34,8
@@
.global write
/*
.global write
/*
- r0 -
destination
address
- r1 -
source
address
+ r0 -
source
address
+ r1 -
destination
address
r2 - count
*/
r2 - count
*/
@@
-46,9
+46,9
@@
write_word:
// Load one word from address in r0, increment by 4
write_word:
// Load one word from address in r0, increment by 4
- ldr r4, [r
1
]
+ ldr r4, [r
0
]
// Store the word to address in r1, increment by 4
// Store the word to address in r1, increment by 4
- str r4, [r
0
]
+ str r4, [r
1
]
// Increment r3
adds r3, #1
adds r1, #4
// Increment r3
adds r3, #1
adds r1, #4