rp2040

RP2040 Programming without SDK
Log | Files | Refs

commit ad8444f2be2735a2291e125f3d395d030138b092
parent 3a94ffe0be528555fecd4be287576e9145078205
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Sun, 25 Feb 2024 07:52:00 +0900

move vector table

Diffstat:
Mex3/main.s | 40++++++++++++++++++++--------------------
1 file changed, 20 insertions(+), 20 deletions(-)

diff --git a/ex3/main.s b/ex3/main.s @@ -1,6 +1,26 @@ .cpu cortex-m0plus .thumb + .global vectors +vectors: + .word 0x20040000 // 0 initial SP + .word (reset+1) // 1 entry point + .word (reset+1) // 2 + .word (reset+1) // 3 + .word (reset+1) // 4 + .word (reset+1) // 5 + .word (reset+1) // 6 + .word (reset+1) // 7 + .word (reset+1) // 8 + .word (reset+1) // 9 + .word (reset+1) // 10 + .word (int_svcall+1) // 11 svcall + .word (reset+1) // 12 + .word (reset+1) // 13 + .word (reset+1) // 14 + .word (int_systick+1) // 15 systick + .word (int_alarm+1) // 16 alarm_0 + .section .text reset: // unreset gpio, pll_sys, timer, uart0 @@ -297,23 +317,3 @@ sio_base: ppb_base: .word 0xe0000000 - .align 8 - .global vectors -vectors: - .word 0x20040000 // 0 initial SP - .word (reset+1) // 1 entry point - .word (reset+1) // 2 - .word (reset+1) // 3 - .word (reset+1) // 4 - .word (reset+1) // 5 - .word (reset+1) // 6 - .word (reset+1) // 7 - .word (reset+1) // 8 - .word (reset+1) // 9 - .word (reset+1) // 10 - .word (int_svcall+1) // 11 svcall - .word (reset+1) // 12 - .word (reset+1) // 13 - .word (reset+1) // 14 - .word (int_systick+1) // 15 systick - .word (int_alarm+1) // 16 alarm_0