cancel
Showing results for 
Search instead for 
Did you mean: 

Reading GFX assets from an offset in external memory

saarAvr
Associate

Hello everyone
I joined a somewhat finished project, which has working TouchGFX display using assets saved in external flash memory. The next phase is to enable A/B FW update, meaning that now the assets might end up either in the start or middle of the external flash. Ive been tasked with enabling the program to read the assets at runtime, deciding if they exist in the start or middle using a flag provided by the bootloader. So far, I managed to read Images, Videos, Audio and Texts from the back half of the flash by redirecting pointers with an offset, but im having real difficulties with the generated Fonts. For some reason I cant get it to work. My strategy is to intercept the GFX getFont function by a new class inheriting ApplicationFontProvider, but I simply cannot get it to work. Currently I dont think I even managed to connect it properly and I dont think the code even run through it.

Is there some sort of example someone made for this scenario? Would greatly appreciate any help.

 
0 REPLIES 0