AnsweredAssumed Answered

STemwin GUI_Init Hard Fault

Question asked by t.muhammad on Dec 18, 2014
Latest reply on Jun 4, 2015 by alexey.seregin
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 ? Hard%20Fault.JPG

Outcomes