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
Hi Matthias
I checked GUIConf.c and tried IRAM1 [0x20000000-0x2002FFFF] & IRAM2[0x1FFF0000-0x1FFFFFFF] for Graphics->CORE. Both gave the same result.
When I step over GUI_Init() in main with F11, HardFault_Handler in startup_MK64F12.s was trapped.
No clue to the reason...
John
This appnote helps you to analyze the reason for a Hard Fault: http://www.keil.com/appnotes/docs/apnt_209.asp