cancel
Showing results for 
Search instead for 
Did you mean: 

emWin HardFault Issue

nazimyildiz90
Associate II
Posted on April 04, 2016 at 20:10

Hello,

I have made custom board with stm32f429 without external SDRAM.

I'm trying to drive 4.3'' TM043NDH02 16.7M color TFT. 

In my first try I have took as an example of emWin ''Hello World'' demonstration under stm32f429iDiscovery folder. I just modifed LCD timings and deleted ili9341_init driver rutine because in my case I dont need to initialize TFT driver(right?) of the TM043NDH02 which ise HX8257A.

I have got 2 huge problem which have to solve very quickly:

  1. I'm getting hard fault error when I'm entering GUI_DEVICE_CreateAndLink function inside of LCD_X_Config().
  2. I'm getting hard fault error if activating HAL_LTDC_ProgramLineEvent(&hltdc, 0); that function inside of the LCD_LL_Init() function.

I need some tips & tricks to solve these issues quickly.

Have nice days without bugs :)

#tft #stm32f429 #emwin #hardfault
5 REPLIES 5
Radosław
Senior II
Posted on April 04, 2016 at 20:25

IDE?  

nazimyildiz90
Associate II
Posted on April 04, 2016 at 20:30

Eclipse Luna 4.4.2 

ARM GNU Plugin and compiler is ARM GCC 5.2_q4

Radosław
Senior II
Posted on April 04, 2016 at 20:33

FPU settings?

Radosław
Senior II
Posted on April 04, 2016 at 20:54

change to soft.

shitty libraries:

void RelayInit(){ GPIO_InitTypeDef GPIO_Init_Structure; __HAL_RCC_GPIOE_CLK_ENABLE(); GPIO_Init_Structure.Pin = GPIO_PIN_7 | GPIO_PIN_8; GPIO_Init_Structure.Mode = GPIO_MODE_OUTPUT_PP; HAL_GPIO_Init(GPIOE, &GPIO_Init_Structure); }

When you are uses local init struct  set value for all fields, or first do (un)initialization for this structure.