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.

Compiler/LAUNCHXL2-TMS57012: use *address operation could not get the data stored in memory.

Part Number: LAUNCHXL2-TMS57012

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.