cancel
Showing results for 
Search instead for 
Did you mean: 

FreeRTOS Mutex example ?

antonius
Senior
Posted on April 03, 2017 at 00:53

Everyone,

Does anyone know where I can find a simple example for FreeRTOS on Mutex ?

I want to do two task but the first task never finishes and jump already to the second one because of the systick,

how can I make the first one finish and do the second one with Mutex ?

Thanks for reading and advicing

#multitasking #rtos #stm32f1xx #mutex

Note: this post was migrated and contained many threaded conversations, some content may be missing.
21 REPLIES 21
Posted on April 05, 2017 at 16:26

is task 2 created successfully? check return value from xTaskCreate is

pdPASS

or not and try to print some message in task 2 before enter infinite loop.

Posted on April 05, 2017 at 16:56

Sure you can have a smaller heap size. I run an RTOS on the STM32F042 series with a heap of 3k. Just can't run that many tasks.