I'm using Micropython on a Nios 2 Softcore from Altera. I somehow need to load a image file into a Flash. I've tried to wrap this file into a Python string which I then could load from the processor it self. However due to how a string is processed in MicroPython this was not possible. There is generated a hash value for every string and the speed and size of this hash string is proportional with the size of the string length it self.
I do not have a files system on this Nios, all python modules are compile from the Memzip folder (no frozen modules though).
Is there a way to compile a binary file which can be imported or access in other ways through the REPL?
I have tried to make a wrapper for the file and add the data as binary but my 33MB file gets expanded to 200MB and I run out of ram
Regards