Photon my code will not re-flash, needs to go via Tinker

This sounds like a beginner question … after flashing with my code from the web IDE, the Photon will not flash again. I have to put the Photon into DFU mode, flash Tinker via USB, then the web IDE will successfully flash my code.

Once my code is loaded, the web IDE shows last event status = offline, but with the breathing cyan indicator saying device connected.

I feel I must be doing (or NOT doing) something obvious, but what?

I guess your code may be starving the cloud process from processing time, but not long enough to cause the RGB LED to indicate an actual loss of connection.

Try adding SYSTEM_THREAD(ENABLED) to your code.

In order to flash new code, you could also use try Safe Mode.

I discovered the problem. I’d used SYSTEM_MODE(SEMI_AUTOMATIC) because I want to prevent a connection attempt when Wi-Fi is not available (an input set via dip switch), and I’d not thought to put Particle.connect() into the normal setup sequence.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.