Not able to upload code to particle photon after using System.sleep

I used System.sleep(SLEEP_MODE_DEEP, 1 * 60); in my code after following this tutorial,

I believe due to this my particle photon sleeps at the time of upload and I am not able to flash firmware.

What should I do, I have tried reset and change device name and all that but the old setting still persists it comes online and publishes code to thingspeak as per old settings .and I am not able to flash new code.

Please help

If you have phyiscal access to the device you can put it in Safe Mode to OTA update or flash new firmware via USB (in DFU or Listening Mode).

can you please show me how can I do that

Here you can find how to enter

You can download the binary to flash by hitting the little cloud symbol next to your project name in Web IDE
image

thanks I got it working (y)

1 Like