DFU Mode Trigger / Force via PowerShell

Just a super quick share here, but for those using Windows/PowerShell environments I wrote a little script to force a Particle device into DFU mode via serial connect at baud 14400.

$scom = [System.IO.Ports.SerialPort]::getportnames()
$port = new-Object System.IO.Ports.SerialPort $scom,14400,None,8,one

Connect via USB and run the following in a powershell window (or save it in a goToDFU.ps1 script if you’d like)

Quicker and easier than using the buttons!

Alternatively you could just use the mode command mode COMx 14400 which works in both PowerShell and CMD

Well that certainly is simpler!

I guess the only advantage of the PS script is it grabbing the COM for you.

Thanks ScruffR!