[mw_shl_code=c,true]最近想在STM32F103ZET6上移植STemWin5.22,按照说明GUI_X_Config() LCD_X_Config() LCD_X_DisplayDriver都已配置好[/mw_shl_code]
[mw_shl_code=c,true]液晶驱动芯片HX8347G,FSMC驱动方式,驱动代码已经调试成功,移植过程中JTAG调试运行到GUI_Init()就进入到HardFault中断,设置断点发现在LCD_X_DisplayDriver函数中return后就进入硬件错误中断。麻烦遇到此类情况的给点提示啊,谢谢。[/mw_shl_code]
[mw_shl_code=c,true]int LCD_X_DisplayDriver(unsigned LayerIndex, unsigned Cmd, void * pData) {
int r;
(void) LayerIndex;
(void) pData;
switch (Cmd) {
case LCD_X_INITCONTROLLER: {
//
// Called during the initialization process in order to set up the
// display controller and put it into operation. If the display
// controller is not initialized by any external routine this needs
// to be adapted by the customer...
//
// ...
LCD_Config();
return 0; //到此处再单步运行就进入Hard Fault中断
} default:
r = -1;
}
return r;
}[/mw_shl_code]
|