Induce safe mode from user code

boron
argon
Tags: #<Tag:0x00007fe2261409c8> #<Tag:0x00007fe226140608>

#1

From the user app on the Argon/Boron, is there a code snippet that can induce safe mode, or can it be done via USB from the device itself?


#2
System.enterSafeMode();

https://docs.particle.io/reference/device-os/firmware/boron/#entersafemode-


By USB, as long as the device is running 0.9.0 or later and you have an up-to-date Particle CLI:

particle usb safe-mode

https://docs.particle.io/reference/developer-tools/cli/#particle-usb-safe-mode


By USB serial, connecting at 28800 baud will go into listening mode, then sending the L (uppercase) command by serial will cause it to go into safe listening mode. It will look like listening mode (blinking dark blue), but it’s running safe mode underneath it.


How do i put a photon chip into safe mode using serial?