External file ressource on embedded system (C language with FAT)
<p>My application/device is running on an ARM Cortex M3 (STM32), without OS but with a FatFs) and needs to access many resources files (audio, image, etc..)</p>

<ul>
<li>The code runs from internal flash (ROM, 256Kb).</li>
<li>The resources files are stored on external flash (SD card, 4Gb).</li>
<li>There is not much RAM (32Kb), so malloc a complete file from package is not an option.</li>
</ul>

<p>As the user has access to the resources folder for atomic update, I would like to package all theses resources files in a single (.dat, .rom, .whatever)
So the user doesn't mishandle theses data.</p>

<p>Can someone point me to a nice solution to do so?</p>

<p>I don't mind remapping fopen, fread, fseek and fclose in my application, but I would not like starting from scratch (coding the serializer, table of content, parser, etc...). My system is quite limited (no malloc, no framework, just stdlib and FatFs)</p>

<p>Thanks for any input you can give me.</p>

<p>note: I'm not looking for a solution where the resources are embedded IN the code (ROM) as obviously they are way too big for that.</p>