Compare commits

..

5 Commits

Author SHA1 Message Date
Chiharu Shirasaka cbf1b89241 add stop LPTMR 2022-02-19 22:47:16 +09:00
Chiharu Shirasaka 0a091e3515 M4 RTOS loader ready 2022-02-19 22:47:16 +09:00
Chiharu Shirasaka 3de439eb6f
Merge pull request #1 from brain-hackers/u-boot_sizefix
U-boot size calculation fix
2022-01-23 04:39:37 +09:00
Chiharu Shirasaka 17cc2d2278 fix branch condition for non multiple of 4Byte size 2022-01-23 04:28:21 +09:00
Chiharu Shirasaka 3744630abf Fix U-Boot copy size calculation 2022-01-15 22:51:42 +09:00
1 changed files with 2 additions and 2 deletions

4
main.S
View File

@ -78,7 +78,7 @@ rtos_loop:
//copy U-Boot to head of RAM
ldr r3, =0x37500000 //copy start
ldr r1, =0x37540000 //copy end
add r1, r3, r0 //copy end
copy_loop:
mov r2, r3
sub r3, r3, #0x7500000 //copy distination
@ -86,7 +86,7 @@ rtos_loop:
cmp r2, r1
str r0, [r3]
mov r3, r2
bne copy_loop
blt copy_loop
//RAM clear
ldr r2,=0x60200000 //clear start