Hi all,
I was testing Workbench on Ubuntu today and when I try to flash my freshly compiled firmware on an argon, I get a dfu-util error about no DFU device found:
dfu-util: Cannot open DFU device 2b04:d00c
dfu-util: No DFU capable USB device available
make[2]: *** [program-dfu] Error 74
As a workaround, I am able to use particle flash --usb target/firmware.bin
because this asks me if I would like to automatically add a udev rules file to fix the permissions issue as seen here:
bash-5.0$ particle flash --usb target/testProj.bin
You are missing the permissions to access USB devices without root.
? Would you like to install a udev rules file to get access? (Y/n)
This fixes my issue and from then on I am able to flash from within workbench, however this feels like a workaround and might not be obvious to all users. Would it be possible to have workbench apply these same udev rules on install or at least provide a task in the command palette to fix this?
Thanks for any insight you can offer.