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

M1 mac nRf52832 adafruit feather failed #123

Open
John-Kilo opened this issue Jun 2, 2022 · 1 comment
Open

M1 mac nRf52832 adafruit feather failed #123

John-Kilo opened this issue Jun 2, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@John-Kilo
Copy link

Describe the bug
Everytime I try to flash my controller with nRF it shows this

Setting up python env in folder /var/folders/ch/7h7rtrkd1f3bjg10hdc32x380000gn/T/OpenHaystack/venv

Activate venv and install pynrfjprog and intelhex

Collecting pip
Using cached pip-22.1.2-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.2.3
Uninstalling pip-20.2.3:
Successfully uninstalled pip-20.2.3
Successfully installed pip-22.1.2
Collecting pynrfjprog
Using cached pynrfjprog-10.15.4.post1.zip (23.7 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting future
Using cached future-0.18.2.tar.gz (829 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Using legacy 'setup.py install' for pynrfjprog, since package 'wheel' is not installed.
Using legacy 'setup.py install' for future, since package 'wheel' is not installed.
Installing collected packages: future, pynrfjprog
Running setup.py install for future: started
Running setup.py install for future: finished with status 'done'
Running setup.py install for pynrfjprog: started
Running setup.py install for pynrfjprog: finished with status 'done'
Successfully installed future-0.18.2 pynrfjprog-10.15.4.post1
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/ch/7h7rtrkd1f3bjg10hdc32x380000gn/T/OpenHaystack/flash_nrf.py", line 120, in
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/ch/7h7rtrkd1f3bjg10hdc32x380000gn/T/OpenHaystack/flash_nrf.py", line 31, in flash_openhaystack_fw
with LowLevel.API(
File "/private/var/folders/ch/7h7rtrkd1f3bjg10hdc32x380000gn/T/OpenHaystack/venv/lib/python3.8/site-packages/pynrfjprog/LowLevel.py", line 1812, in enter
self.open()
File "/private/var/folders/ch/7h7rtrkd1f3bjg10hdc32x380000gn/T/OpenHaystack/venv/lib/python3.8/site-packages/pynrfjprog/LowLevel.py", line 185, 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

To Reproduce
Steps to reproduce the behavior:

  1. Get a m1 mac and open openhaystcack
  2. Flash nRf and plug in nRf52832 adafruit feather

Expected behavior
Work? as a airtag

Screenshots

OpenHaystack version:
Latest

macOS version:
12.4(running a m1 chip)

Additional context
Also tried using a esp32 but it says it can not flash to micro:bit.

@John-Kilo John-Kilo added the bug Something isn't working label Jun 2, 2022
@John-Kilo
Copy link
Author

Seems abit messed up up there so I'll include the error again

Setting up python env in folder /var/folders/ch/7h7rtrkd1f3bjg10hdc32x380000gn/T/OpenHaystack/venv

Activate venv and install pynrfjprog and intelhex

Collecting pip
Using cached pip-22.1.2-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.2.3
Uninstalling pip-20.2.3:
Successfully uninstalled pip-20.2.3
Successfully installed pip-22.1.2
Collecting pynrfjprog
Using cached pynrfjprog-10.15.4.post1.zip (23.7 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting future
Using cached future-0.18.2.tar.gz (829 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Using legacy 'setup.py install' for pynrfjprog, since package 'wheel' is not installed.
Using legacy 'setup.py install' for future, since package 'wheel' is not installed.
Installing collected packages: future, pynrfjprog
Running setup.py install for future: started
Running setup.py install for future: finished with status 'done'
Running setup.py install for pynrfjprog: started
Running setup.py install for pynrfjprog: finished with status 'done'
Successfully installed future-0.18.2 pynrfjprog-10.15.4.post1
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/ch/7h7rtrkd1f3bjg10hdc32x380000gn/T/OpenHaystack/flash_nrf.py", line 120, in
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/ch/7h7rtrkd1f3bjg10hdc32x380000gn/T/OpenHaystack/flash_nrf.py", line 31, in flash_openhaystack_fw
with LowLevel.API(
File "/private/var/folders/ch/7h7rtrkd1f3bjg10hdc32x380000gn/T/OpenHaystack/venv/lib/python3.8/site-packages/pynrfjprog/LowLevel.py", line 1812, in enter
self.open()
File "/private/var/folders/ch/7h7rtrkd1f3bjg10hdc32x380000gn/T/OpenHaystack/venv/lib/python3.8/site-packages/pynrfjprog/LowLevel.py", line 185, 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant