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/TMS320F28035: Cannot change XDS110 JTAG TCLK speed in CCS7.4

Part Number: TMS320F28035
Other Parts Discussed in Thread: POWERSUITE, C2000WARE

Tool/software: Code Composer Studio

We're running CCS 7.4 with the TMS320F28035, programming using an XDS110.

When looking at the TCLK signal with a scope, and changing the JTAG TCLK speed in the target configuration, we always see a 5 MHz TCLK. Doesn't matter what we change the target config to; XDS110 TCLK remains unchanged on the scope at 5 MHz.

Any idea what might be going on?  Thanks!

  • Hi,

    Interesting; I will have to bring my oscilloscope and/or logic analyzer tomorrow to thoroughly validate this. 

    One detail, though: I assume you updated the TI Emulators component in your CCSv7.4, is that so? The reason of my suspicion is that only in late 2019 the XDS110 was capable of reaching speeds faster than 2.5MHz, with 5.5MHz as the default. 

    In this case, I have a suspicion the newer component may be mildly incompatible with CCSv7.4 - perhaps it is only able to set the speed to the "default". If possible, would you be able to setup CCSv8.x or 9.x and see if you can get better control? 

    If that materializes, then we'll add remarks on the release notes for this and future versions of this component. 

    I apologize for the inconvenience,

    Rafael

  • Yes, we have accepted and installed all offered updates for CCS7.4, including the emulators. It's showing version 8.1.0.00005 for the TI Emulators.

    I have a suspicion that TI Emulators version 8.4 is available, however when I go to Help - Check For Updates, it complains it cannot be found.

    I can try installing CCS9 to see what it does, however these existing projects are in CCS7.4; I don't believe we're going to switch in existing projects mid-stream. We might consider switching for new projects.

    Thanks.

  • I installed CCS 9.3 and confirmed I was able to change the JTAG TCLK speed. When I selected 100 kHz I was then able to measure 100 kHz on the scope.

    It appears switching from CCS 7.4 to 9.3 is not trivial. I was unable to build our codebase using the 18.12 C2000 compiler version bundled with CCS9.3. A wide variety of problems (compiler flags changes, MISRA rule behavior changes, etc). I ended up installing the earlier compiler 16.9.11 to get the build to complete. 

    So, if there's a way to have CCS 7.4 be able to change the XDS110 JTAG TCLK speed, that would be appreciated.  Thanks.

  • Frank,

    Frank Van Hooft1 said:
    I installed CCS 9.3 and confirmed I was able to change the JTAG TCLK speed. When I selected 100 kHz I was then able to measure 100 kHz on the scope.

    I was also able to change the clock speed in CCSv9.3 but not on CCSv7.4 with both the "stock" emupack 7.0.100.0 or the newer emupack 8.1.0.00005. 

    Frank Van Hooft1 said:
    I have a suspicion that TI Emulators version 8.4 is available, however when I go to Help - Check For Updates, it complains it cannot be found.

    I was told the update site is broken today due to the upload of a newer version but should be back up tomorrow. If you really want to install as soon as possible, you can download the emulation package separately from the XDS Emulation Software Package Download page:

    https://software-dl.ti.com/ccs/esd/documents/xdsdebugprobes/emu_xds_software_package_download.html 

    Frank Van Hooft1 said:
    (...) however these existing projects are in CCS7.4; I don't believe we're going to switch in existing projects mid-stream. We might consider switching for new projects.

    I wouldn't switch versions in the middle of a project as well. You can, however, try two alternatives:

    Add the CCSv7.4 tools to the CCSv9.3 environment - i.e., add compilers and RTSC products such as C2000Ware or powersuite. 

    This method changes your project and workspace. Regardless of what you do, always have safe backup copies of everything and use different workspaces for the different versions.  

    - To add a compiler to your environment, check the Compiler Installation and Selection page: https://software-dl.ti.com/ccs/esd/documents/ccs_compiler-installation-selection.html 

    - To add a RTSC Product to your environment, check the Product Installation and Selection page: https://software-dl.ti.com/ccs/esd/documents/ccs_product-installation-selection.html 

    At this point, your project could be imported to the new workspace and then all components and the compiler should be properly set. In case you need to change some project properties, check sections 6.1.3.9 and 6.1.3.10 of the CCS User's Guide at:

    https://software-dl.ti.com/ccs/esd/documents/users_guide/index.html 

    Keep the project build in CCSv7.4 but debug it on the CCSv9.3. 

    This is the least intrusive with regards to the build itself, but it has the drawback of navigating across two versions.

    - In the new version, create a target configuration file (section 7.2.1.2 of the CCS User's Guide linked above)

    - Launch the debugger manually and load the .out created with the previous version (section 7.3.2 of the CCS User's Guide)

    Frank Van Hooft1 said:
    So, if there's a way to have CCS 7.4 be able to change the XDS110 JTAG TCLK speed, that would be appreciated. 

    I will keep investigating this route. 

    Regards,

    Rafael

    P.S. By the way, nice scope. Mine is a DS4014. 

  • Frank,

    I was able to make CCSv7.4.0 work on 100kHz, but it involves a bit of gymnastics. 

    By accident my CCSv8.3.0 is using the TI Emulators package version 8.0.27.0 and its built-in XDS110 Firmware is version 2.3.0.14. 

    In this case, you can try the following:

    - Uninstall the TI Emulators package 8.1.0.00005 from your existing CCSv7.4.0 - check section 4.8 of the CCS User's Guide I referenced in my previous post. 
    - Download version 8.0.27.0 from the XDS Emulation Software Package Download page I also referenced in my previous post. 
    - Close CCS. Install this "new old version" in the installation directory of your previous version - typically C:\ti\ccsv7
    - Program the firmware 2.3.0.14 using the xdsdfu utility mentioned in section Updating the XDS110 Firmware of the XDS110 page:

    https://software-dl.ti.com/ccs/esd/documents/xdsdebugprobes/emu_xds110.html 

    With this new firmware I was able to reach 100kHz frequencies in CCSv7.4.0 and successfully load and run code on this device. 

    As with everything so radical, please keep a backup copy of your development environment to minimize disruption. 

    Hope this helps,

    Rafael

  • Thanks very much. I don't mind a little gymnastics; this seems reasonable to try. Thanks for confirming what we're seeing and for finding a workaround. I'm going to hit the "resolved" button.

    Thanks, Frank.

    PS: yes the MSO5074 is a surprisingly nice scope for the money - I quite like it.