diff --git a/start.S b/start.S index c1e853a..9417b73 100644 --- a/start.S +++ b/start.S @@ -9,8 +9,10 @@ vtable: .word __stack_start .word __hard_reset__+1 + .align 2 v2_img_start: .incbin "lab1_v2.bin" + .align 2 v2_img_end: @ ==__hard_reset__ __hard_reset__: @@ -46,8 +48,8 @@ bootload_v2: ldr.n r3, =__ram_start copy_loop: - ldrh r2, [r0], #2 - strh r2, [r3], #2 + ldr r2, [r0], #4 + str r2, [r3], #4 cmp.n r0, r1 bne.n copy_loop