2014-07-11 03:04 PM
Hi to all,
I'm really new with STM products, I have a discover board STM3241G-EVAL, I'm going to try to explain my problem with the GUI embedded library: - The configuration of the source files is done, I can display icons, text, buttons in the LCD. - I use the STM software to generate the screens for my app, but here is my problem, I wanna use icons like buttons, but if a screen have more that 3 icons, the program goes to the BusFault_Handler function. Here is a part of my code: This part is when the code runs fine: GL_Page_TypeDef *CurrentScreen; GL_Page_TypeDef inicio; Create_PageObj( &inicio ); GL_PageControls_TypeDef* TEXT2= NewLabel(5,(uint8_t*)''HOLA MUNDO'',GL_HORIZONTAL,GL_FONT_SMALL,TEXT1Color); AddPageControlObj(303,120,TEXT2,&inicio); /*GL_PageControls_TypeDef* ImgConfig= NewIcon (1,ImgConfig_Image,30,30,GL_NULL); AddPageControlObj(303,176,ImgConfig,&inicio); */ GL_PageControls_TypeDef* ImgTerminal= NewIcon (2,ImgTerminal_Image,30,30,GL_NULL); AddPageControlObj(303,64,ImgTerminal,&inicio); GL_PageControls_TypeDef* ImgSave= NewIcon (3,ImgSave_Image,30,30,GL_NULL); AddPageControlObj(303,16,ImgSave,&inicio); inicio.ShowPage(&inicio,GL_TRUE); /***************************************/ but, if you uncomment the line that appear like comment, then, the problem happens and the BusFault appear #stm322014-07-11 03:39 PM
It's not really a ''discovery'' board ST has some much lower cost/function boards with that naming.
You might want to double check what kind of heap size you have, and if there are any other defines limiting object arrays to a couple of items2014-07-11 04:07 PM
thanks a lot for your quickly answer, like I said I'm new on this, Can you explain me how can I configure the heap size in IAR?
2014-07-14 02:49 AM
Hi melo.camilo,
To edit you IAR project heap size, you've just to:- Go to Projectâ–º
Optionsâ–º
Linkerâ–º
Config Tab- Edit Linker configuration file- In the box that pops up there is a Stack/Heap Sizes tab- You can now edit the HEAP value.With regards.