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

SDK • Flashing more then 2mb of memory at runtime

$
0
0
I have been trying to use flash_range_program during runtime to use the total 16 mb of flash memory for permanent storage on my project. I am hitting a issue where when I try and access above 2mb with flash_range_program I get a panic and a assert.

When I use picotools to check my boards flash with "picotool into --device" I get 16mb

Code:

Device Information flash size:   16384K ROM version:  3
I have set up the memory map to use the larger memory footprint as well

Code:

MEMORY{    FLASH(rx) : ORIGIN = 0x10000000, LENGTH = 2048k    FLASH_STORAGE(rx) : ORIGIN = 0x10000000 + 2048k, LENGTH = 16384k - 2048k    RAM(rwx) : ORIGIN =  0x20000000, LENGTH = 256k    SCRATCH_X(rwx) : ORIGIN = 0x20040000, LENGTH = 4k    SCRATCH_Y(rwx) : ORIGIN = 0x20041000, LENGTH = 4k}
Any ideas why im getting this panic?

Statistics: Posted by 0xen — Sat Dec 23, 2023 9:15 pm



Viewing all articles
Browse latest Browse all 5139

Trending Articles