TL/DR:
If particle usb
commands are not working for one of your devices on a Windows machine, try "uninstalling" all of the "hidden devices" using Windows Device Manager.
This fixed my problem.
I can't get any of the particle usb
commands to work with my Argon.
I'm using Windows 11 with particle CLI version
Step 1 - Tries to Restore Argon using USB commands
Followed the guide here: How Can I Set Up My Argon Or Boron Via USB? | Troubleshooting | Particle
Can't get past step 8. Here is the PowerShell output:
PS C:\Users\macdo> particle update
Updating argon e00fce681885451c74454197 to latest Device OS version
[██████████████░░░░░░░░░░░] 57% | Flash failed.
Unable to reconnect to the device. Try again or run particle update to repair the device
PS C:\Users\macdo>
Step 2 - Try Device Restore USB Tool
Selected OS version 5.3.0
Still not working... after all the steps of the USB restore tool get a green check mark, my device resets, connects to the server (breathing cyan), and the web restore tool shows:
Waiting for the device to finish updating itself and restart...
This will take several seconds, and the status LED may blink yellow, white, magenta (red and blue at the same time), blue, or green.
Nothing happens after this... and my device is still not being recognized by any particle usb
commands if I try to interact with it using CLI.
Step 3 - Try Device Restore JTAG Tool
Upgraded my Particle Debugger: Debugger | Reference | Particle
Then pressed the 4.2.0 button on the JTAG restore page (see screenshot):
After a few minutes got the following status on this web page:
Flash complete!
Still, particle usb
commands not working...
PS C:\Users\macdo> particle serial list
Found 1 device connected via serial:
COM5 - Argon - e00fce681885451c74454197
PS C:\Users\macdo> particle usb dfu
Unable to open USB device
PS C:\Users\macdo> particle usb dfu -v
Getting device information...
Unable to open USB device
UsbError: Unable to open USB device
at wrapUsbError (C:\Users\macdo\AppData\Local\particle\node_modules\particle-cli\node_modules\particle-usb\src\usb-device-node.js:25:9)
at C:\Users\macdo\AppData\Local\particle\node_modules\particle-cli\node_modules\particle-usb\src\usb-device-node.js:50:19
at new Promise (<anonymous>)
at UsbDevice.open (C:\Users\macdo\AppData\Local\particle\node_modules\particle-cli\node_modules\particle-usb\src\usb-device-node.js:46:10)
at klass.open (C:\Users\macdo\AppData\Local\particle\node_modules\particle-cli\node_modules\particle-usb\src\device-base.js:131:20)
at openUsbDevice (C:\Users\macdo\AppData\Local\particle\node_modules\particle-cli\src\cmd\usb-util.js:91:26)
at C:\Users\macdo\AppData\Local\particle\node_modules\particle-cli\src\cmd\usb.js:277:15
at async CLI.runCommand (C:\Users\macdo\AppData\Local\particle\node_modules\particle-cli\src\app\cli.js:148:4)
at async CLI.run (C:\Users\macdo\AppData\Local\particle\node_modules\particle-cli\src\app\cli.js:175:11)
PS C:\Users\macdo>
Step 4 - Try "factory reset" method
I tried to do a factory reset of the Argon by continuing to holding down mode button for 10 seconds or more (see factory reset instructions here: How to do a factory reset
Step 5 - Reinstalled Particle CLI
Then I tried re-installing Particle CLI and running particle update-cli
command afterwards, putting the Argon into DFU mode, connecting to computer, and using particle update
command. This process fails:
C:\Users\macdo>particle update-cli
Updating CLI... no plugins to update.
C:\Users\macdo>particle --version
3.22.0
C:\Users\macdo>particle update
Updating argon e00fce681885451c74454197 to latest Device OS version
The access token was not found
C:\Users\macdo>particle login
? Please enter your email address tom@jazaenergy.com
? Please enter your password [hidden]
> Successfully completed login!
C:\Users\macdo>particle update
Updating argon e00fce681885451c74454197 to latest Device OS version
[██████████████░░░░░░░░░░░] 57% | Flash failed.
Unable to reconnect to the device. Try again or run particle update to repair the device
Step 6 - Check with a different Argon to confirm nothing wrong with setup
I have another Argon which works fine after each of the above steps (continues to respond to the particle usb
suite of commands).
-
After [How Can I Set Up My Argon Or Boron Via USB?] process (How Can I Set Up My Argon Or Boron Via USB? | Troubleshooting | Particle)
- still responds to
particle usb
commands
- still responds to
-
After Device Restore USB Tool
- still responds to
particle usb
commands
- still responds to
-
After Device Restore JTAG Tool
- still responds to
particle usb
commands
- still responds to
-
After How to do a factory reset Process
- still responds to
particle usb
commands
- still responds to
Step 7 - Compare differences between Argons
The only difference other than the behavior of any commands/processes that use the particle usb
command between the two Argons that I can see is the device status that gets listed when using the USB restore command:
The working Argon says "CDC Mode" and the problematic Argon says "CDC Mode - Paired"
Summary
Seems that whatever is causing the device not to be able to respond to particle usb
flavored commands is also causing particle update
process to fail...
Since both Argons went through the Device Restore JTAG process without incident, it would seem that whatever is causing this difference of behavior from one Argon to the other has something to do with
Open questions
Is there a way to check what version of the bootloader is installed?
What reasons could there be for particle usb
style commands not working?
Can anyone recommend how to get my Argon working with the particle usb
commands so that I can easily develop/flash code to this Argon using Particle Workbench?