Matt_Cuino
Newbie level 5
Hello, I'm having troubles with the programming of a cortex-m4 MCU , namely, I can't change the value of some of the variables.
I'm using keil uv5 to do the developing. Here is a more detailed description of the problem:
For example,
Normally, after the last line, the value of var1 should be 0x1111, but it's not, instead, it's 0x0000.
The value of var1 before 0x1111 is 0xffff, indicating that it was properly initialized, assuming keil isn't faulty.
I tried to declare it static, it's the same regardless.
What is likely the explanation for this?
I'm using keil uv5 to do the developing. Here is a more detailed description of the problem:
For example,
Code:
uint16_t var1 = 0xffff;
...
var1 = 0x1111;
Normally, after the last line, the value of var1 should be 0x1111, but it's not, instead, it's 0x0000.
The value of var1 before 0x1111 is 0xffff, indicating that it was properly initialized, assuming keil isn't faulty.
I tried to declare it static, it's the same regardless.
What is likely the explanation for this?