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.

CCSv6 load program hang at 97%

Other Parts Discussed in Thread: TM4C123GH6PGE

Hello,

I use WIndows 7 64bits and CCS V6.1.0.00104 and want to try to debug my program with XDS510 USB emulator.

First step I tested on a Tiva board and use the internal debugger and all works well.

After that, I tested with my  XDS510 USB Emulator on the same board and the programs start to be loaded but hang at 97 %:

I was thinking that it was due to the fact that I haven't got a valid licence for CCSV6 so I tried with a 90 day licence.
I can see that the licence is now Evaluation Licence with 87 days remaining:

But the problem remain the same, load hang at 97%...
I think it's a Licence issue, I also have a CCSV5 with a valid full licence and programs load without any problem with my Emulator.

I already tried to uninstall CCSV6 and reinstall, it always do the same...

Do you have any suggestion? 

Thank you in advance for your help.

Regards,

Max.

  • Hello,
    Can you reproduce the error while generating a Debug Server Log? Zip the log and attach the zip to this thread.
    processors.wiki.ti.com/.../Troubleshooting_CCSv6

    Thanks
    ki
  • I tested with other project and it also hang but at different progression state.
    The one with the attached LOG is a sample code for TIVA board (cc3000_basic_wifi_application) and it hang at 69% load.

    After restarting CCSV6 I activated DebugServerLog and launch a debug.
    Since it hang I cancelled it and after cancel, Debug cannot terminate so I need to Close CCS entirely for be able to Zip the Log since it is always used by it.

    Regards

    DebugServer.zip

  • Thank you. The logs are under analysis. It appears to be some issue with the flash programmer.

    You mention that the on-board emulation works fine. What exact Tiva board are you using? And is your XDS510USB from Spectrum Digital?

    Thanks
    ki
  • The Board is TM4C129X eval board from here: www.ti.com/.../dk-tm4c129x
    The Emulator is XDS510 USB Plus from Spectrum Digital.

    Also as I say before It works with CCSV5+XDS510+ on this eval board.
    Also I get the same issue with another prototype board we've made.

    Regards.
  • Hello,

    No news here?

    I also tried to debug with a Blackhawk USB XDS100V2 and all work well.

    Regards.

    Max

  • I there no resolution to this? I am experiencing the same issue. TM4C123GH6PGE on a XDS510 from Spectrum Digital. The same exact setup worked fine on CCS V5.5 but on CCS V6.1 the program load stalls at 89% and just sits there.

  • Hello,

    I never got a solution for this unfortunately an TI never answered anymore....
    For what I can say and have tested:

    All works well on CCS V5 with Windows 7 32 and 64 bits.
    Also it's working on a Windows 7 32bits and CCS v6.1.

    It's NOT working with Windows 7 64bits and CCS V6.1. (Tested on two different PC and same issue appear)

    Sorry I cannot help you much more I finally used a different JTAG emulator which is not a good answer
    I know but TI don't give me a solution...

    Let me know if you find the solution :-)

    Regards.

    Max

  • Hello,
    I thought this was addressed in the latest update. Do you have the latest Spectrum Digital update (5.2.0.13)?

    Thanks
    ki
  • I checked and I already have 5.2.0.13...

    So issue is still here.

    Regards

  • I have "Spectrum Digital Emulators 5.2.0.13" and no more updates are available. My XDS100 v2 debugger works fine on CCS6.1, but not my SD XDS510USB or my SD XDS510USB PLUS.

  • Hi,

    I was able to reproduce this and filed today the bug number SDSCM00052496. Please check its description and status in the link SDOWP in my signature below.

    I apologize for the inconvenience,
    Rafael
  • Max, Traver,

    Sorry for the long lead time on this thread. As Rafael mentioned, a bug as been filed and we are currently looking into the problem.

    For a potential workaround, can you try turning off the "Reset target during program load to Flash memory" option in the On-Chip Flash view?
    - if you have a project, you can right click and choose 'Properties'. The Flash options are under the 'Debug' tab.
    - if you are launching the debugging without a project, you can access the On-Chip Flash settings under 'Tools -> On-Chip Flash'.

    Please let me know if you are able to try this.

    Thanks,
    Ricky
  • That works! Are there any side effects I should expect by unchecking that box?

  • Traver,

    Glad to hear that this workaround is working for you.

    The purpose of the option is to perform a reset before and after program load to put the target in a known state. But for some reason, the reset is not executing properly on the XDS510. If you are not seeing any unexpected behaviours during debugging, then it should be fine. You can also perform a reset manually in CCS as well if needed.

    Thanks,
    Ricky
  • Hello back since 1 year I opened this post...

    First, the workaround  try turning off the "Reset target during program load to Flash memory" seem to not work for me.

    I've unisntalled my CCS studio and installed the new version CCSv6.1.3 which seem to include the fixed version of your opened ticket.
    No more luck, it always hang when it finish to load program. The program seem to be properly flashed even if it hang since after rebooting my board, I see change of my program working.

    I'm always with my XDS510USB plus and trying to flash the TM4C129 device.
    The version of spectrum digital driver is 5.2.0.14.

    Please find attached the log as before I need to kill CCS since it's hang.

    log_hang_xds510.zip

    Regards,

    Max

  • Max,

    Looking at the logs, it looks like the "Reset target during program load to Flash memory" option is 'on' when you tested this. Can you try turning it off and see if it fixes the problem?

    If you are debugging a project, please turn off the option in the project settings. (Right click on the project -> Properties -> Debug tab -> Flash settings. Look for and turn off the "Reset" option)

    If you are using a projectless launch, please turn off the option in the On-Chip Flash view before loading your program. (After launching the debug session, go to menu Tools -> On-Chip flash. Look for and turn off the "Reset" option)

    Please let me know if this works.

    Thanks,
    Ricky
  • Hello,

    Thank you for your answer,

    Indeed, deactivate the "Reset target during program load to Flash memory" fix the problem,
    I was looking for the option under the bad section in debug ("Program/Memory Load Options->Reset the target on a program load or restart") which seem not the same things...

    I was also thinking that the problem was fixed in the last release since it's in the release note that the ticket was closed, it's not the case?
    See the ticket SDSCM00052496 in release note here software-dl.ti.com/.../ReleaseNote.htm

    Regards.

    Max

  • Max,

    I was also expecting the bug to be fix without having to apply this workaround. But our fix is to explicitly detect for the reset abort event instead of waiting forever. There might be cases that the XDS510USB driver does not return the reset abort event either, so CCS will be stuck waiting for the reset call to return. I'll see if the logs have any more information, but for now, please continuing using the workaround.

    Thanks,
    Ricky
  • Max,

    I found out the issue seems to be tied to the Spectrum Digital XDS510USB (not plus) debug probe (I tested with my Blackhawk BH510L and it worked well), therefore an update may be required on their SW stack to fully benefit from the fix done to CCS.

    I will contact them and see what their plans are, ok?

    Regards,
    Rafael

  • Ricky,

    I'm ok, but note that my emulator is a Spectrum Digital XDS510 USB (PLUS), hope that it's the same issue you are speaking about for Spectrum Digital XDS510 USB (NON PLUS).

    PS: Note that in CCSV5 all worked well so I was thinking that a fix was possible on your side...

    Regards,

    Max.

  • Max,

    I contacted Spectrum Digital and unfortunately they told me the XDS510-class JTAG debugger software/firmware hasn't been updated in quite some time (since 2012) - in other words, a permanent fix to this behavior will not be implemented. Sorry.

    Regards,
    Rafael
  • Hello,

    Such a bad news,
    I will migrate to another Emulator...

    Thank you very much for your help and responsiveness.

    Regards.