Sterling
DIIDevHeads IoT Integration Server
•Created by Sterling on 7/14/2024 in #firmware-and-baremetal
Do I need a mutex to protect 8-bit variables on STM32L476 with ARMv7E-M architecture using FreeRTOS?
That makes sense @UC GEE . So, if the 8-bit variable is only accessed from tasks running in the main application context and not from an ISR, no mutex is needed. But if it is accessed from both ISRs and tasks, then disabling and enabling interrupts is required.
What about multi-byte variables like 16-bit or 32-bit? Do I need a mutex for those? 🤔
6 replies