Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jobroe opened this issue Dec 10, 2017 · 3 comments
Open

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

jobroe opened this issue Dec 10, 2017 · 3 comments

Comments

@jobroe
Copy link
Owner

jobroe commented Dec 10, 2017

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:

  • TI Employee mentioned to work on support for XDS110, see here.

  • This guy tried a lot as well, see here.

  • There is a Pull-request which adds flash support, but it wasn't merged. I tried it but it doesn't work for me. See here

@mje-nz
Copy link

mje-nz commented Feb 22, 2019

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
Copy link

nanosonde commented Aug 26, 2020

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
Copy link

Because of this issue I recommend to use the zephyr fork of openocd for now:
zephyrproject-rtos/openocd#28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants