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.

C2000 CSM password protection - all Variables shows 0x0 after Reset in Code Composer V5 Expression Window.

Hello all,

 

I am usiing Code Composer Studio V5.2 (->Expression Window) to debug the content of some RAM memory variables in a TI C2000 application.

The software I am using has a CSM password protection.

When I load the programm to the device and run the program, I can see all variables and the values seem to be reasonable. 

After a reset (and re-run the program), all variables do show "0".

I think the problem could be that CSM may be locking the device after reset and I can no longer access the RAM area.

If I modify the software  in order to set the CSM password to all 0xFFFF (= no protection), the problem disappears.

 

Debugging a CSM protected application is a bit arduous this way (since debugging is only possible after reprogram including unlock ... once I generate a reset, the debug opportunity for variable contents is gone) 

 

Do you have any guesses for a solution or a workaround?

I am thinking about a feature that may be unlocking the device (by writiing the correct Code Security Password) "automatically" after applying reset - but I have no idea how to get it into the eclipse environment.

 

 

  • Christian Mueller90830 said:

    After a reset (and re-run the program), all variables do show "0".

    I think the problem could be that CSM may be locking the device after reset and I can no longer access the RAM area.

    If I modify the software  in order to set the CSM password to all 0xFFFF (= no protection), the problem disappears.

    Yes, the CSM locks on a reset. 

    Christian Mueller90830 said:
    I am thinking about a feature that may be unlocking the device (by writiing the correct Code Security Password) "automatically" after applying reset - but I have no idea how to get it into the eclipse environment.

    There is a gel file associated with your CCS setup that has a function in it to try to unlock the CSM after a reset.  The password in this function is all 0xFFFF since that is the default.  You can modify this function to use your password and thus it will unlock the CSM automagically after a reset.

    Regards

    Lori

  • Hi Christian,

    Which device  you are working on?

    Generally device can be unlocked by providing the correct password values in "Unlock_CSM" function in gel file. By default these values are 0xFFFF_FFFF, which should be replaced with actual passwords to unlock the CSM on reset.

    Regards,

    Vivek Singh