P2 issue - flash failed DfuSe command?

Any advice about how to recover from this issue during USB flashing?

[███░░░░░░░░░░░░░░░░░░░░░░] 13% | Flash failed.
Writing over DFU failed: Error during special DfuSe command ERASE_SECTOR:UsbError: OUT control transfer failed
make[1]: *** [flash-app-and-os] Error 1
make: *** [flash-all] Error 2

I have to manually put it in DFU mode.

What happens if you flash without putting the device in DFU mode? Is it able to switch automatically to DFU mode or do you get an error?

Are you able to flash the application by itself using Workbench: Flash application (local)?

If the failure happens only when flashing Device OS, you can try to flash the Device OS part directly by running particle flash --usb ~/.particle/device-os-flash/binaries/5.7.0/p2/p2-system-part1@5.7.0.bin (replace 5.7.0 with the Device OS version you are using). Does that complete successfully?

@jvanier
If I flash without putting the device in DFU mode I get this:

:::: STARTING FLASH

No devices found
make[1]: *** [flash-app-and-os] Error 1
make: *** [flash-all] Error 2

The error was using Workbench: Flash application (local).

If I use CLI from terminal as you have suggested I get this:

$ particle flash --usb "p2-system-part1@5.7.0.bin"

Flashing p2 device 0a10aced202194944a001698

[█████████████░░░░░░░░░░░░] 52% | Flash failed.

Writing over DFU failed: Error during DfuSe download: UsbError: OUT control transfer failed

Any further ideas about how to recover this P2 evaluation board?

Try with a direct dfu-util command

dfu-util -d 2b04:d020 -a 0 -i 0 -s 0x8060000 -D p2-system-part1@5.7.0.bin

If that still errors out, reach out to support.particle.io as it looks like a hardware issue.

1 Like

I am failing with this - not sure whether this is an error on the Mac or device

dfu-util: Warning: Invalid DFU suffix signature

dfu-util: A valid DFU suffix will be required in a future dfu-util release

dfu-util: Broken LANGID string descriptor

Opening DFU capable USB device...

Device ID 2b04:d020

Device DFU version 011a

Claiming USB DFU Interface...

Setting Alternate Interface #0 ...

dfu-util: Cannot set alternate interface: LIBUSB_ERROR_OTHER

I have raised a hardware issue with Particle Support.

1 Like