Fonts in external SPI flash, along with other data (memory mapped flash vs. command mode flash)
I use TouchGFX and STM32H7 system. It needs large font files (chinese + many sizes) which will not fit into internal RAM.
I also need to write log data into flash. I would want to use the same flash to store fonts and store the logging data. But TouchGFX fonts require memory-mapped mode, and storing data requires command mode.
Which option is the best?
- Use 1 physical flash (switch external flash mode between memory-mapped for fonts and command mode for storing data)
- Use 2 physical flash chips, one with FW and fonts (memory-mapped mode), other for data only (command-mode)
I would use STM32H7B0 with 2 external flash option (FW+fonts in external mm-flash, data in external cmd-flash), STM32H7B3 with 1 external flash option (FW in internal flash, Fonts+data in external flash with mode switching between mm/cmd).