commit d37abb91a203c454d2fff7fee8a0c1634fba38cd parent 7c4b113573d83dc2ee12c430405225c855cc5709 Author: Matsuda Kenji <info@mtkn.jp> Date: Fri, 3 Mar 2023 16:10:13 +0900 rename file Diffstat:
A | start.s | | | 23 | +++++++++++++++++++++++ |
1 file changed, 23 insertions(+), 0 deletions(-)
diff --git a/start.s b/start.s @@ -0,0 +1,23 @@ + .cpu cortex-m0plus + .thumb + +/* vector table */ + .section .vectors, "ax" + .align 2 + .global __vectors +__vectors: +.word 0x20001000 +.word reset + +/* reset handler */ + .thumb_func + .global reset +reset: + ldr r0, =0x20001000 + mov sp, r0 + bl main + b hang + +.thumb_func +hang: b . +