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

General • Re: How can i put a file .h in another section of memory? rp2040

$
0
0
Did I misunderstand the OP?

I though they were asking about moving the shared libraries out of the compiled binary to somewhere else in "memory" not where they store or load the audio assets.

In order to reduce the size of the compiled binary. I think.

Though their use of "memory" is ambiguous. Did they actually mean RAM, flash storage or something else?

If they meant RAM, doesn't the pico/rp2040 run the code directly from flash so the size of the .uf2 shouldn't impact RAM usage.

If they meant flash storage, the obvious solution is to add more (e.g. by adding an SD card) to hold the audio assets. Moving the address of the library code isn't going to make it use less flash.

Statistics: Posted by thagrol — Thu May 22, 2025 12:27 am



Viewing all articles
Browse latest Browse all 7596

Trending Articles