When should I use locks using freertos on something like cortex-m3? It seems to be clear using multicore systems but what about single core?
For example I have two tasks. In first I increment variable named counter
. Second task saves current value of that variable when some event occurs. Should I use locks here? May first task corrupt value which second task is saving?