fishermr Posted June 7, 2018 Report Posted June 7, 2018 I am using the STM32F429i-Eval1 dev kit. Working on a home appliance that has a LCD touch panel embedded. I am using trueStudio 9.0 as the IDE. During gfxInit(), I have traced through the init functions to where gwin_wm.c fun gwinUpdate calls gfxSemInit. In gfxSemInit the call to xSemaphoreCreateCounting gets stuck when limit=1 and val = 1. When limit = 0, the functions executes. Cannot figure out why this is happening. Probably a setting isn't set correctly. Any help is appreciated. My project is attached. STM32F4_freertos.zip
fishermr Posted June 9, 2018 Author Report Posted June 9, 2018 Good question. I used STMCube to create the framework of this code. It seems likely this is the issue. Investigating, Thanks
Joel Bodenmann Posted June 9, 2018 Report Posted June 9, 2018 Did you have a look at this? https://wiki.ugfx.io/index.php/FreeRTOS Also make sure that you're using the latest master branch.
fishermr Posted June 9, 2018 Author Report Posted June 9, 2018 Thanks for the direction. I read the suggested link many times and changed the code to match this recommendation and still no progress. I know this issue is related to FreeRTOS. I have tried using uGFXMain as well. but no change in behavior. I have a commercial license and I am good to pay for support. Would be appreciative if I could get help with this issue we can get on with the actual development. Thanks.
cpu20 Posted June 9, 2018 Report Posted June 9, 2018 I would start by increasing the stack size of your intialization thread: osThreadDef(defaultTask, StartDefaultTask, osPriorityNormal, 0, 128); 128bytes might not be enough to initialize everything.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now