rp2040

RP2040 Programming without SDK
Log | Files | Refs

commit 0306678f2bf2b9dc561804d7f87b7ca95dbc40c9
parent 2be6540a84ad1d316c47601fe4dfd89df8be53e5
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Wed, 12 Apr 2023 11:34:26 +0900

change memmap

Diffstat:
Mmain.c | 7+++++++
Mmemmap.ld | 7++++---
2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/main.c b/main.c @@ -1,4 +1,11 @@ +extern void init(void); +extern void led_p2(void); + void main(void) { + init(); + while(1) { + led_p2(); + } } diff --git a/memmap.ld b/memmap.ld @@ -6,10 +6,11 @@ MEMORY SECTIONS { - .text : { - . = 0x0; + .boot2 : { *(.boot2) - . = 0x100; + } > FLASH + + .text : AT(ORIGIN(FLASH) + 0x100){ *(.vectors) *(.text) _etext = .;