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.

TMS320F280025: Unable to modify the CCS window variables

Part Number: TMS320F280025

Hi,

I am dumping the code into controller with RAM fie then I could modify the variables in CCS windows during the debug session. Whereas, I tried to modify the same variables during the debug session by dumping the code with FLASH file. But I failed to do so. Kindly suggest me, what might be probable reason for this issue. 

Thanks in advance.

  • Hello Prasad,

    So if I understand correctly, when you try to modify the variables in the expression window it works for RAM but not when the program is on Flash? I will try to check with someone to see if there's a specific reason for this.

    Best regards,

    Omer Amir

  • Hello Prasad,

    After talking with another expert, I confirmed that if the variable you're trying to modify is in Flash, you cannot modify it on the fly using the Expressions Window (this requires an erase/program to modify the program itself). Let me know if this applies to your issue or not.

    Best regards,

    Omer Amir

  • Hello Omer,

    Thanks for the reply. Yes, It is related to my issue. Can you suggest me alternative for this issue, when i want to test from flash? (i.e., When I test with flash I must be able to modify the variable).

  • Hello Prasad,

    One easy workaround is just to have a variable that's stored in RAM and have it write to the variable in Flash right before it needs to be used; that way you can modify the RAM value through CCS debug mode. If this problem is only something you see while debugging, this sort of setup should be okay (although in a released version of the program on the board, you can't change variables real-time through CCS). I am checking with an expert to see if there is some other sort of workaround, but for now you can try this.

    Best regards,

    Omer Amir

  • Hello omer,

    Thanks for your suggestion

  • Hello Prasad,

    I confirmed with the expert that there is no other workaround for trying to modify a variable in Flash during debug, because the debug connection does not have the ability to erase/flash the memory (this is a bigger action than modifying something as volatile as RAM).

    Best regards,

    Omer Amir

  • Dear Omer,

    I would like to confirm that below suggested by you will work or not.

    "One easy workaround is just to have a variable that's stored in RAM and have it write to the variable in Flash right before it needs to be used; that way you can modify the RAM value through CCS debug mode. If this problem is only something you see while debugging, this sort of setup should be okay (although in a released version of the program on the board, you can't change variables real-time through CCS). I am checking with an expert to see if there is some other sort of workaround, but for now you can try this."

  • Hi Prasad,

    I just tested this on the hardware I have available, it worked fine.

    Best regards,

    Omer Amir