Code: Select all
C:\Users\Matt\AppData\Local\Arduino15\packages\adafruit\hardware\nrf52\1.1.0/tools/adafruit-nrfutil/win32/adafruit-nrfutil.exe --verbose dfu serial -pkg C:\Users\Matt\AppData\Local\Temp\arduino_build_4974/central_scan.ino.zip -p COM8 -b 115200 --singlebank
Upgrading target on COM8 with DFU package C:\Users\Matt\AppData\Local\Temp\arduino_build_4974\central_scan.ino.zip. Flow control is disabled, Single bank, Touch disabled
Opened serial port COM8
Starting DFU upgrade of type 4, SoftDevice size: 0, bootloader size: 0, application size: 66292
Sending DFU start packet
Sending DFU init packet
Sending firmware file
Failed to upgrade target. Error is: WriteFile failed (PermissionError(13, 'The device does not recognize the command.', None, 22))
Traceback (most recent call last):
File "__main__.py", line 296, in serial
File "dfu\dfu.py", line 235, in dfu_send_images
File "dfu\dfu.py", line 206, in _dfu_send_image
File "dfu\dfu_transport_serial.py", line 213, in send_firmware
File "dfu\dfu_transport_serial.py", line 241, in send_packet
File "serial\serialwin32.py", line 317, in write
serial.serialutil.SerialException: WriteFile failed (PermissionError(13, 'The device does not recognize the command.', None, 22))
Possible causes:
- Selected Bootloader version does not match the one on Bluefruit device.
Please upgrade the Bootloader or select correct version in Tools->Bootloader.
- Baud rate must be 115200, Flow control must be off.
- Target is not in DFU mode. Ground DFU pin and RESET and release both to enter DFU mode.
Code: Select all
C:\Users\Matt\AppData\Local\Arduino15\packages\adafruit\hardware\nrf52\1.1.0/bootloader/feather_nrf52832/feather_nrf52832_bootloader-0.6.2_s132_6.1.1.zip -p COM8 -b 115200 --touch 1200
Upgrading target on COM8 with DFU package C:\Users\Matt\AppData\Local\Arduino15\packages\adafruit\hardware\nrf52\1.1.0\bootloader\feather_nrf52832\feather_nrf52832_bootloader-0.6.2_s132_6.1.1.zip. Flow control is disabled, Dual bank, Touch 1200
Touched serial port COM8
Opened serial port COM8
Starting DFU upgrade of type 3, SoftDevice size: 147792, bootloader size: 21704, application size: 0
Sending DFU start packet
Sending DFU init packet
Sending firmware file
Failed to upgrade target. Error is: WriteFile failed (PermissionError(13, 'The device does not recognize the command.', None, 22))
Traceback (most recent call last):
File "__main__.py", line 296, in serial
File "dfu\dfu.py", line 226, in dfu_send_images
File "dfu\dfu.py", line 206, in _dfu_send_image
File "dfu\dfu_transport_serial.py", line 213, in send_firmware
File "dfu\dfu_transport_serial.py", line 241, in send_packet
File "serial\serialwin32.py", line 317, in write
serial.serialutil.SerialException: WriteFile failed (PermissionError(13, 'The device does not recognize the command.', None, 22))
Possible causes:
- Selected Bootloader version does not match the one on Bluefruit device.
Please upgrade the Bootloader or select correct version in Tools->Bootloader.
- Baud rate must be 115200, Flow control must be off.
- Target is not in DFU mode. Ground DFU pin and RESET and release both to enter DFU mode.
Thanks.