After working for weeks, my photon suddenly began flashing yellow. It doesn't connect to the wifi any more without changing anything on the particle itself.
Now, I wanted to go into the safe mode (cyan breathing). This is unfortunately impossible: if I follow the steps described, it flashes 5x cyan and then flashes again yellow.
I read this: [SOLVED]Flashing yellow
But it doesn't help. I installed on a mac particle cli, but I cannot flash a firmware.
In general, I cannot change the photon's mode. I assume yellow flashing is DFU mode, so I should be able to connect it to the mac and flash right away, but I get:
particle serial list
No devices available via serial
To compliment what @nrobinson2000 has already mentioned and to clarify:
Cyan breathing is normal operation, cloud connected. Breathing Magenta would be Safe Mode.
In DFU mode, you cannot use a serial connection. For that it would have to be in listening mode (blinking blue). The particle update mentioned above should work in DFU mode.
Deducing device DFU version from functional descriptor length
Found Runtime: [05ac:828f] ver=0149, devnum=6, cfg=1, intf=3, path="20-3.3", alt=0, name="UNKNOWN", serial="UNKNOWN"
No matter if the photon is connected or not.
particle update gives me:
!!! I was unable to detect any devices in DFU mode...
> Your device will blink yellow when in DFU mode.
> If your device is not blinking yellow, please:
1) Press and hold both the RESET/RST and MODE/SETUP buttons simultaneously.
2) Release only the RESET/RST button while continuing to hold the MODE/SETUP button.
3) Release the MODE/SETUP button once the device begins to blink yellow.
Sorry, I have to correct: it is flashing 5x magenta, not cyan, upon being connected to the power or when I try to enter dfu mode via the buttons.
A 3sec video isn’t always telling the whole story. If you could take a video (~30sec) with your device out of the breadboard and from plugging it in to a few cycles of the flashing yellow, that would be more helpful.
This could be a combination of issues involving the power supply, the cable, the SETUP button, your code, …
Here a new video. I plugged in, then the magenta light, then the yellow light. Then I plugged it out, and plugged it in again and the whole procedure starts over.
I just did this (removed from bread board, removed all cables, new usb cable, new power source) - no change. Still exactly the same problem / lights flashing
What is the power source you are using to power this device with? Is it using a wall wart directly into the wall? Or is it being powered by a computer via USB or a USB hub?
That behavior is very unusual and not anything I’ve seen before. My first instinct is to think this is a power related issue as well
I used a wall connector, USB hub and a professional power supply unit. My measurements: while it is flashing magenta, it consumes 12mA @5.0V, when is enters the yellow blinking state 18mA.
Please not that the video was taken with a mobile camera, so that the flashing may (due to bad FPS rates) look different in the video than it does in reality. The magenta for example in the beginning is the normal magenta breathing.
Also, when look for reasons to solve that: I barely assume that is has do with the code: the chip was doing a simple routine task and sleeping most of the time for weeks, until this happened suddenly.
Make sure you haven't set the current limiter too low.
18mA while breathing magenta seems to be on the low side - I'd rather expect it to be somewhere around 80mA - 18mA is stated as the typical current draw in powersafe mode, which shouldn't be the case when entering normal WiFi operation or Safe Mode.
Thank you for the table! The limit is at 3A so there shouldn’t be any conflict… So this would indicate that the chip is in powersave mode? Is there a trick to force wake him?
This may really be a possibility as the chip was in powersave mode most of the time so it may have gotten stuck.
If it were in powersave, presumably the LED should be off entirely. Based on the video you provided, it seems to be in some weird state where there are long pauses of the LED off in between safe mode and DFU mode. Those off-state pauses are very unusual.
Userland code can cause complications, so it isn’t unreasonable to think it could be causing complications.
Are you able to get a consistent flashing in yellow if you intentionally try to put it into DFU (holding MODE, and pressing reset)? Or does it continue to do the off/on alternating?
If you can get it into a consistently flashing yellow, I’d definitely recommend you to try and reflash the device OS and Tinker to the device to see if the behavior persists.
If you aren’t able to get a connection in DFU mode, also double check your cable. It is possible the cable may not have a data line.
I can flash my other microcontrollers with this cable. It really works.
You mean by pushing for 3s the setup button? No, I can’t. It always behaves exactly as described above (breathing cyan, then flashing quickly yellow) no matter if I push the setup button or not.
Your video link has expired, can you reupload a video (also showing the attemt to enter Safe Mode & Listening Mode)?
Does this also happen when you power the device from a wall wart?
When you do the RESET/SETUP button business you never see any magenta at all?