rp2040

RP2040 Programming without SDK
Log | Files | Refs

commit 62a76c3e9cc900f26966214d5f7e18595b07e844
parent d6ef91e9b0da98880c2a7492c280b2668779f78e
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Thu,  7 Mar 2024 09:13:48 +0900

simplify memmap.ld.
I don't understand linker script

Diffstat:
Mex3/memmap.ld | 15+++++----------
1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/ex3/memmap.ld b/ex3/memmap.ld @@ -6,24 +6,19 @@ MEMORY SECTIONS { - .boot2 : { + .flash : { *(.boot2) . = 0x100; - } > FLASH - .vectors : { *(.vectors) - . += SIZEOF(.vectors); - . = ALIGN(2); - text_start = .; } > FLASH .text : { *(.text) } > SRAM AT > FLASH + text_start = LOADADDR(.text); text_size = SIZEOF(.text); - .rodata : { - *(.rodata) + .data : { + *(.data) } > SRAM AT > FLASH - text_size += SIZEOF(.rodata); - text_size = 0x300; + text_size += SIZEOF(.data); }