I'm working on an SoC with 128K RAM, and currently the UART printing is too much so we have to reduce the code size by drawing it from memory.
We've got an working 128Mb SPI serial FLASH on board, and i'd like to store strings on it. please notice there is no file system on flash or in our FW.
Instead writing everything by myself, i'd like to know is there any useful code or standard or other material we can make use of?
including: (anything below could be helpful)
- library generating
- resource fetching method implementation.
- SPI FLASH read/write.(in fact i have wrote it.)
I'm expecting something like this:
UART_PRINT(C315);
and there is an “C315”, item on FLASH, corresponding to "Hello world".
we read it out then print through UART while run time. and the final result is "Hello world" on the terminal.
of course, anything that will blow my mind is welcome.:)