Stm32cubeide not setting variables of a structure as volatile
Hello,
A simple question regarding STM32CubeIDE and its compiler.
For example, I declare:
typedef volatile struct {
uint8_t myVariable;
} myType;Live Expression-Type shows myVariable as uint8_t only. It should make all the members inside volatile as the theory says.
Nevertheless, when I declare:
typedef struct {
volatile uint8_t myVariable;
} myType;Live Expression-Type shows volatile uint8_t. This is also true for a pointer to the structure.
I would like to ask whether it is the matter of indication or the volatility is not being applied for sure. I am trying to solve some erratical ifs and flags skipping in the main while loop when they are being accessed by several interrupt routines.