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.

TMS320F280049C: I want to read Global variable via RAM address

Part Number: TMS320F280049C


Hi i developed one GUI for chage/edit, read variable value and read. i'm getting Variable address via UART. and then Deference using  below method

volatile uint16_t  data;

uint32_t nAddr = 0x0000B108;  // actual value in this address  12345;

data = *(uint16_t *)nAddr;

i'm getting exact value .after some time i'm getting garbage value.  but that address/variable  not yet modified during complete program. how that variable modified?

  • Hello Prabu,

    i'm getting exact value .after some time i'm getting garbage value.  but that address/variable  not yet modified during complete program. how that variable modified?

    To confirm your situation, you see the correct value but after some time you get the garbage value, even though that actual data was not modified by the program. Have you verified in the CCS debugger when you receive such data through UART and how it compares to the Expression window? Can you also show me what you see versus what your expecting in whatever method you're reading the values from UART?

    Best regards,

    Omer Amir

  • Hi thank you for reply. i found the bug in my code. memory overflow happen