volkswagenb
Programmer
Hello everyone, am new to this forum, and i've been programming with C for a couple of years on and off now.
I'm basically trying to read a byte from a specific memory address, by using:
UINT8 value;
UINT8 *apointer;
apointer=0x1080;
value = *apointer
-But I get a 'type mismatch' error instead.
I was wondering if anyone knows how to set the pointer address directly like this in C. I hope is not a dumb question.
Context: I'm trying to read flash bytes on an embeeded device (Freescale HCS09)
-Thanks!
I'm basically trying to read a byte from a specific memory address, by using:
UINT8 value;
UINT8 *apointer;
apointer=0x1080;
value = *apointer
-But I get a 'type mismatch' error instead.
I was wondering if anyone knows how to set the pointer address directly like this in C. I hope is not a dumb question.
Context: I'm trying to read flash bytes on an embeeded device (Freescale HCS09)
-Thanks!