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 16mbI have set up the memory map to use the larger memory footprint as wellAny ideas why im getting this panic?
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
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}
Statistics: Posted by 0xen — Sat Dec 23, 2023 9:15 pm