Hello,
I try to write to a specific adress in RAM (Destination), I failed and I don't know why. The compiler gives the following error message:
#515 a value of type "Uint32" cannot be assigned to an entity of type "Uint32 *"
//Variables
struct top
{
Uint32 DestinationAdress;
Uint32 *Pointer;
} Header;
unsigned short Data;
//where the error occurs:
Header.Pointer = Header.DestinationAdress;
*Header.Pointer = Data;
I'm not sure, if only the datatype ist the problem @ all.
Thank you for your help
Dan
//edit
Sorry, I was just a little bit tired, the answear is obvious...
Header.Pointer = (Uint32 *)Header.DestinationAdress; //form to pointer
Have a nice day