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

Unable to flash hello_world w/XDS-110 & OpenOCD #23117

Closed
spmcv opened this issue Feb 26, 2020 · 3 comments
Closed

Unable to flash hello_world w/XDS-110 & OpenOCD #23117

spmcv opened this issue Feb 26, 2020 · 3 comments
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug

Comments

@spmcv
Copy link

spmcv commented Feb 26, 2020

Describe the bug
Flashing failed while attempting to follow getting started guide for LAUNCHXL-CC2640R2F. OpenOCD fails to negotiate with XDS-110. Made sure XDS-110 has latest firmware via CCS (see output). Tried workaround suggested here.

To Reproduce
Steps to reproduce the behavior:

  1. Follow Getting Started guide with build option -b cc26x2r1_launchxl
  2. west build

Expected behavior
As stated in Getting Started guide.

Impact

  • showstopper

Screenshots or console output
Using (default) 2500kHz:

(zephyr) user@LOC-USER zephyr % west flash
-- west flash: rebuilding
ninja: no work to do.
-- west flash: using runner openocd
-- runners.openocd: Flashing file: [$ZEPHYRPROJECT]/zephyr/build/zephyr/zephyr.hex
Open On-Chip Debugger 0.10.0+dev-01089-g3bfe4926 (2020-02-26-11:15)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
adapter srst delay: 100

Info : XDS110: connected
Info : XDS110: firmware version = 3.0.0.7
Info : XDS110: hardware version = 0x002b
Info : XDS110: connected to target via JTAG
Info : XDS110: TCK set to 2500 kHz
Info : clock speed 2500 kHz
Info : TAP cc26x2.jrc does not have valid IDCODE (idcode=0x7733405e)
Info : JTAG tap: auto0.tap tap/device found: 0xbb99a02f (mfg: 0x017 (Texas Instruments), part: 0xb99a, ver: 0xb)
Error: cc26x2.jrc: IR capture error; saw 0x02 not 0x01
Warn : Bypassing JTAG setup events due to errors
Info : Listening on port 3333 for gdb connections
    TargetName         Type       Endian TapName            State       
--  ------------------ ---------- ------ ------------------ ------------
 0* cc26x2.cpu         cortex_m   little cc26x2.cpu         tap-disabled

Info : TAP cc26x2.jrc does not have valid IDCODE (idcode=0x7733405e)
Info : JTAG tap: auto0.tap tap/device found: 0xbb99a02f (mfg: 0x017 (Texas Instruments), part: 0xb99a, ver: 0xb)
Error: cc26x2.jrc: IR capture error; saw 0x02 not 0x01
Warn : Bypassing JTAG setup events due to errors
Error: Target not examined yet
Error: auto_probe failed
auto erase enabled
Info : XDS110: disconnected
FATAL ERROR: command exited with status 1: /usr/local/bin/openocd -s [$ZEPHYRPROJECT]/zephyr/boards/arm/cc26x2r1_launchxl/support -f [$ZEPHYRPROJECT]/zephyr/boards/arm/cc26x2r1_launchxl/support/openocd.cfg -c init -c targets -c 'reset halt' -c 'flash write_image erase [$ZEPHYRPROJECT]/zephyr/build/zephyr/zephyr.hex' -c 'reset halt' -c 'verify_image [$ZEPHYRPROJECT]/zephyr/build/zephyr/zephyr.hex' -c 'reset run' -c shutdown

Modifying board/ti_cc26x2_launchpad.cfg:

(zephyr) user@LOC-USER zephyr % west flash
-- west flash: rebuilding
ninja: no work to do.
-- west flash: using runner openocd
-- runners.openocd: Flashing file: [$ZEPHYRPROJECT]/zephyr/build/zephyr/zephyr.hex
Open On-Chip Debugger 0.10.0+dev-01089-g3bfe4926 (2020-02-26-11:15)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
adapter srst delay: 100

Info : XDS110: connected
Info : XDS110: firmware version = 3.0.0.7
Info : XDS110: hardware version = 0x002b
Info : XDS110: connected to target via JTAG
Info : XDS110: TCK set to 2500 kHz
Info : clock speed 1500 kHz
Info : JTAG tap: cc26x2.jrc tap/device found: 0xbb99a02f (mfg: 0x017 (Texas Instruments), part: 0xb99a, ver: 0xb)
Warn : JTAG tap: cc26x2.jrc       UNEXPECTED: 0xbb99a02f (mfg: 0x017 (Texas Instruments), part: 0xb99a, ver: 0xb)
Error: JTAG tap: cc26x2.jrc  expected 1 of 1: 0x0bb4102f (mfg: 0x017 (Texas Instruments), part: 0xbb41, ver: 0x0)
Error: Trying to use configured scan chain anyway...
Warn : Bypassing JTAG setup events due to errors
Info : Listening on port 3333 for gdb connections
    TargetName         Type       Endian TapName            State       
--  ------------------ ---------- ------ ------------------ ------------
 0* cc26x2.cpu         cortex_m   little cc26x2.cpu         tap-disabled

Info : JTAG tap: cc26x2.jrc tap/device found: 0xbb99a02f (mfg: 0x017 (Texas Instruments), part: 0xb99a, ver: 0xb)
Warn : JTAG tap: cc26x2.jrc       UNEXPECTED: 0xbb99a02f (mfg: 0x017 (Texas Instruments), part: 0xb99a, ver: 0xb)
Error: JTAG tap: cc26x2.jrc  expected 1 of 1: 0x0bb4102f (mfg: 0x017 (Texas Instruments), part: 0xbb41, ver: 0x0)
Error: Trying to use configured scan chain anyway...
Warn : Bypassing JTAG setup events due to errors
Error: Target not examined yet
Error: auto_probe failed
auto erase enabled
Info : XDS110: disconnected
FATAL ERROR: command exited with status 1: /usr/local/bin/openocd -s [$ZEPHYRPROJECT]/zephyr/boards/arm/cc26x2r1_launchxl/support -f [$ZEPHYRPROJECT]/zephyr/boards/arm/cc26x2r1_launchxl/support/openocd.cfg -c init -c targets -c 'reset halt' -c 'flash write_image erase [$ZEPHYRPROJECT]/zephyr/build/zephyr/zephyr.hex' -c 'reset halt' -c 'verify_image [$ZEPHYRPROJECT]/zephyr/build/zephyr/zephyr.hex' -c 'reset run' -c shutdown

Environment (please complete the following information):

  • OS:
    • macOS 110.15.3 (19D76)
    • python 3.8.1
  • Toolchain:
    • west (v0.7.2)
    • gnuarmemb (9-2019-q4-major)
    • cmake (3.16.4)
    • ninja (1.10.0)
    • openocd (0.10.0)
  • Commit SHA or Version used

Additional context

  • openocd built from source from sourceforge repo using default configure
  • pyenv used for virtual environment for west and dependencies
@spmcv spmcv added the bug The issue is a bug, or the PR is fixing a bug label Feb 26, 2020
@spmcv spmcv changed the title Unable to flash HelloWorld w/XDS-110 & OpenOCD Unable to flash hello_world w/XDS-110 & OpenOCD Feb 26, 2020
@spmcv
Copy link
Author

spmcv commented Feb 26, 2020

I realized I may have made a mistake here. What I had on hand to test with was a CC2640 (M3), not a CC2642 (M4). I'm going to not close this for the moment b/c I want to see if this is an openocd and not the MCU.

@jhedberg jhedberg added the priority: low Low impact/importance bug label Mar 3, 2020
@vanti
Copy link
Collaborator

vanti commented Mar 3, 2020

@phuntimes The CC2640R2F belongs to a different family of devices from the CC26x2, so I wouldn't have expected this to work.

@nashif
Copy link
Member

nashif commented Mar 11, 2020

based on comment from @vanti, not a bug.

@nashif nashif closed this as completed Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

4 participants