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

SDK • Building for >2MB FLASH

$
0
0
I've created a new board file with

Code:

#define PICO_FLASH_SIZE_BYTES (128 * 1024 * 1024)
I verified it's being used by both CMAKE and that the value is set correctly during runtime (when compiled with <2MB flash)

I try to build my program using greater than 2MB flash and I get the error:

Code:

section `.rodata' will not fit in region `FLASH'
This is solved in this thread: viewtopic.php?t=370811, but I do not understand the following:
Because you don't specify your own linker script (.ld file), and the SDK build system doesn't allow a board file to influence the standard memmap_default.ld ?
Can somebody help me understand how to create my own linker script and what it needs to contain?

Statistics: Posted by mstrat — Sun Aug 11, 2024 6:58 pm — Replies 2 — Views 33



Viewing all articles
Browse latest Browse all 4615

Trending Articles