rp2040

RP2040 Programming without SDK
Log | Files | Refs

commit 6e8afae69eb00f0b428fca5b9f5ee1afc54ecb74
parent 62a76c3e9cc900f26966214d5f7e18595b07e844
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Thu,  7 Mar 2024 09:28:02 +0900

simplify memmap.ld

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

diff --git a/ex3/boot2.s b/ex3/boot2.s @@ -12,8 +12,8 @@ boot2: blx r0 // load main program to sram - ldr r0, =text_start - ldr r1, =text_size + ldr r0, =prog_start + ldr r1, =prog_size mov r2, #0 ldr r3, sram_base copy: diff --git a/ex3/memmap.ld b/ex3/memmap.ld @@ -14,11 +14,10 @@ SECTIONS .text : { *(.text) } > SRAM AT > FLASH - text_start = LOADADDR(.text); - text_size = SIZEOF(.text); .data : { *(.data) } > SRAM AT > FLASH - text_size += SIZEOF(.data); + prog_start = LOADADDR(.text); + prog_size = SIZEOF(.text) + SIZEOF(.data); }