This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/MSP432P401R: Do global variables shared between tasks (or clock functions) need to be marked as volatile?

Part Number: MSP432P401R


Tool/software: TI-RTOS

G'Day all,

Can you confirm whether global variables shared between idle tasks/tasks/clock functions/SWIs need to be marked as volatile explicitly.

Or does the RTOS compile process somehow make this unnecessary?

Would it be good practice to always mark globals as volatile? 

Cheers

Julian

**Attention** This is a public forum