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.

TMS320F28335: CCS: Debug without download with active CSM key

Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE

Hi,

I'm trying to debug my project without download but with active CSM key. 

I set "Load symbols only" in the debug configuration and I also set the CSM key in the Flash settings.

When I debug with download everything is working as expected, but as soon as I try to debug without download I just see that "no symbols are defined" and I get the message "C28xx: Can't Run Target CPU: (Error -1041 @ 0x33A644) The debug probe reported an error. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 9.10.0.00080)".

When I disable the CSM key by setting the keys to 0xFFFF (in the file DSP2833x_CSMPasswords.asm) I'm able to debug without download.

I assumption is that I get the message since the unlock is only done before I download the project to the target, but when I just connect to the target without download the unlock is not done.

Is there any possibility to debug my project without download but a set CSM key?

Thanks in advance

Jeronimo

  • Jeronimo,

         I regret I am unable to understand exactly what your problem is. Whether or not you load symbols has no bearing on the CSM module. If your code in Flash is secure, you need to unlock the device before debugging. It is highly likely ECSL is tripping the JTAG connection and that is the reason you see that error message. Put the device in a different bootmode like SCI and connect to the device. You will then be able to supply the password and debug the device. Please take a look at the post below:

    https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1186295/tms320f28335-encounter-error--1015-0x0-and-other-error-when-debug-on-tms320f28335-with-csm-area-used-and-the-jtag-is-xds100-v2

  • My question is how do I unlock the device when I want to debug without download (when the option "Load symbols only" is activated)? - It seems that the entered key in Debug Configuration -> Target ->F28335 Flash Settings doesn't help in this case (It seems only to work when I download the SW to the flash, but that is exactly what I do not want).

  • I got one step further following the instructions of the referenced post. When I restart it jumps to the main function. But when I let it run or try to step twice  I get the same issue again. :(

  • My question is how do I unlock the device when I want to debug without download (when the option "Load symbols only" is activated)? -

    Exactly what do you mean by "download"? Download what? Your firmware with passwords is already programmed in the Flash, correct? Are you referring to loading the symbols?

    My question is how do I unlock the device when I want to debug

    Unlocking the device is straightforward. All you need to do is to supply the passwords in the CCS Flash plugin window.

  • With "without download" I mean just loading the symbols without erasing and programming the flash on the target. Yes, the firmware with passwords is already  installed on the flash.

    The things I do is:
    1. Start a debug session (with "Load symbols only" in the Debug configuration)

    => Now in the debug Window I get the following view:


    => and the following message in the console:


    C28xx: GEL Output:
    ADC Calibration not complete, check if device is unlocked and recalibrate.C28xx: Flash Programmer: Warning: The configured device (TMS320F28335), does not match the detected device (). Flash Programming operations could be affected. Please consider modifying your target configuration file.

    2. Unlock the flash by entering the passwords in the "Tools"->"On-Chip Flash" menu and hitting the "Unlock" button.

    => The following message appears in the console:

    C28xx: Starting device unlocking...
    C28xx: Device unlocked. To clear the programmed password, please erase Sector A of Flash memory.

    3. I press the restart button:

    => Now the debug session seems to work:

    The Problem is:

    When I now let the program run to the next break point or try to step through the code I get the following:

    When I try to restart again I get the following Message in the console (even if I hit the unlock button again):

    C28xx: GEL Output:
    ADC Calibration not complete, check if device is unlocked and recalibrate.C28xx: Can't Run Target CPU: (Error -1041 @ 0x33A644) The debug probe reported an error. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation. (Emulation package 9.10.0.00080)

  • Address 0x3FF6BD corresponds to the boot-ROM. Not sure why your code is jumping into the boot-ROM. Please load the symbols for the boot-ROM from TMS320x2833x_boot_rom.out in C:\ti\c2000\C2000Ware_4_03_00_00\libraries\boot_rom\f2833x\v2_0\rom_sources\Debug. At least you will be able to see where the code is jumping to. There is a possibility the watchdog is timing out and resetting the device which would lock the device again. Under this condition, when a secure memory is accessed, that would trip the JTAG connection. This probably explains why everything works fine when there are no passwords. If WD is enabled in your code, disable it and see if the error goes away. If it does, then the WD is certainly tripping. On a different note, I wonder why you are seeing the error message below:

    C28xx: Flash Programmer: Warning: The configured device (TMS320F28335), does not match the detected device (). Flash Programming operations could be affected. Please consider modifying your target configuration file.

    This suggests something is not correct with your target config file. Can you please open your file and ensure the device defined matches the one on your board?