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

SDK • Acccessing Flash from 'Run from RAM' code

$
0
0
Executing 'Run from RAM' code (no_flash) on an RP2040 enters 'main' with Flash disabled and Unique ID set to all EE's.

To enable access to Flash on the RP2040 I have been using this code from 'SonoSoos' - viewtopic.php?p=2090058#p2090058

Using the RP235X I thought that enabled access to Flash within the BOOT ROM and left it enabled. It always returns the same Unique ID, whether 'Run from Flash' or 'Run from RAM', presumably still taken from Flash though the docs aren't clear on that, but I don't seem able to correctly read Flash in 'Run from RAM' code.

Is that correct; that I do have to explicitly enable access to Flash for 'Run from RAM' code on an RP235X ?

And, since Googling turned up nothing and I saw nothing on this in the documentation; how do I do that given the code for the RP2040 doesn't compile on the RP235X ?

Statistics: Posted by hippy — Sun Nov 03, 2024 5:24 pm



Viewing all articles
Browse latest Browse all 7766

Trending Articles