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

ubuntu 22.04 can not transfer the UF2 zip file into the USB drive #74

Open
Teymurian opened this issue Aug 29, 2022 · 3 comments
Open

Comments

@Teymurian
Copy link

Ubuntu 22.04 can not transfer the UF2 zip file into the USB drive.
after pushing the reset button and connecting it to the USB port, then trying to copy the uf2 file it shows this error
PermissionError: [Errno 13] Permission denied: '/dev/ttyACM0'
which is fixed by
sudo chmod 666 /dev/ttyACM0
next try can't finish the copy process and this is the error:

nrfutil pkg generate --hw-version 52 --sd-req 0x00 --application-version 1 --application ~/Downloads/adafruit-circuitpython-makerdiary_nrf52840_mdk_usb_dongle-en_US-7.3.2.hex app_dfu_pkg_test2.zip
|===============================================================|
|You are not providing a signature key, which means the DFU |
|files will not be signed, and are vulnerable to tampering. |
|This is only compatible with a signature-less bootloader and is|
|not suitable for production environments. |
|===============================================================|
Zip created at app_dfu_pkg_test2.zip
sudo chmod 666 /dev/ttyACM0
sudo ls -l /dev/ttyACM0
crw-rw-rw- 1 root dialout 166, 0 Aug 29 00:10 /dev/ttyACM0

nrfutil dfu usb-serial -pkg app_dfu_pkg_test2.zip -p /dev/ttyACM0
[------------------------------------] 0%2022-08-29 00:11:36,459 LIBUSB_ERROR_ACCESS: Unable to connect to trigger interface.

Traceback (most recent call last):
File "/home/ed/.local/bin/nrfutil", line 8, in
sys.exit(cli())
File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in call
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/home/ed/.local/lib/python3.10/site-packages/nordicsemi/main.py", line 1032, in usb_serial
do_serial(package, port, connect_delay, flow_control, packet_receipt_notification, baud_rate, serial_number, False,
File "/home/ed/.local/lib/python3.10/site-packages/nordicsemi/main.py", line 988, in do_serial
dfu.dfu_send_images()
File "/home/ed/.local/lib/python3.10/site-packages/nordicsemi/dfu/dfu.py", line 127, in dfu_send_images
self._dfu_send_image(self.manifest.application)
File "/home/ed/.local/lib/python3.10/site-packages/nordicsemi/dfu/dfu.py", line 88, in _dfu_send_image
self.dfu_transport.open()
File "/home/ed/.local/lib/python3.10/site-packages/nordicsemi/dfu/dfu_transport_serial.py", line 217, in open
self.__get_mtu()
File "/home/ed/.local/lib/python3.10/site-packages/nordicsemi/dfu/dfu_transport_serial.py", line 366, in __get_mtu
self.mtu = struct.unpack('<H', bytearray(response))[0]
TypeError: cannot convert 'NoneType' object to bytearray

could you help me with this?

@AndrewBarfield
Copy link

This is a long shot... but any update on this?

@caizelin
Copy link
Member

caizelin commented Aug 9, 2023

@AndrewBarfield Could you try the latest UF2 Bootloader 0.7.1

@jstothr
Copy link

jstothr commented Dec 25, 2023

Did you find a solution?

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

No branches or pull requests

4 participants