HAL functions and RTOS
Hi,
It's awesome to be able to use HAL and RTOS together, i made big applications fast thanks to these tools.
The only disadvantage is that i'm not the architect anymore of my project. (for the HAL and RTOS part).
I'm now at the point where i sometimes get HAL error's like for ADC readouts or Flash writes. I would lilke to prevent investigating each error in order to write work around code, and want to deal with this more fundamental.
The code is now constructed where it is possible that different ADC or Flash functions can be called from different RTOS threads. I think that's the source of the problem.
To solve this i was thinking to create an ADC manager and a Flash manager in their own thread, so each functioncall will be added to a queue and will always execute from1 place only.
My questions to you guy's and Girls.
Is this the way you handle this too, or are there (build in) ways ?
i'm no expert in RTOS as i created before everyting myself, including my task switcher.
But to save time i have starting using these tools the moment i started with STM.
Thank you
Steve
