Search Results
Search results 21-32 of 32.
This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.
-
Hi again Just to close out the problem was down to porting from an earlier version of emWin. The version I've been developing under does not call _cb when SetUserData gets called. In my _cb I had a var that was not initialised until after the SetUserData call and this was resulting in stack corruption in the _cb. Your code snippet pointed me in the direction as it indicated that _cb was being called by SetUserData. Thanks Mark
-
Hi Sven I think I have tracked down the issue and it is not emWin (no surprise, right!). Problem is that I am getting stack corruption during the time the _cb is handled after I call WM_SetUserData: I am finding that _cb pMsg content is inexplicably changing and the PC is also getting corrupted resulting in the code jumping back to a prior line in debug. I think the corruption is related to the MDK FS using SDIO + DMA as (a) the problem only occurs if I do a FS_Read before the WM_Create, (b) the…
-
Hi Sven Sorry for delay, I was working on another part of the project. Thanks for the code. Yes, of course that code works as it is the standard code and the same I have been using for a couple of years. When I get a crash the WM_Create is returning a valid hWin and my pX is a valid address. The sizeof() is valid, too. So, if the hWin is valid, the pX a valid location and the length parameter acceptable why would WM_SetUserData fail? My only guess would be memory corruption of the allocated GUI …
-
Thanks. I'd like a response from the great team at Segger who are always knowledgeable and helpful! Chensie... (a) it not that I have simply set my memory up wrong. I am using the same GUI_Conf assign on emWin-SIM and that works fine. Also, as a just-in-case, I allocated it a lot more memory and it still failed at the same point. (b) yes, I could have a trap to check for valid pX and pX->hWin but I don't need them and have confirmed that both pX and pX->hWin are valid (hwin being around 300) whe…
-
Hi Environment: emWin + MDK + MDK-RTOS + STM32F429NI. After creating many windows/handles I'm getting a HardFault when I call WM_SetUserData. hWin is around 300 (not always the same). I've commented out the code calling the crash point but all that happens is the next new window fails when it tries to set the user data. I developed the code under embOS-SIM on Win32 and it works fine there so I suspected the problem may be GUI_Conf memory allocation but I doubled the allocation and made sure both…
-
Hi. I am getting screen flicker even though I have double-buffering enabled and otherwise working. I've traced it to occurring when a Window is invalidated whilst it is being painted. This occurs in these circumstances: 1. GUI_TIMER set up to WM_Invalidate a window (timer is 150ms) 2. WM_Paint used to paint the screen (screen is taking >150ms to paint) 3. RTX OS (around 20 tasks running, most on same priority as the WM system) Whilst an overrun of the paint time is ny root problem I am not sure …
-
Hi I am having flickering problems and wonder if you can help. I know the classic answer is "use multi-buffering" but your examples do not seem to us this yet have no flicker. A typical demo by you would be: STM32Cube_FW_F4_V1.15.0\Projects\STM324x9I_EVAL\Applications\STemWin\STemWin_SampleDemo\MDK-ARM On my own project I get flicker. I am using the same STM324x9i_eval_MB1046 display driver and also running on an STM324x9I-EVAL PCBA. My project uses the same GUI_X_Config setup and I have not mad…
-
Thanks Sven. I have the emWin and embOS-SIM samples but not a combination of both in a VS Solution. That would have been useful, that's all. Maybe this would be a nice download for you guys to have? Minus the libraries, of course. For me, developing under Studio and having conditional compiles for the hardware layers is much faster, much more efficient. That said, I now seem to have a stable embOS + emWin + Visual Studio SIM template project now. Hardkey coding added to SIM environment. Thanks f…
-
Thanks Sven. I'm stripping complexity out of project. Problem is I don't get fault to replicate each time so I need to dig more. Q: do you have an example VS Template for emWin + embOS SIM? Something a bit more than the Hello World of the emWin manual, maybe? Without the libraries etc as I have these. This would be a useful reference, make sure I don't have config or VS setup issues. Mark
-
Hi, I've constructed a Win32 project combining embOS-SIM and emWin-SIM (from Keil). Much more practical development environment than trying to do everything on hardware. I will eventually port from embOS to Keil RTE (for license reasons). Problem is I create a new child window yet it does not show if my while(1) loop uses OS_Delay() yet works if I use GUI_Delay(). Do I need to make sure to use GUI_Delay in all GUI tasks or should OS_Delay work? OS_Delay works for the example in the emWin manual …