I used Particle Workbench to put a firmware and unknowingly put a debug firmware in a Particle Photon.
Now to recover the Photon, I used the Particle CLI and programmed the tinker firmware using “particle flash --usb tinker” command which went successful but now I am not able to use the online IDE to update the firmware and says “Device is running debug firmware which does not support OTA. Reflash Device OS using Workbench or CLI (particle update)”. Also, the Photon takes a lot of time to connect to WiFi and doesn’t go to OTA update mode.
Please help me to get back to a state where I can enable the OTA update mode.
Put the device in DFU Mode (just as you did to flash Tinker) and run particle update -v (that -v is optional for verbose output, but I prefer seeing what's going on, so I usually add it).
Opening DFU capable USB device...
ID 2b04:d006
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #1 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
DfuSe interface name: "DCT Flash "
Downloading to address = 0x000006d9, size = 1
Download [ ] 0% 0 bytesFile too short for DFU suffix
A valid DFU suffix will be required in a future dfu-util release!!!
Cannot open DFU device 2b04:d006
Error during download get_status
! An error occurred while attempting to update the system firmware of your device:
File too short for DFU suffix
A valid DFU suffix will be required in a future dfu-util release!!!
Cannot open DFU device 2b04:d006
Error during download get_status