osThreadFlagsSet function acts differently in two almost the same projects
I have to projects based on FreeRTOS. One is st example and one is generated by me from example .ioc file. All of the files in projects are the same (including FreeRTOS middleware directory). In the projects there is a task called periodically which set flag for the other task using osThreadFlagsSet function. While debugging I've noticed that osThreadFlagsSet function returnes different values. In one project rflags variable has value equal to 1:
In the other rflags has some random value:
and because of that I think that there might be the problem with setting flag for the task. Not setting the flag causes project work unstable. What might be the issue?
