rp2040

RP2040 Programming without SDK
Log | Files | Refs

commit 052a4c83a5963012c87c519268d84eec85770ba7
parent 89819ff7438c15b89c7beac659605a2248f77661
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Fri, 23 Feb 2024 15:44:29 +0900

worked. need specific name for data

Diffstat:
Mex3/main.s | 2+-
Mex3/memmap.ld | 9++++++---
2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/ex3/main.s b/ex3/main.s @@ -1,7 +1,7 @@ .cpu cortex-m0plus .thumb - .section .vectors + .section .rodata .global vectors vectors: .word 0x20040000 // initial SP diff --git a/ex3/memmap.ld b/ex3/memmap.ld @@ -1,6 +1,7 @@ MEMORY { - FLASH(rx) : ORIGIN = 0x10000000, LENGTH = 2m + FLASH(rx) : ORIGIN = 0x10000000, LENGTH = 1m + VTOR(rx) : ORIGIN = 0x10100000, LENGTH = 1m SRAM(rwx) : ORIGIN = 0x20000000, LENGTH = 264k } @@ -13,8 +14,10 @@ SECTIONS .text : { *(.text) - . = ALIGN(256); - *(.vectors) } > FLASH + + .rodata : { + *(.rodata) + } > VTOR }