Projectitis
Well-known member
Hi all,
I have a large amount of read-only data that I want available to my code at runtime (T_3.6). If it was included in my code as a byte array (or equivalent) it would be larger than the available RAM, so I can’t just create an instance of the byte array and access it. T_3.6 has 1M flash available, so let’s use it
How can I:
1) automatically #include (or similar) any file as an array of bytes into my code so that it is compiled with my sketch. E.g. /data/datafile.bin
2) read arbitrary parts of that file from flash mem (knowing the offset)?
Cheers,
Peter
I have a large amount of read-only data that I want available to my code at runtime (T_3.6). If it was included in my code as a byte array (or equivalent) it would be larger than the available RAM, so I can’t just create an instance of the byte array and access it. T_3.6 has 1M flash available, so let’s use it
How can I:
1) automatically #include (or similar) any file as an array of bytes into my code so that it is compiled with my sketch. E.g. /data/datafile.bin
2) read arbitrary parts of that file from flash mem (knowing the offset)?
Cheers,
Peter