Crash after placing TouchGFX fonts in memory mapped QSPI flash.
I have a project where I want to place the TGFX resources (images, translations, fonts) in a memory mapped QSPI flash. In this instance I have placed them in this flash via the linker (.o files) rather than using binary fonts etc.
The crash occurs generally when switching screens. I can usually switch screens successfully a number of times. Sometimes it fails after 30 screen switches, sometimes 5. I've also seen it fail when updating smaller elements. The crash also prevents the debugger (IAR / I-Jet) from stopping, so I've had no luck there. Debug log: "CPU did not stop"
I find the problem goes away if I put the TGFX fonts back in internal flash. It also goes away if I switch back to full frame buffers rather than using partial frame buffers. ( I have restrictions on ram usage, so partial frame buffers are needed)
I've given the TGFX FreeRTOS task lots of stack but that doesn't fix the problem.
I put a scope trace around the TouchGFXHAL::flushFrameBuffer(const Rect& rect) routine. It enters and exits correctly according to the trace. So it appears it's dying inside the TGFX library somewhere.
Any other ideas?
