新手上路
- 积分
- 30
- 金钱
- 30
- 注册时间
- 2019-10-21
- 在线时间
- 8 小时
|
本帖最后由 ximi123 于 2021-8-25 15:02 编辑
我用STM32H743 移植touchGFX时,一进入touchgfx_init就直接进到硬中断去了,如果删除前面部分代码只保留hal.initialize(),系统其他功能都能正常运行,
touchGFX是4.16.0版本,用6.3的cubemx直接生成的touchGFX代码,请问有没有遇到过相同问题的朋友。
用stemwin可以正常显示,就在这个代码上移植的touchGFX
void touchgfx_init()
{
Bitmap::registerBitmapDatabase(BitmapDatabase::getInstance(), BitmapDatabase::getInstanceSize());
TypedText::registerTexts(&texts);
Texts::setLanguage(0);
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();
}
|
|