[ISSUE] Workbench on Ubuntu doesn't ask to add udev rules but CLI does

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.

1 Like

for anyone who runs into this issue, @m_m kindly pointed out on another post that the fix for this is in the docs: other post and linux tips

thank you @m_m!

1 Like

One more note and slight correction to my post above: @m_m I noticed that the linux tips section linked above mentions the udev rules for 99-openocd.rules however the udev rules for flashing with dfu-util aren’t mentioned even though the file 50-particle.rules file indeed exists in the same directory as the openocd ones. With a little poking around in assets/files I located the file at the path: https://docs.particle.io/assets/files/50-particle.rules Just a heads up

1 Like

good call-out @addisonwk thanks :pray:

i updated our docs - they should be live shortly: