nRF51822 error: open failed

Open
#175 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Domain
embedded-iot

Research direction

Start with step 7 of the linked tutorial and the shown OpenOCD command, including interface/stlink-v2.cfg and target/nrf51.cfg. Verify the Bat+ and Bat- connections and battery orientation, then rerun the command; done means OpenOCD opens the nRF51822 successfully instead of reporting “open failed”.

Written by the indexing model from the issue text.

Description

question

There is this nice tutorial how to transfer the .bin to the nrf51 device, but I fail at step 7. I get the error:

openocd -f /usr/local/share/openocd/scripts/interface/stlink-v2.cfg -f /usr/local/share/openocd/scripts/target/nrf51.cfg
Open On-Chip Debugger 0.12.0
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
WARNING: interface/stlink-v2.cfg is deprecated, please switch to interface/stlink.cfg
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 1000 kHz
Error: open failed

I am unsure how to connect Bat+ and Bat- and which way to put in the battery. I tested several ways here.

Dominant language
Swift
Stars
13.6k
Forks
681
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from seemoo-lab/openhaystack

All issues in seemoo-lab/openhaystack

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.