My board is Nucleo F401RE.
My board is Nucleo F 401 RE
This is the first time I've ever been doing this.
I am using a pointer to the main registry of ETM, its address I read it on the datasheet.
I would like to change the bits of this log but I do not change it the correct way.
my code:
#define ETM_CR 0xE0042000 //Address
unsigned int *pointer = (unsigned int *) ETM_CR;
unsigned int var = 0;
var = *pointer
printf("Value of var: %d\n, var)
now i want to modify *pointer, for example:
*pointer = 0x1;
Now i expected to have in *pointer 0x1 but there insn't 0x1, there ins't the last value but there is another value.
Thank you