This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

F28335 error #515

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