SDfat library - log file cannot be opened after a restart

OK. so what is the correct way to get, for example 5.6.0 on a device. Is it first to use the online tool in chrome at tools.particle.io and then use the particle cli at the command line?

particle update --target 5.6.0

If the device is already set up you don't need to use the tools.particle.io setup tool again.

particle update --target 5.6.0 should work over USB. However if you have a device with USB issues (Photon 2 with 5.7.0, for example), the tool may have trouble downgrading, because of the USB issues.

The other alternative is to use the browser-based Device Restore USB.

Gotcha. So currently I have a Photon 2 and an Argon that do not want to finish the USB downgrade to 5.6 using the particle update command. it seems to hang at different times, sometimes at 30% and sometimes at 80%. But seems to always fail to complete.

  1. So this is a know bug?
  2. Solution is the use the deprecated device restore tool on the web?

I'm not aware of an issue with particle update failing, except on the RTL872x with 5.7.0 or 5.8.0. If you're experiencing problem with other versions, or the Argon, definitely try the web tool and see if that works. Is this the current version of the CLI (3.23.6)?

Yes, 3.23.6

I used this tool https://docs.particle.io/tools/device-restore/device-restore-usb/ and was able to flash over usb without issue.

But yes, this usb flashing issue with particle update is having similar issues with my Argons as well as my Photon 2's