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.

tms320f2812 variables could not be seen or modified while debug

Other Parts Discussed in Thread: TMS320F2812

Hello,

Target: tms320f2812
Debugger: SPI515(Spectrum Digital)
IDE: CCS 3.1.0
Program at: flash

Problem facing:
We can't see the variable's(array, int, enumerated etc.,)(not the local variables in 'Watch local'  window within a funciton of the same .c file) values in watch-window getting updated. It's always zero(e.g., int type). We tried Debug->Realtime Mode, refresh watch-window, animate mode etc., But no effect. We tried file->load program and file->load symbols only after each build. We checked at the memory location of the same variable, there also we observe the value as zero. Usually if we place the cursor over the variable the current value should pop-up, right? The value poping-up is zero. We also tried creating a local varible within the function and equated the variable/array within the fuction whose value is to be viewed in the watch-window, but the left hand side do not get updated.  We checked with variables which are not static type.

Is it possible to change the variables in watch-window manually while debugging?

We use 128-bit password at CSM and the password set in the startup asm file is also currect. Does it have any effect if we use password while debugging?

Any help is appreciated!!

-Regards

-sbs

  • Some of the memory on the device is protected by the code security module (CSM).  If your variables are in protected memory but the CSM is not unlocked then they will always read back 0 in the debugger.  To see which blocks are protected refer to the memory map in the data manual for your device. 

    Regards

    Lori

  • Hi Lori,

    Problem got solved.

    We modified the startup.asm file with passwords eight 0xFFFFs, build  and flashed the '.out' file. We understand that at the time of development we don't have to use password.

    Also there has a GEL utility to unlock CSM. It worked, but not always.

    -Thanks and regards

    -sbs