2017-07-21 07:28 AM
Hi,
I'd like to know what are the possible reasons to the processor get stucked inside the GUI_Exec function?
The LCD start to show some some drawings but than suddenly, the SPI activity stops and even the SysTick_Handler stops to be called. The processor keep on running into an infinity loop, passing througth some STemWin functions that can only be seen by the disassembly window, once the library is in binary code.
Once it h?s started to draw the buttons, I guess that this is not a hardware problem, but I'll acept any suggestion.
#stemwin-ili9341 #gui_exec #stemwin-ili9341-spi #stemwin2017-07-21 08:05 AM
Hello!!
At your project you use , check your RTOS settings especialy about thread stack sizes.
Be sure that Systick is not used also by the HAL (because is used by default from RTOS)
2017-07-21 10:12 AM
Hello again!
Write more about your project.
Emwin is mature enough to have some kind of bug.
The function you mention is to execute background jobs.
Called regularly from a callback from some timer (almost allways systick).
Inside in this execution loop, must not be put any Delay function or other function using the same timer(will block)
Do you use a standard example? or you make your own 'Paint' functions?' Paint' functions called by guy_exec functions.
In case your paint functions are ckecked and functional try to increase the stack generously in your startup module.
rgrds.
vf
2017-07-21 10:42 AM
,
,
Thank's for the reply.
I'm not using any RTOS.
2017-07-21 12:05 GMT-03:00 Vangelis Fortounas <,
st-microelectronics@jiveon.com>,:
STMicroelectronics Community
<,https://community.st.com/?et=watches.email.thread>,
Re: stemwin gui_exec problem
reply from Vangelis Fortounas
<,
in STM32 MCUs Forum - View the full discussion
<,https://community.st.com/0D70X000006Sp8pSAC
2017-07-21 01:21 PM
,
,
Vangelis, thank you very much!!
The GUI_exec was being called at TM_EMWIN_UpdateTouch, by a weak
function inside the SysTick_Handler. I've removed and it got to work!!
Thank you.
2017-07-21 14:13 GMT-03:00 Vangelis Fortounas <,
st-microelectronics@jiveon.com>,:
STMicroelectronics Community
<,https://community.st.com/?et=watches.email.thread>,
Re: stemwin gui_exec problem
reply from Vangelis Fortounas
<,
in STM32 MCUs Forum - View the full discussion
<,https://community.st.com/0D70X000006SsSUSA0
2018-08-15 01:31 AM
Hello, Could you please share the source code ?
I need an SPI Driver for ILI9341