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.

Unlock the Flash on Tiva

Other Parts Discussed in Thread: SEGGER

I'm having problems with the segger j-link and swd. Having trouble debugging, but now it started locking the flash in the device.

Is there info on how to unlock the flash so I can erase it ? I referred to the app note on JTAG debug where the process to unlock the flash is provided.
www.ti.com/.../spma075.pdf

However part of my problem is I only implemented SWD. Do you know if there is a time frame for TI implementing the two wire SWD in CCS?


  • Shawn,

    CCS supports SWD but it depends on the debug probe.

    For example here is a TM4C129 configured with an XDS110.  You can see the option to enable SWD.

    Similarly with an XDS200:

    However SWD is not supported in CCS with the Stellaris ICDI interface or XDS100.

    I have not tried using Segger and SWD in CCS.  The CCS target config doesn't let you set the property for SWD but it is possible that Segger detects the mode automatically or lets you set it via the Segger control panel in your system tray.

    Regards,

    John

  • JohnS said:
    I have not tried using Segger and SWD in CCS.  The CCS target config doesn't let you set the property for SWD but it is possible that Segger detects the mode automatically or lets you set it via the Segger control panel in your system tray.

    When using a Segger J-Link with CCS, the CCS target configuration does allow the selection between JTAG or SWD. However, the selection is on the CPU rather than the debug probe:

  • Thank you.
    I was able to find that.

    Now I can program the device and sometimes I'm able to step through the code, but interrupts seem to be disabled so nothing works.

    Also how does one debug the boot loader (with a launch pad & jtag) and how can you connect to an app that's been loaded with the boot loader? 

  • Shawn Mahon said:
    Now I can program the device and sometimes I'm able to step through the code, but interrupts seem to be disabled so nothing works.

    In the CCS debug properties you can control if CCS disables interrupts when assembly or source stepping - see Program/Memory Load Options. When a new project is created the default is that CCS disables interrupts assembly or source stepping, which I have seen problems when stepping over a function which needs to wait for an interrupt. Not sure if that is causing your problem.

    Shawn Mahon said:
    Also how does one debug the boot loader (with a launch pad & jtag) and how can you connect to an app that's been loaded with the boot loader? 

    See Manual launch for how to attach the debugger without downloading a program. Once attached you can load symbols for the program to allow source stepping.