# Cannot setup Photon

**URL:** <https://community.particle.io/t/cannot-setup-photon/13815>\
**Category:** Troubleshooting\
**Created:** [July 26, 2015, 9:29pm UTC](https://community.particle.io/t/cannot-setup-photon/13815 "2015-07-26T21:29:43Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![elmedico27](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/elmedico27/32/6224_2.png) [@elmedico27](https://community.particle.io/u/elmedico27)\
**Post date:** [July 26, 2015, 9:29pm UTC](https://community.particle.io/t/cannot-setup-photon/13815/1 "2015-07-26T21:29:43Z")

</div>

Hello all,

I’m having a bear of a time setting up my brand new Photon. Just got it in the mail and cannot get past the flashing blue. Here’s what I’ve tried:

- Plugged into USB power and tried setup with the iPhone app. I can log in to the Particle cloud successfully, but when I get to the step where I connect to the Photon Wi-Fi, I connect then nothing happens. I see that I’m connected to the Photon Wi-fi, but when I go back to the app, it just sits at the instruction page. I also never get a notification from the Particle app as seen in the “Show Me How” video.
- Changed wall warts, USB cables, etc. – still nothing.
- Tried connecting directly through USB to my Windows computer. Got node.js and npm set up, particle-cli installed, etc. When I run `particle setup`, it finds the Photon connected through USB but then I get the following error: `Potentially unhandled rejection [2] Unable to find mac address in response (WARNING: non-Error used)`. I can move past this, where it finds “Photon-xxxx” and it gets the “magical claim code” but then I get the following: `Woops. Something went wrong connecting to Photon-xxxx. Please manually re-connect to your Wi-Fi network.`
- I’ve done factory resets, DFU mode, and nothing seems work (DFU mode is another issue, it doesn’t find the photon\_tinker.bin file, but I’m in over my head with the libusb stuff). I just _cannot_ get past the flashing blue.

Any thoughts?

---

<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:** [July 26, 2015, 9:34pm UTC](https://community.particle.io/t/cannot-setup-photon/13815/2 "2015-07-26T21:34:36Z")

</div>

Using the CLI, could you give this a try: `particle setup wifi`, and then don’t have it detect your security type automatically.

---

<div class="post-metadata">

**Author:** ![AllAboutEE](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@AllAboutEE](https://community.particle.io/u/AllAboutEE)\
**Post date:** [July 26, 2015, 9:49pm UTC](https://community.particle.io/t/cannot-setup-photon/13815/3 "2015-07-26T21:49:01Z")

</div>

Same here and I also tried the CLI “particle setup wifi” as suggested by Moors7. Sometimes I even get that serial comm doesn’t work.

My photon seems to randomly connect and disconnect from the web, and the compiler isn’t even working at this point, when I press the verify button I get “compiler timed out or encountered an error.” and all doing is void setup(){} void loop{}

I would suggest that we just wait until someone here posts answers, like I said I’ve tried everything: CLI, factory reset, etc.

---

<div class="post-metadata">

**Author:** ![elmedico27](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/elmedico27/32/6224_2.png) [@elmedico27](https://community.particle.io/u/elmedico27)\
**Post date:** [July 26, 2015, 9:50pm UTC](https://community.particle.io/t/cannot-setup-photon/13815/4 "2015-07-26T21:50:26Z")

</div>

Well would you look at that. I’d done that a couple times before and would always get a serial error after the `I said: w` part. I gave the device key and cloud key instructions at [https://community.particle.io/t/photon-setup-flashing-cyan-with-a-quick-red-burst/12118/34](https://community.particle.io/t/photon-setup-flashing-cyan-with-a-quick-red-burst/12118/34) a shot and was running into the same issues with `particle setup` but now `particle setup wifi` worked. Thanks for bringing that up!

---

<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:** [July 26, 2015, 10:16pm UTC](https://community.particle.io/t/cannot-setup-photon/13815/5 "2015-07-26T22:16:15Z")

</div>

> [@AllAboutEE](#):
>
> My photon seems to randomly connect and disconnect from the web

So your Photon **does** work? If not, updating your system firmware might help.

> [@AllAboutEE](#):
>
> and the compiler isn't even working at this point, when I press the verify button I get "compiler timed out or encountered an error." and all doing is void setup(){} void loop{}

That's currently being looked into, thanks for letting us know!

---

<div class="post-metadata">

**Author:** ![AllAboutEE](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@AllAboutEE](https://community.particle.io/u/AllAboutEE)\
**Post date:** [July 27, 2015, 12:07am UTC](https://community.particle.io/t/cannot-setup-photon/13815/6 "2015-07-27T00:07:13Z")

</div>

> [@Moors7](#):
>
> So your Photon does work?

I don't know, I can't upload code it, I can only compile. If I run  
"particle list" sometimes it shows that it's online, sometimes it shows that's offline. The LED is solid blue both times.

> [@Moors7](#):
>
> If not, updating your system firmware might help.

How do I do this? Do I have to download all the build tools and compile?

---

<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:** [July 27, 2015, 12:13am UTC](https://community.particle.io/t/cannot-setup-photon/13815/8 "2015-07-27T00:13:12Z")

</div>

Strange behaviour indeed. Steps to upgrade your system firmware can be found over here: [https://github.com/spark/firmware/releases/tag/0.4.3-rc2](https://github.com/spark/firmware/releases/tag/0.4.3-rc2)

If your device is online, you only need the CLI. if it isn’t you’ll also need DFU-UTIL.

---

<div class="post-metadata">

**Author:** ![AllAboutEE](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@AllAboutEE](https://community.particle.io/u/AllAboutEE)\
**Post date:** [July 27, 2015, 12:27am UTC](https://community.particle.io/t/cannot-setup-photon/13815/9 "2015-07-27T00:27:41Z")

</div>

The device is online, but this is what I get:

![](https://community.particle.io/uploads/particle/original/0/7/079e9640f70da9e2482f9ffee0a446cd68e177e5.png)

and the LED is flashing blue.

---

<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:** [July 27, 2015, 12:34am UTC](https://community.particle.io/t/cannot-setup-photon/13815/10 "2015-07-27T00:34:06Z")

</div>

Have you downloaded those files, and is the CLI opened in that directory?

---

<div class="post-metadata">

**Author:** ![AllAboutEE](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@AllAboutEE](https://community.particle.io/u/AllAboutEE)\
**Post date:** [July 27, 2015, 12:42am UTC](https://community.particle.io/t/cannot-setup-photon/13815/11 "2015-07-27T00:42:17Z")

</div>

> [@Moors7](#):
>
> Have you downloaded those files

I hadn't, but I did now and I get this fail message:

---

<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:** [July 27, 2015, 12:44am UTC](https://community.particle.io/t/cannot-setup-photon/13815/12 "2015-07-27T00:44:00Z")

</div>

Seeing as your connection is apparently irregular, would you mind trying to flash it over DFU mode?

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [July 27, 2015, 12:46am UTC](https://community.particle.io/t/cannot-setup-photon/13815/13 "2015-07-27T00:46:57Z")

</div>

Also, do perform a CLI upgrade if `particle --version` says **\< V1.5.18**

@Moors7 mentioned:

- Place the Photon in DFU mode
- use the command  
`dfu-util -d 2b04:d006 -a 0 -s 0x8020000 -D system-part1-0.4.3-photon.bin`  
`dfu-util -d 2b04:d006 -a 0 -s 0x8060000:leave -D system-part2-0.4.3-photon.bin`

---

<div class="post-metadata">

**Author:** ![AllAboutEE](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@AllAboutEE](https://community.particle.io/u/AllAboutEE)\
**Post date:** [July 27, 2015, 1:29am UTC](https://community.particle.io/t/cannot-setup-photon/13815/14 "2015-07-27T01:29:27Z")

</div>

My version is 1.5.19

This is what I get from “particle flash --usb system-part1-0.4.3-photon.bin”

![](https://community.particle.io/uploads/particle/original/3/f/3f0fde819cc06f451aa5187fc1019aa33dba2ffe.png)

Since that didn’t work (right?), I did the DFU part of the github page [https://github.com/spark/firmware/releases/tag/0.4.3-rc2](https://github.com/spark/firmware/releases/tag/0.4.3-rc2)

and I get this error message after I sent this command “dfu-util -d 2b04:d006 -a 0 -s 0x8060000:leave -D system-part2-0.4.3-photon.bin”:

```
Download	[=========================] 100% 151192 bytes
Download done.
File downloaded successfully
Error during download get_status

```

The LED is solid green now, even after I remove power. Now I can’t talk to my photon via the terminal.

---

<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:** [July 27, 2015, 1:35am UTC](https://community.particle.io/t/cannot-setup-photon/13815/15 "2015-07-27T01:35:41Z")

</div>

So you’ve updated system part 1, part 3, and then flashed the new Tinker from that page? Tinker should be `particle flash --usb tinker-photon.bin`

---

<div class="post-metadata">

**Author:** ![AllAboutEE](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@AllAboutEE](https://community.particle.io/u/AllAboutEE)\
**Post date:** [July 27, 2015, 1:45am UTC](https://community.particle.io/t/cannot-setup-photon/13815/16 "2015-07-27T01:45:59Z")

</div>

I put the photon in DFU mode, sent “particle flash --usb tinker-photon.bin” and got this error message:

![](https://community.particle.io/uploads/particle/original/e/3/e3e9c2d2adb401147c0f78f93b19315c7ed397fc.png)

The led went back to solid green.

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [July 27, 2015, 1:47am UTC](https://community.particle.io/t/cannot-setup-photon/13815/17 "2015-07-27T01:47:45Z")

</div>

Can you hold down the SETUP button, hit the RESET button and once it hits blinking magenta, release the SETUP button.

---

<div class="post-metadata">

**Author:** ![AllAboutEE](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@AllAboutEE](https://community.particle.io/u/AllAboutEE)\
**Post date:** [July 27, 2015, 1:53am UTC](https://community.particle.io/t/cannot-setup-photon/13815/18 "2015-07-27T01:53:45Z")

</div>

> [@kennethlimcp](#):
>
> Can you hold down the SETUP button, hit the RESET button and once it hits blinking magenta, release the SETUP button.

So I did:

1.) Hold SETUP  
2.) Hit RESET  
3.) Wait for blinking magenta  
4.) release SETUP

the LED is still green. The photon is not connected to the COM port.

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [July 27, 2015, 1:55am UTC](https://community.particle.io/t/cannot-setup-photon/13815/19 "2015-07-27T01:55:11Z")

</div>

It seems like the flashing was not done properly.

Do:

- `dfu-util -d 2b04:d006 -a 0 -s 0x8020000 -D system-part1-0.4.3-photon.bin`
- `dfu-util -d 2b04:d006 -a 0 -s 0x8060000:leave -D system-part2-0.4.3-photon.bin`

---

<div class="post-metadata">

**Author:** ![AllAboutEE](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@AllAboutEE](https://community.particle.io/u/AllAboutEE)\
**Post date:** [July 27, 2015, 1:57am UTC](https://community.particle.io/t/cannot-setup-photon/13815/20 "2015-07-27T01:57:31Z")

</div>

Done.

The second command returns.

```
Download	[=========================] 100% 151192 bytes
Download done.
File downloaded successfully
Error during download get_status

```

Do I flash the tinker now using “particle flash --usb tinker-photon.bin”?

---

<div class="post-metadata">

**Author:** ![kennethlimcp](https://avatars.discourse-cdn.com/v4/letter/k/c0e974/32.png) [@kennethlimcp](https://community.particle.io/u/kennethlimcp)\
**Post date:** [July 27, 2015, 1:58am UTC](https://community.particle.io/t/cannot-setup-photon/13815/21 "2015-07-27T01:58:41Z")

</div>

It’s ok we can leave it for now. Now perform this:

1.) Hold SETUP  
2.) Hit RESET  
3.) Wait for blinking magenta  
4.) release SETUP

[Next page](https://community.particle.io/t/cannot-setup-photon/13815.md?page=2)
