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.

CCS/TMDSSK3358: debug problem on windows 10

Part Number: TMDSSK3358
Other Parts Discussed in Thread: AM3358

Tool/software: Code Composer Studio

Hi,

I've just received the AM335x Starter Kit (TMDSSK3358). Now I just would like to debug a simple main.c using CCS. (I have the latest CCS)
I created a File/New CCS Project (empty project with main.c).

Power cable inserted, micro usb cable inserted, micro sd card not inserted, power is on but the debug is not working.

When I press the debug button I have got the following messages

Error initializing emulator:
(Error -2083 @ 0x0)
Unable to communicate with the debug probe. Confirm debug probe configuration and connections, reset the debug probe, and retry the operation.
(Emulation package 7.0.48.0)

What I made wrong?

When I unplug/plug the micro usb cable I have got 'USB drive not recognized' (when no micro sd card inserted). Debugging required a micro sd card?

I tried to restart the computer, restart CCS, unplug/plug the power cable but the problem still exists.

For the debug connection I have choose 'XDS560 Debug probe'?

Here is the screenshot of my project settings.

  • Attila,

    Do you have an external XDS560v2 debug probe connected to the board or are you trying to use the debug probe that is built into the board?

    If you are trying to use the integrated probe you need to select Texas Instruments XDS100v2 Debug Probe as the connection type as that is what is on the board.

    Regards,
    John
  • I have no external debug probe I'd like to use the integrated probe. I have changed the connection type to XDS100v2 as you suggested. I also tried to follow

    For GEL output I have selected: AM335x_EVM.gel

    The debugger starts with disconnected sessions.

    When I click on Cortex-A8 and select Connect Target the debugger starts but on wrong address I think

  • The program is not loaded. If you launch the debug session from the Target Configurations view then it is just launching the debugger. You then need to manually connect and load the program.

    If you setup your debug configuration as part of your project (like in your original screen capture) you can just select the project in Project Explorer and then click the bug button. This will launch the debugger. Connect. Load the program. Run to main().

    Regards,
    John
  • I've got the following messages when I not create the ccxml file (I created a new test project). The messages are the same when I specify the GEL file or not.

    CortxA8: Output: ****  AM335x 15x15 EVM Initialization is in progress ..........
    CortxA8: Output: ****  AM335x ALL PLL Config for OPP == OPP100 is in progress .........
    CortxA8: Output: Input Clock Read from SYSBOOT[15:14]:  24MHz
    CortxA8: Output: ****  Going to Bypass...
    CortxA8: Output: ****  Bypassed, changing values...
    CortxA8: Output: ****  Locking ARM PLL
    CortxA8: Output: ****  Core Bypassed
    CortxA8: Output: ****  Now locking Core...
    CortxA8: Output: ****  Core locked
    CortxA8: Output: ****  DDR DPLL Bypassed
    CortxA8: Output: ****  DDR DPLL Locked
    CortxA8: Output: ****  PER DPLL Bypassed
    CortxA8: Output: ****  PER DPLL Locked
    CortxA8: Output: ****  DISP PLL Config is in progress ..........
    CortxA8: Output: ****  DISP PLL Config is DONE ..........
    CortxA8: Output: ****  AM335x ALL ADPLL Config for OPP == OPP100 is Done .........
    CortxA8: Output: ****  AM335x DDR2 EMIF and PHY configuration is in progress...
    CortxA8: Output: EMIF PRCM is in progress .......
    CortxA8: Output: EMIF PRCM Done
    CortxA8: Output: DDR PHY Configuration in progress
    CortxA8: Output: Waiting for VTP Ready .......
    CortxA8: Output: VTP is Ready!
    CortxA8: Output: DDR PHY CMD0 Register configuration is in progress .......
    CortxA8: Output: DDR PHY CMD1 Register configuration is in progress .......
    CortxA8: Output: DDR PHY CMD2 Register configuration is in progress .......
    CortxA8: Output: DDR PHY DATA0 Register configuration is in progress .......
    CortxA8: Output: DDR PHY DATA1 Register configuration is in progress .......
    CortxA8: Output: Setting IO control registers.......
    CortxA8: Output: EMIF Timing register configuration is in progress .......
    CortxA8: Output: EMIF Timing register configuration is done .......
    CortxA8: Output: PHY is READY!!
    CortxA8: Output: DDR PHY Configuration done
    CortxA8: Output: ****  AM335x 15x15 EVM Initialization is Done ******************
    CortxA8: File Loader: Verification failed: Values at address 0x80000000 do not match Please verify target memory and memory map.
    CortxA8: GEL: File: D:\Work\CCS\test_a8\Debug\test_a8.out: a data verification error occurred, file load failed.

  • Looks like it is having trouble programming the DDR. I am going to loop in someone else who knows this better than me.
  • Hi,

    It seems that you are using CCSv7.x, is that so? If so, instead of specifying the GEL file manually as mentioned in the reference you sent, can you instead use the configuration SK_AM3358? This configuration contains the latest version of the GEL file for this kit.

    The reason is that I suspect the DDR is not properly initialized with the GEL file you are using, which causes the code loaded to address 0x80000000 to fail.

    Hope this helps,

    Rafael

  • Yes this is the solution, plus M3_WAKEUP_SS_0 must be disabled in debug configurations.