Tool/software: TI C/C++ Compiler
Dear all:
I meet a strange problem. I describe in the following:
I have a sub-function, which with point parameter, inside the sub-function, I want to get the data stored in the address.
void SendMessage(MessageIdentifier udMessageId,ApplicationDataRef pudDataRef)
{
uint8 tmpMSGData;
uint8* tmpPtMSGData;
tmpPtMSGData = (uint8*)pudDataRef;
tmpMSGData = (uint8)(*tmpPtMSGData);//MAXMSGUNI
}
and then I call the sub-function in main
void main()
{
int mm = 45;
SendMessage(2,&mm);
}
during the debug, I find I could not get the data 45, please see the attactment, the tmpMSGData is not change to 45.