Trying to 'deploy' on a Seeed nRF52840

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

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
macos, python

Research direction

Start with the deployment traceback and inspect flash_nrf.py at line 31, where pynrfjprog.LowLevel.API is opened. Reproduce the deploy attempt with the Seeed nRF52840 connected and disconnected, then determine the required JLINKARM DLL or device setup. Done means deployment completes successfully on the reported hardware.

Written by the indexing model from the issue text.

Description

question

Hi,

I think perhaps this is a little over my head, but I was hoping maybe you more knowledgeable folks could hold my hand a little trying to deploy OpenHaystack on a Seeed nRF52840.

When hotting 'deploy' I get the following error:

Could Not Deploy
# Setting up python env in folder /var/folders/qw/25lz8fwx67s1l2wbzgcdg1l80000gn/T/OpenHaystack/venv
# Activate venv and install pynrfjprog and intelhex
Requirement already satisfied: pip in /private/var/folders/qw/25lz8fwx67s1l2wbzgcdg1l80000gn/T/OpenHaystack/venv/lib/python3.9/site-packages (21.2.4)
Collecting pip
Using cached pip-23.2.1-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 21.2.4
Uninstalling pip-21.2.4:
Successfully uninstalled pip-21.2.4
Successfully installed pip-23.2.1
Collecting pynrfjprog
Using cached pynrfjprog-10.23.0-py3-none-any.whl
Collecting future (from pynrfjprog)
Using cached future-0.18.3-py3-none-any.whl
Collecting tomli-w (from pynrfjprog)
Using cached tomli_w-1.0.0-py3-none-any.whl (6.0 kB)
Installing collected packages: tomli-w, future, pynrfjprog
Successfully installed future-0.18.3 pynrfjprog-10.23.0 tomli-w-1.0.0
Collecting intelhex
Using cached intelhex-2.3.0-py2.py3-none-any.whl (50 kB)
Installing collected packages: intelhex
Successfully installed intelhex-2.3.0
### Executing python script ###
[*] Opening API with device family UNKNOWN, reading the device family.
Traceback (most recent call last):
File "/var/folders/qw/25lz8fwx67s1l2wbzgcdg1l80000gn/T/OpenHaystack/flash_nrf.py", line 120, in <module>
flash_openhaystack_fw(public_key=b64decode(args['public_key']), symmetric_key=b64decode(args['symmetric_key']), update_interval=args['update_interval'], hex_path=args['path_to_hex'])
File "/var/folders/qw/25lz8fwx67s1l2wbzgcdg1l80000gn/T/OpenHaystack/flash_nrf.py", line 31, in flash_openhaystack_fw
with LowLevel.API(
File "/private/var/folders/qw/25lz8fwx67s1l2wbzgcdg1l80000gn/T/OpenHaystack/venv/lib/python3.9/site-packages/pynrfjprog/LowLevel.py", line 2472, in __enter__
self.open()
File "/private/var/folders/qw/25lz8fwx67s1l2wbzgcdg1l80000gn/T/OpenHaystack/venv/lib/python3.9/site-packages/pynrfjprog/LowLevel.py", line 258, in open
raise APIError(result, error_data=self.get_errors())
pynrfjprog.APIError.APIError: An error was reported by NRFJPROG DLL: -101 JLINKARM_DLL_COULD_NOT_BE_OPENED.
### done

I get this error wether my Seeed device is plugged in or not. Just wondering if I have missed something?

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.