rp2040

RP2040 Programming without SDK
Log | Files | Refs

commit ab9c8fc1add4cb7b646f3cc0eb1cf201abe72e08
parent 9927f108e347ca29e5a136179e28864f2170bb7f
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Sun, 25 Feb 2024 07:49:05 +0900

move vector table

Diffstat:
Mex2/main.s | 11++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/ex2/main.s b/ex2/main.s @@ -1,6 +1,12 @@ .cpu cortex-m0plus .thumb + .align 8 + .global vectors +vectors: + .word 0x20040000 // initial SP + .word (reset+1) // entry point + .section .text reset: // unreset gpio, pll_sys, uart0 @@ -215,8 +221,3 @@ uart0_base: sio_base: .word 0xd0000000 - .align 8 - .global vectors -vectors: - .word 0x20040000 // initial SP - .word (reset+1) // entry point