Closed Slyke closed 3 weeks ago
I have also attempted to flash the device using nRF Connect
.
If plugging it in in non-DFU mode it never finishes mapping memory for the device:
If plugging it in with DFU enabled, it cannot flash it, as it errors with No operation possible
:
I have attempted to flash it with nrfutil:
$ sudo nrfutil dfu usb-serial -pkg ot-cli-ftd-dfu.zip -p /dev/ttyACM0
[------------------------------------] 0%2024-11-02 04:29:22,398 No Libusb1 context found, but is required to use DFU trigger. This likely happens because the libusb1-0 binaries are missing from your system, or Python is unable to locate them.
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/serial/serialposix.py", line 322, in open
self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
PermissionError: [Errno 1] Operation not permitted: '/dev/ttyACM0'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/nordicsemi/dfu/dfu_transport_serial.py", line 198, in open
self.serial_port = Serial(port=self.com_port,
File "/usr/local/lib/python3.10/dist-packages/serial/serialutil.py", line 244, in __init__
self.open()
File "/usr/local/lib/python3.10/dist-packages/serial/serialposix.py", line 325, in open
raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 1] could not open port /dev/ttyACM0: [Errno 1] Operation not permitted: '/dev/ttyACM0'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/nrfutil", line 8, in <module>
sys.exit(cli())
File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-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 "/usr/local/lib/python3.10/dist-packages/nordicsemi/__main__.py", line 988, in do_serial
dfu.dfu_send_images()
File "/usr/local/lib/python3.10/dist-packages/nordicsemi/dfu/dfu.py", line 127, in dfu_send_images
self._dfu_send_image(self.manifest.application)
File "/usr/local/lib/python3.10/dist-packages/nordicsemi/dfu/dfu.py", line 88, in _dfu_send_image
self.dfu_transport.open()
File "/usr/local/lib/python3.10/dist-packages/nordicsemi/dfu/dfu_transport_serial.py", line 202, in open
raise NordicSemiException("Serial port could not be opened on {0}"
pc_ble_driver_py.exceptions.NordicSemiException: Serial port could not be opened on /dev/ttyACM0. Reason: could not open port /dev/ttyACM0: [Errno 1] Operation not permitted: '/dev/ttyACM0'
In DFU and non-DFU mode, but it can't connect.
Okay, figured it out. It has to be converted to a hex file first, then a uf2. Can just drag the file as is into the uf2boot drive, doesn't need renaming.
I have a
Makerdiary nRF52840 MDK USB Dongle
.Info.txt:
I'm trying to set it up for Thread by installing: https://github.com/openthread/ot-nrf528xx/blob/main/src/nrf52840/README.md on it.
Steps (in Docker):
On Windows 11:
CURRENT.UF2
,INDEX.HTM
andINFO_UF2.TXT
Drag and drop the UF2 file onto the UF2BOOT volume.
. Do I need to rename it toCURRENT.UF2
, or just leave it asot-cli-ftd.uf2
? Either way I've attempted both. I drag the file into the folder for the nRF52840 device and I see the light is rapidly flashing red. It takes about 1 minute to finish copying over, with the light flashing red the entire time.CURRENT.UF2
and alsoot-cli-ftd.uf2
. If I unplug the device and plug it back in with bootloader mode enabled, the originalCURRENT.UF2
file is there. I have tried compiling the binaries with -DOT_BOOTLOADER=USB set and not set.