Good day.
I'm trying to solve the compile error regarding pointer, still I couldn't.
See the images.
I just use very simple pointer in order to read MCU register.
But it always shows compile error "invalid conversion from 'uint32_t' {aka ~~~~~~~~"...
Could you please help me to solve this issue?.
Does this compile error come from wrong setting in IDE tool?
Solved! Go to Solution.
In C++, you cannot assign an integer to a pointer without proper cast.
You have to write something like this:
pRegAddr = (uint32_t*)0x12345678u;
In C++, you cannot assign an integer to a pointer without proper cast.
You have to write something like this:
pRegAddr = (uint32_t*)0x12345678u;