We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Dear Sirs
Has anyone ever ported a new TFT display for emWin in mdk-5 professional? I am following the emWin 5 user guide with Graphics->Core selected under Manage Run-Time Environment. Under Display, Interface Template has been chosen for a new low level TFT driver.
In mdk 5 workspace, the LCD_X_Serial.c included as a HAL layer for SPI access.
A new, customerised LCDConf.c is there.
The same driver is working I know, because it does successfully initialize the display, clear screen OK, turn on pixel OK, ...
The problem is that, whenever GUI_Init() is stepped over, the mcu goes into hardware fault ISR.
The most simple program is attempted.
#include "GUI.h"
void main(void) { GUI_Init(); }
I am using a Freescale MK64F as a prototype platform.
Any help or suggestion will be appreciated.
KW John
The below discussion may help:
forum.segger.com/index.php
SEGGER - Adrian Super Moderator
The function GUI_Init() calls the functions LCD_X_Config(), LCD_X_DisplayDriver() and GUI_X_Config(). Please make sure those functions to not cause the hard fault.