Posts by Arun Rawat

In this tutorial, we look at how to use binary and counting semaphores in FreeRTOS on STM32 using CMSIS-OS v2. We configure both semaphore types in CubeMX, write the task functions, and test the output on a serial console. We also demonstrate priority inversion — a common RTOS pitfall — and explain how a mutex solves it using priority inheritance.

×

Don’t Miss Future STM32 Tutorials

Join thousands of developers getting free guides, code examples, and updates.