STM32G071 - Problem with rand() and random() functions always returning 0 in a FreeRTOS thread but OK in main().
I have an STM32G071 running FreeRTOS CMSIS v2 compiled with STM32CubeIDE. In one of the threads I want to generate a pseudo-random number. (I don't need anything sophisticated and the STM32G071 doesn't have an RNG anyway; pseudo random is absolutely ...