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.

TMS320F28377D: Variables cannot be changed in C file on 28377D CPU2 Project

Part Number: TMS320F28377D

Hi Expert,

      Variables cannot be changed in C file on 28377D CPU2 Project, The C file is not the main.c, It is "UARTprinter.c", the variable defined as Uint16, "ReceivedChar", When there is a character received, it will be  assigned  to ReceivedChar, but i only can see that the ReceivedChar remains default value after it is assigned the received character.

What's the reason?

BR/Alvin

  • The variables in main.c works fine.

  • Hi,

    Can you attach your main.c and UARTprinter.c files? Is the issue only with this one variable in UARTprinter.c, (i.e.) are the other variables and functions from UARTprinter.c behaving as expected?

    Thanks,

    Arnav

  • Hi Arnav,

    Thanks for your reply, I have resolved this issue. I think all the variables cannot be changed, because they are located in the global RAM which CPU2 has not write access. Configure the memory setup can resolve this issue. that is assign write permission of RAMGSx to CPU2

    MemCfgRegs.GSxMSEL.bit.MSEL_GS10 = 1;

    BR/Alvin