H743 FreeRTOS
HI I m using H743 Nucleo, to write a RTOS program with 2 tasks which gonna access to the same memory location concurrently.. can anyone advise which RTOS method to use ? Tasks ? Semaphore? Message Queue?
HI I m using H743 Nucleo, to write a RTOS program with 2 tasks which gonna access to the same memory location concurrently.. can anyone advise which RTOS method to use ? Tasks ? Semaphore? Message Queue?
@HMSEdinburge wrote:
How to acheive concurrent if use mutex? doesn't mutex mean exclude 1 task from another?
If you are not familiar with RTOSes, I suggest you to learn about it.
and especially mutexes: see that video: https://www.youtube.com/watch?app=desktop&v=I55auRpbiTs&t=0s
"not concurrent but simultaneously... in this case, could the 2 tasks access to the same memory location"
Nothing is done simultaneously in RTOS. As I said, with RTOS only one instruction is executed at a time. The RTOS scheduler makes the tasks seem to be executed in parallel.
@HMSEdinburge wrote:
How to acheive concurrent if use mutex? doesn't mutex mean exclude 1 task from another?
That doesn't have a specific relation with STM32.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.