STemwin GUI_Init Hard Fault
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-12-18 2:43 AM
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 ?
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-01-12 7:12 AM
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.Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-06-04 2:04 AM
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?