Hi,
I am trying to get started with EmWin and MCBSTM32F400 board from keil. Provided examples are working, template is loading fine, even the RTX one (as I want to benefit from the RT OS from keil for my application), and I can call basic functions without trouble.
The problems start when I try to call functions that are widgets' relative. I tried first with an iconview widget, that was continuously making my RTX crash (os_errors) that I finally solved by giving task stacks 2048 bytes instead of 200 bytes assigned by default. (By the way, I don't get why it solves the problem as the GUI task use user-provided stack in the template). In doubt, I also increased the size of the user stack.
In the Emwin documentation, it seems that segger library can be used in a mode where a single task is dedicated to GUI. This is the configuration I want, so do I need to choose GUI_X_RTX.c or GUI_X.c ? Maybe this is why I get these unstable behavior.
According to an ST Application note (AN00005), it seems that I should use GUI_X.c, but this way, GUI_Init fails somewhere and a hard fault error raises. Demo examples doesn't use RTX, so I can't use it as reference.
So if anybody have suggestions on how to start, and stop having my board crash every 10 seconds, it would be highly appreciated...
Thank you