rp2040

RP2040 Programming without SDK
Log | Files | Refs

commit 8037f89e7810aaaeb2abbf806f517a12ace759d4
parent 8bef3e89b1889e621d867ec07dfe76f41a61ebcd
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Sat,  8 Apr 2023 11:15:36 +0900

use sram to execute program

Diffstat:
Mboot2/boot2_sram.s | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/boot2/boot2_sram.s b/boot2/boot2_sram.s @@ -30,7 +30,7 @@ boot2: // copy program data from flash to sram ldr r2, =(XIP_BASE + 0x100) ldr r3, =SRAM_BASE - ldr r0, =0x1000 + ldr r0, =0x1000 // how to get the program size? sram_cpy: ldr r1, [r2, #0] str r1, [r3, #0] @@ -40,7 +40,7 @@ sram_cpy: bne sram_cpy // exit from boot2 - ldr r0, =(XIP_BASE + 0x100) + ldr r0, =SRAM_BASE ldr r1, =(PPB_BASE + 0xed08) str r0, [r1, #0] // M0PLUS: VTOR ldr r1, [r0, #4]