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

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

$
0
0
Hi to all!

I want to know how can i put a file (or various), in diferent location in memory, to use later.

I use a sound generator, for example, voice numbers, from 0-9.

Later in the code, use that files.

Actually i put:
...
#include "one11k_u8.h"
...
if (wav_position < (one11k_u8_LENGTH<<3) - 1) {
pwm_set_gpio_level(AUDIO_PIN, one11k_u8_DATA[wav_position>>3]);
...

But by normal compile method, i filled the memory with my .h files, the uf2 final file is around 500kb (removing debug files, and not putting all the needed files).

PD: Audio data files is in his less size posible, audio counter is from 0 to 99, and reusing some .h files.

Statistics: Posted by Xiran64 — Wed May 21, 2025 8:27 pm



Viewing all articles
Browse latest Browse all 8015

Trending Articles