Question
after using serial flash for fonts, the code jump to hardfault handler.
I want to put my font data into external flash from internal flash. So, I configure and implement my code following docs of touchgfx-4.16.
https://support.touchgfx.com/docs/development/scenarios/using-serial-flash
There are some source codes;
static FontFlashReader fontReader;
static STM32TouchController tc;
//static STM32L4DMA dma;
static NoDMA dma;
//static LCD24bpp display;
static LCD16bppSerialFlash display(fontReader);
static ApplicationFontProvider fontProvider;
static Texts texts;
static TouchGFXHAL hal(dma, display, tc, 320, 360);
static WatchButtonController buttonController;
void touchgfx_init()
{
Bitmap::registerBitmapDatabase(BitmapDatabase::getInstance(), BitmapDatabase::getInstanceSize());
TypedText::registerTexts(&texts);
Texts::setLanguage(0);
hal.setDataReader(&fontReader);
fontProvider.setFlashReader(&fontReader);
FontManager::setFontProvider(&fontProvider);
FrontendHeap& heap = FrontendHeap::getInstance();
/*
* we need to obtain the reference above to initialize the frontend heap.
*/
(void)heap;
/*
* Initialize TouchGFX
*/
hal.initialize();
hal.setButtonController(&buttonController);
}It is fine to get font data from external flash.
But, there always be a hard-fault when LCD drawing Text.
debug info

