Saturday, December 16th 2017, 12:20am UTC+1

You are not logged in.

  • Login
  • Register

silabs

Beginner

Date of registration: Apr 22nd 2016

Posts: 3

1

Friday, May 6th 2016, 7:24pm

stm32f746g-disco and emWin (HardFault_Handler in GUI_Exec)

I continue to understand with stm32f746g-disco (first topic).
I made a simple window:

(Img)
I use the example of STM32Cube_FW_F7_V1.3.0\Projects\STM32746G-Discovery\Applications\STemWin\STemWin_HelloWorld.
I made only two changes:
In main.c, I disabled the CACHE: // CPU_CACHE_Enable();
In BASIC_HelloWorld.c I call the function CreateWindow():

C/C++ Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
void MainTask(void) 
{
  /*
  GUI_Clear();
  GUI_SetFont(&GUI_Font20_1);
  GUI_DispStringAt("Hello world!", (LCD_GetXSize()-100)/2, (LCD_GetYSize()-20)/2);
  while(1);
  */
  CreateWindow();
  GUI_Exec();
  
  while (1)
  {
    //GUI_Delay(100);
  }  
}


The program hangs in HardFault_Handler:

(Img)

What am I doing wrong?
Thank you.

The files from: Inc, Src, Hex.

hexfet13

Beginner

Date of registration: Mar 16th 2016

Posts: 2

2

Tuesday, May 10th 2016, 7:38pm

Hi,
i have a similar problem of HardFault_Handler with Emwin and Freertos...and i don't understand where is the mistake. Anyway my problem is related to the static dialog created by the segger application.
In my case the Hardfault occours when i attempt to write to a widget, for example using a method like:

C/C++ Source code

1
MULTIEDIT_AddText(hItem,"test");


Instead, if i write to this widget with the method

C/C++ Source code

1
MULTIEDIT_SetText(hItem, "test");


i have no hardfault.

Anyway, now i would try to use emwin without an RTOS to reduce the possible causes of an hardfault.

ps.: i suggest to see http://stm32f4-discovery.com/2015/01/lib…f429-discovery/

JuWo

Beginner

Date of registration: Jun 13th 2016

Posts: 2

3

Thursday, June 23rd 2016, 3:58pm

I have a similar Problem... Do you worked out a possible solution? I spent several hours to solve it, but with no success :/

Greetings
Julian