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

SDK • Re: Why can't I compile and link this ?

$
0
0
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 ?

I assume your complaint is that you are using a board with larger-than 2Mbyte flash, correctly declared in the board file, yet your output binary size is being limited to 2M.

This is obviously bad, but it's not clear that there's an easy way for the SDK to parameterise the linker script to achieve this. I suppose they could use a default linker script that allows for 16M (max supported by RP2040) and then apply the limit declared in the board file by a separate test on the output binary rather than causing the link to fail, but it's messy whichever way you do it.

Statistics: Posted by arg001 — Tue May 14, 2024 6:31 pm



Viewing all articles
Browse latest Browse all 4878

Trending Articles