Skip to content

[Side Project] Implemented FreeRTOS to resolve the producer-consumer problem & readers-writers problem with semaphores and mutexes

Notifications You must be signed in to change notification settings

yu-cheng-kuo-28/freertos-stm32-f303ze

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

freertos-stm32-f303ze

  • Hands-on FreeRTOS with STM32 NUCLEO-F303ZE
  • Implemented FreeRTOS to solve the producer-consumer problem & readers-writers problem with semaphores, mutexes, & volatiles
  • Coped with volatile / xSemaphoreCreateMutex() / xSemaphoreGive() / xSemaphoreTake() / xSemaphoreCreateCounting()


# Title Link
1 Hands-On FreeRTOS in STM32 01 — Producer-Consumer Problem Read More

Outline

(0) Warm-Up

  • 0-1 main_01.c: Multithreading with 2 LED light bulbs

(1) Producer-Consumer Problem

  • 1-1 main_02.c: With a 1-byte buffer using 2 LED light bulbs
  • 1-2 main_03.c: With a 5-byte buffer using 2 LED light bulbs

Screen recording video of main_03.c: The "live expression" section of main_03.c in the CubeIDE

(2) Readers-Writers Problem

  • 2-1 main_04_failed.c: Used 3 LED light bulbs, 2 for the readers and 1 for the writer. Failed for a deadlock between the readers.
  • 2-2 main_05.c: Used 3 LED light bulbs, 2 for the readers and 1 for the writer. Solved the preceding deadlock by a semaphore.

About

[Side Project] Implemented FreeRTOS to resolve the producer-consumer problem & readers-writers problem with semaphores and mutexes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages