# Issue with Photon, will not connect, error code 1

**URL:** <https://community.particle.io/t/issue-with-photon-will-not-connect-error-code-1/26681>\
**Category:** Troubleshooting\
**Created:** [October 21, 2016, 10:38pm UTC](https://community.particle.io/t/issue-with-photon-will-not-connect-error-code-1/26681 "2016-10-21T22:38:23Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ledbelly2142](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/ledbelly2142/32/9426_2.png) [@Ledbelly2142](https://community.particle.io/u/Ledbelly2142)\
**Post date:** [October 21, 2016, 10:38pm UTC](https://community.particle.io/t/issue-with-photon-will-not-connect-error-code-1/26681/1 "2016-10-21T22:38:24Z")

</div>

Hey all,  
I have a photon that was working fine reading temperature. The device stopped sending and was blinking red when I finally went to retrieved it. I cannot get it into safe mode. I tried to update the photon using CLI, “particle update”, but I get \>Error code: 1

I also tried to use the particle firmware update utility (usb) but it tries to update the firmware to 0.5.2 and fails, it was on 0.5.3

When it attempts to connect, the flashing cyan fast for several seconds, then flashes fast red, then goes back to cyan flashing like its trying to connect to the cloud.

Then after a while, it just flashes red (fast) not the SOS patterns.

Here is the last config in the cloud  
"id": “21003xxxxxxxxxxxxxxxxxxxx”,  
“name”: “photon007”,  
“last\_app”: null,  
“last\_ip\_address”: “65.19.169.166”,  
“last\_heard”: “2016-09-22T13:45:03.891Z”,  
“product\_id”: 6,  
“connected”: false,  
“platform\_id”: 6,  
“cellular”: false,  
“status”: “normal”

Is this thing toast?

Thanks

---

<div class="post-metadata">

**Author:** ![Moors7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/moors7/32/588_2.png) [@Moors7](https://community.particle.io/u/Moors7)\
**Post date:** [October 21, 2016, 10:45pm UTC](https://community.particle.io/t/issue-with-photon-will-not-connect-error-code-1/26681/2 "2016-10-21T22:45:08Z")

</div>

> [@Ledbelly2142](#):
>
> I cannot get it into safe mode. I tried to update the photon using CLI

So DFU mode does work?

---

<div class="post-metadata">

**Author:** ![Ledbelly2142](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/ledbelly2142/32/9426_2.png) [@Ledbelly2142](https://community.particle.io/u/Ledbelly2142)\
**Post date:** [October 21, 2016, 11:46pm UTC](https://community.particle.io/t/issue-with-photon-will-not-connect-error-code-1/26681/3 "2016-10-21T23:46:25Z")

</div>

I don’t think so, I tried to “particle flash --usb tinker” and got the error:

Error: writing firmware…dfu-util is not installed

---

<div class="post-metadata">

**Author:** ![Moors7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/moors7/32/588_2.png) [@Moors7](https://community.particle.io/u/Moors7)\
**Post date:** [October 22, 2016, 2:57am UTC](https://community.particle.io/t/issue-with-photon-will-not-connect-error-code-1/26681/4 "2016-10-22T02:57:57Z")

</div>

That’s a pretty obvious error; have you tried installing DFU Util?

---

<div class="post-metadata">

**Author:** ![Ledbelly2142](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/ledbelly2142/32/9426_2.png) [@Ledbelly2142](https://community.particle.io/u/Ledbelly2142)\
**Post date:** [October 24, 2016, 5:24pm UTC](https://community.particle.io/t/issue-with-photon-will-not-connect-error-code-1/26681/5 "2016-10-24T17:24:36Z")

</div>

@Moors7 , I appreciate your help, please forgive my ignorance. I had followed the instructions to install the particle CLI some time ago, I thought they included the dfu utilities on my local system–I checked and they had been installed on my local system. One difference I see on my Win 10 system is there is no path set in my environmental variables for dfu utilities, it was set before. I fixed it. I did download and install the dfu utilities when I installed the particle CLI.

I could flash other photons, as well as use OTA with other photons. This one is not behaving, I can’t flash/update the firmware via usb. A bad assumption of mine may be that if I can flash firmware via USB to other photons, I should be able to flash this one.

Now that environmental variable path was reinstated, I get a new error that stated:

“I was unable to detect any devices in DFU mode…”

However, the photon is blinking yellow. My understanding was that the blinking yellow indicated the photon was in DFU mode.

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![peekay123](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/peekay123/32/810_2.png) [@peekay123](https://community.particle.io/u/peekay123)\
**Post date:** [October 25, 2016, 12:13pm UTC](https://community.particle.io/t/issue-with-photon-will-not-connect-error-code-1/26681/6 "2016-10-25T12:13:25Z")

</div>

@Ledbelly2142, for DFU flashing you also need to have installed the Zadig driver for that device. Have you done so?

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [October 25, 2016, 2:35pm UTC](https://community.particle.io/t/issue-with-photon-will-not-connect-error-code-1/26681/7 "2016-10-25T14:35:37Z")

</div>

> [@Ledbelly2142](#):
>
> I could flash other photons, as well as use OTA with other photons.

In that case, could it be that the USB connector on the device has got some issues?

---

<div class="post-metadata">

**Author:** ![Ledbelly2142](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/ledbelly2142/32/9426_2.png) [@Ledbelly2142](https://community.particle.io/u/Ledbelly2142)\
**Post date:** [October 26, 2016, 2:05am UTC](https://community.particle.io/t/issue-with-photon-will-not-connect-error-code-1/26681/8 "2016-10-26T02:05:08Z")

</div>

With the DFU Utility update, I can flash the photon through the CLI, says it successfully loads. But I still have the same problem, blinks red and fails to connect to the cloud.

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [October 26, 2016, 7:07am UTC](https://community.particle.io/t/issue-with-photon-will-not-connect-error-code-1/26681/9 "2016-10-26T07:07:32Z")

</div>

If this red flashing is a quick red burst while blinking cyan then try

```nohighlight
particle keys doctor <yourDeviceID>
particle keys server

```

If it’s not, post a video of the color codes (+10sec either side of the red blink)

---

<div class="post-metadata">

**Author:** ![Ledbelly2142](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/ledbelly2142/32/9426_2.png) [@Ledbelly2142](https://community.particle.io/u/Ledbelly2142)\
**Post date:** [October 26, 2016, 9:50pm UTC](https://community.particle.io/t/issue-with-photon-will-not-connect-error-code-1/26681/10 "2016-10-26T21:50:06Z")

</div>

@ScruffR Thanks for your suggestion. When put the photon in DFU mode (blinking yellow), and attempt to use “particle keys doctor” with the device ID, I get the response that there is no DFU connected device. The error:  
“I was unable to detect any devices in DFU mode…”  
Your device will blink yellow when in DFU Mode.

Here is the video when the photon tries to connect to the cloud:  
https://player.vimeo.com/video/189040626

Could there be something wrong with the usb driver? It seems ok in my device manager (image) ![](https://us1.discourse-cdn.com/flex026/uploads/particle/original/2X/f/f669e4862dd18529f427f24693507d5bbfa2bc3c.PNG)

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [October 27, 2016, 5:06am UTC](https://community.particle.io/t/issue-with-photon-will-not-connect-error-code-1/26681/11 "2016-10-27T05:06:32Z")

</div>

You said

> [@Ledbelly2142](#):
>
> With the DFU Utility update, I can flash the photon through the CLI

If this was true, you will also be able to do `particle keys` (this might only ask for OpenSSL to be installed if not already present)  
Otherwise try reinstalling the DFU drivers via zadig, try a different USB port and/or cable.

---

<div class="post-metadata">

**Author:** ![Ledbelly2142](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/ledbelly2142/32/9426_2.png) [@Ledbelly2142](https://community.particle.io/u/Ledbelly2142)\
**Post date:** [October 31, 2016, 4:32pm UTC](https://community.particle.io/t/issue-with-photon-will-not-connect-error-code-1/26681/12 "2016-10-31T16:32:49Z")

</div>

Yes, I could flash other devices. I can no longer flash this Photon. The error I get is:  
“I was unable to detect any devices in DFU mode…”

Is there another way to load firmware on a Photon?
