Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4890

SDK • Re: [Solved] Acccessing Flash from 'Run from RAM' code

$
0
0
This may be a decidedly dodgy way to go about it - and it won't work for RP2350 - but I found that for RP2040 just calling the second stage bootloader directly works a treat.

Code:

extern "C" void _stage2_boot();static void InitXip(){#if PICO_NO_FLASH_stage2_boot();#endif}

Statistics: Posted by jeremyd — Thu Nov 07, 2024 5:10 pm



Viewing all articles
Browse latest Browse all 4890

Trending Articles