jobroe / cc13xx-cmake

Development environment based on CMake and GNU ARM Toolchain for TI's CC13x0.
MIT License
4 stars 0 forks source link

Add flash driver support for TI's CC13xx to OpenOCD #1

Open jobroe opened 6 years ago

jobroe commented 6 years ago

I tried to use OpenOCD with TI's LAUNCHXL-CC1310 board which has a XDS110 debugger on board. After searching, reading and trying a lot, I came finally to the conclusion that there is no flash driver support at the moment.

Some results of my analysis:

mje-nz commented 5 years ago

Hey, not sure if you're still interested but TI have an OpenOCD fork for SimpleLink: http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/simplelink-openocd/latest/index_FDS.html

As far as I can tell they haven't managed to upstream their changes yet.

nanosonde commented 4 years ago

It is in upstream now and TI also recommends to use the upstream version.

https://github.com/ntfreak/openocd/blob/master/tcl/target/ti_cc13x0.cfg https://github.com/ntfreak/openocd/blob/master/tcl/target/ti_cc13x2.cfg https://github.com/ntfreak/openocd/blob/master/tcl/interface/xds110.cfg

I am successfully using it together with VS Code and Cortex Debug extension.

VS Code launch config:

{
    "version": "0.2.0",
    "configurations": [
    {
        "cwd": "${workspaceRoot}",
        "executable": "/home/user/workspace_v10/EasyLinkRx/Debug/EasyLinkRx.out",
        "name": "Debug Microcontroller",
        "request": "launch",
        "runToMain": true,
        "device": "CC1310F128",
        "type": "cortex-debug",
        "servertype": "openocd",
        "configFiles": [
            "interface/xds110.cfg",
            "board/ti_cc13x0_launchpad.cfg"        
        ]
    }
}

Make sure you have also installed the addtional Cortex Debug extension which adds the SVD files to enable register vieweing of the peripherls.

nanosonde commented 4 years ago

Because of this issue I recommend to use the zephyr fork of openocd for now: https://github.com/zephyrproject-rtos/openocd/pull/28