cancel
Showing results for 
Search instead for 
Did you mean: 

STemwin GUI_Init Hard Fault

zeros_and_ones1991
Associate III
Posted on December 18, 2014 at 11:43

Hullo guys , This is my first time to use STemwin GUI library , everything compiled fine , and the code is simple enough just to test it 

int main ()

{

 RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_CRC, ENABLE);

GUI_Init();

GUI_SetColor(GUI_RED);

while(1)

{

}

}

but the GUI_Init always is giving me hard fault , but tracking the Assembly I found that the reason is the Branch statement to memory address out of scope .

I increased the Stack size to 16 KB and it's still not working . 

GUI_Init calls GUI_X_Config and GUI_X_Init and I can get into these function while debugging , so the error occurs after the execution of these two functions . 

Any Suggestion ? 0690X00000602zKQAQ.jpg
2 REPLIES 2
Posted on January 12, 2015 at 16:12

Hi Muhammad,

Can you please provide us more information about the STemWin version you are using ? the STM32 device and the FW package your code is based on ? so that we reproduce your issue...

Regards,

Heisenberg.

lehacheb
Associate
Posted on June 04, 2015 at 11:04

Hello

I have such problem with using STemWin GUI library and STM32F103. Hard fault handler in GUIInit() on command BLX R1 (R1=0x08004C30). How a you resolved  this problem?