AnsweredAssumed Answered

Do I need to lock interrupt on stm32?

Question asked by Tobias Kruehn on Jun 14, 2017

Hello,

 

I wondered it writing / reading 32 bit values on a stm32 controller is atomic. The actual question is:

 

If I have an interrupt handler which writes a uint32_t value and an application which reads the same value, do I need to lock interrupt or mutex? If reading and writing 32 bit values is atomic there would be no reason to lock.

 

Thank you for answers.

Outcomes