Question
CubeMX HAL - Is Thread Safe?
The CubeMX HAL library is considered and claimed to be "thread safe". One can select FreeRTOS on the CubeMX and generate a code.
I am questioning whether the HAL is indeed 100% safe for using with RTOS. The HAL allows read/write to specific bits in the STM32 registers through pointers, e.g.
*((volatile uint32_t*)0x820000) &= value;
I think this code is not safe and should be protected by some RTOS synchronization means. Am I mistaken?
Thank you in advance!
