# Core won't connect to internet. Cannot factory restore tinker or use key doctor

**URL:** <https://community.particle.io/t/core-wont-connect-to-internet-cannot-factory-restore-tinker-or-use-key-doctor/35312>\
**Category:** Troubleshooting\
**Created:** [August 14, 2017, 8:03am UTC](https://community.particle.io/t/core-wont-connect-to-internet-cannot-factory-restore-tinker-or-use-key-doctor/35312 "2017-08-14T08:03:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![skottdc](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@skottdc](https://community.particle.io/u/skottdc)\
**Post date:** [August 14, 2017, 8:03am UTC](https://community.particle.io/t/core-wont-connect-to-internet-cannot-factory-restore-tinker-or-use-key-doctor/35312/1 "2017-08-14T08:03:15Z")

</div>

Hello.

I’ve had my Core for 2 years and it’s been running a simple code, flawlessly. Over the weekend it seemed to get stroppy and wouldn’t connect to the internet (flashing green light).

Following Particle docs, I tried to perform a reset through CLI. CC3000 & USB Tinker worked without problem but when I try to run \>particle flash --factory tinker I get this :

```
>particle flash --factory tinker
Found DFU device 1d50:607f
spawning dfu-util -d 1d50:607f -a 0 -i 0 -s 0x00020000 -D C:\Users\Scott\AppData\Local\particle\node_modules\particle-cli\binaries\core_tinker.bin
dfu-util 0.8

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Opening DFU capable USB device...
ID 1d50:607f
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: Invalid DFU suffix signature
A valid DFU suffix will be required in a future dfu-util release!!!
Last page at 0x000343af is not writeable
state = dfuERROR, status = 10
dfuERROR, clearing status
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 1024
DfuSe interface name: "Internal Flash "
Downloading to address = 0x00020000, size = 82864

Error writing firmware...Invalid DFU suffix signature
A valid DFU suffix will be required in a future dfu-util release!!!
Last page at 0x000343af is not writeable 

```

I did some searching and found this article [Spark core - can't flash anything](https://community.particle.io/t/spark-core-cant-flash-anything/31804/4) It suggested running the Keys Doctor.

When I try I get this :

```
C:\Users\Scott>particle keys doctor 53ff6b066667574828390976
Found DFU device 1d50:607f
Found DFU device 1d50:607f
Error creating keys... Error: Command failed: C:\Windows\system32\cmd.exe /s /c "openssl genrsa -out 53ff6b066667574828390976_rsa_new.pem 1024"
'openssl' is not recognized as an internal or external command,
operable program or batch file.

Make sure your device is in DFU mode (blinking yellow), and that your computer is online.
Error - Error: Command failed: C:\Windows\system32\cmd.exe /s /c "openssl genrsa -out 53ff6b066667574828390976_rsa_new.pem 1024"
'openssl' is not recognized as an internal or external command,
operable program or batch file. 

```

I’m completely out of my depth with this and would really appreciate any help at all.

Thanks, Scott.

---

<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:** [August 14, 2017, 10:46am UTC](https://community.particle.io/t/core-wont-connect-to-internet-cannot-factory-restore-tinker-or-use-key-doctor/35312/2 "2017-08-14T10:46:25Z")

</div>

Do a `particle flash --usb cc3000`

---

<div class="post-metadata">

**Author:** ![skottdc](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@skottdc](https://community.particle.io/u/skottdc)\
**Post date:** [August 14, 2017, 10:56am UTC](https://community.particle.io/t/core-wont-connect-to-internet-cannot-factory-restore-tinker-or-use-key-doctor/35312/3 "2017-08-14T10:56:45Z")

</div>

Thanks for the reply.

I tried your suggestion but it didn’t help. Still cannot connect to wifi network ☹

---

<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:** [August 14, 2017, 11:03am UTC](https://community.particle.io/t/core-wont-connect-to-internet-cannot-factory-restore-tinker-or-use-key-doctor/35312/4 "2017-08-14T11:03:17Z")

</div>

Was is connecting before? Might want to double check the credentials 😉

---

<div class="post-metadata">

**Author:** ![skottdc](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@skottdc](https://community.particle.io/u/skottdc)\
**Post date:** [August 14, 2017, 11:16am UTC](https://community.particle.io/t/core-wont-connect-to-internet-cannot-factory-restore-tinker-or-use-key-doctor/35312/5 "2017-08-14T11:16:57Z")

</div>

Yes it was working great for 2 years. I cannot complete \>particle setup because it won’t connect to wifi to allow me to claim the core. Wifi credentials are correct.

---

<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:** [August 14, 2017, 11:20am UTC](https://community.particle.io/t/core-wont-connect-to-internet-cannot-factory-restore-tinker-or-use-key-doctor/35312/6 "2017-08-14T11:20:34Z")

</div>

Is it blinking green? What happened when you used `particle flash --usb cc3300`?

---

<div class="post-metadata">

**Author:** ![skottdc](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@skottdc](https://community.particle.io/u/skottdc)\
**Post date:** [August 14, 2017, 11:32am UTC](https://community.particle.io/t/core-wont-connect-to-internet-cannot-factory-restore-tinker-or-use-key-doctor/35312/7 "2017-08-14T11:32:02Z")

</div>

Blinking green. No connection to wifi.

Log from Flash :  
Opening DFU capable USB device…  
ID 1d50:607f  
Run-time device DFU version 011a  
Claiming USB DFU Interface…  
Setting Alternate Setting #0 …  
Determining device status: state = dfuERROR, status = 10  
dfuERROR, clearing status  
Determining device status: state = dfuIDLE, status = 0  
dfuIDLE, continuing  
DFU mode device DFU version 011a  
Device returned transfer size 1024  
DfuSe interface name: "Internal Flash "  
Downloading to address = 0x08005000, size = 82864  
Download [=========================] 100% 82864 bytes  
Download done.  
File downloaded successfully  
Transitioning to dfuMANIFEST state  
Invalid DFU suffix signature  
A valid DFU suffix will be required in a future dfu-util release!!!

Flash success!

---

<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:** [August 14, 2017, 11:40am UTC](https://community.particle.io/t/core-wont-connect-to-internet-cannot-factory-restore-tinker-or-use-key-doctor/35312/8 "2017-08-14T11:40:54Z")

</div>

After flashing the `cc3000` patch, the core should blink magenta. Did that happen?

---

<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:** [August 14, 2017, 1:27pm UTC](https://community.particle.io/t/core-wont-connect-to-internet-cannot-factory-restore-tinker-or-use-key-doctor/35312/9 "2017-08-14T13:27:51Z")

</div>

> [@skottdc](#):
>
> I cannot complete \>particle setup because it won't connect to wifi to allow me to claim the core.

If it was working before you won't need to claim it _ **again** _ - it'll be still claimed to your account.

use `particle serial wifi` instead of `particle setup` to _only_ store new creds.

---

<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:** [August 14, 2017, 1:54pm UTC](https://community.particle.io/t/core-wont-connect-to-internet-cannot-factory-restore-tinker-or-use-key-doctor/35312/10 "2017-08-14T13:54:28Z")

</div>

A post was split to a new topic: [Photon not appearing as serial port](https://community.particle.io/t/photon-not-appearing-as-serial-port/35317)

---

<div class="post-metadata">

**Author:** ![skottdc](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@skottdc](https://community.particle.io/u/skottdc)\
**Post date:** [August 14, 2017, 7:08pm UTC](https://community.particle.io/t/core-wont-connect-to-internet-cannot-factory-restore-tinker-or-use-key-doctor/35312/11 "2017-08-14T19:08:41Z")

</div>

Yes it did blink magenta. Problem remains the same.

---

<div class="post-metadata">

**Author:** ![skottdc](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@skottdc](https://community.particle.io/u/skottdc)\
**Post date:** [August 14, 2017, 7:09pm UTC](https://community.particle.io/t/core-wont-connect-to-internet-cannot-factory-restore-tinker-or-use-key-doctor/35312/12 "2017-08-14T19:09:39Z")

</div>

Thanks, I tried your suggestion but lack of wifi connection stops particle serial wifi routine from finishing.

---

<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:** [August 14, 2017, 7:11pm UTC](https://community.particle.io/t/core-wont-connect-to-internet-cannot-factory-restore-tinker-or-use-key-doctor/35312/13 "2017-08-14T19:11:46Z")

</div>

Is it possible that you ever had set `WiFi.useStaticIP()`?

---

<div class="post-metadata">

**Author:** ![skottdc](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@skottdc](https://community.particle.io/u/skottdc)\
**Post date:** [August 14, 2017, 10:25pm UTC](https://community.particle.io/t/core-wont-connect-to-internet-cannot-factory-restore-tinker-or-use-key-doctor/35312/14 "2017-08-14T22:25:17Z")

</div>

No, I never used this command.

---

<div class="post-metadata">

**Author:** ![skottdc](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@skottdc](https://community.particle.io/u/skottdc)\
**Post date:** [August 15, 2017, 11:14am UTC](https://community.particle.io/t/core-wont-connect-to-internet-cannot-factory-restore-tinker-or-use-key-doctor/35312/15 "2017-08-15T11:14:31Z")

</div>

I tried to flash my core again with a different computer with particle CLI installed. I still get a DFU error when I try to run this command \>particle flash --factory tinker

Any ideas?

---

<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:** [August 15, 2017, 12:09pm UTC](https://community.particle.io/t/core-wont-connect-to-internet-cannot-factory-restore-tinker-or-use-key-doctor/35312/16 "2017-08-15T12:09:48Z")

</div>

@skottdc, which DFU error are you getting? Also, try `particle flash --usb tinker`.

---

<div class="post-metadata">

**Author:** ![skottdc](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@skottdc](https://community.particle.io/u/skottdc)\
**Post date:** [August 15, 2017, 2:13pm UTC](https://community.particle.io/t/core-wont-connect-to-internet-cannot-factory-restore-tinker-or-use-key-doctor/35312/17 "2017-08-15T14:13:04Z")

</div>

This is the DFU error I get.

Error writing firmware…Invalid DFU suffix signature  
A valid DFU suffix will be required in a future dfu-util release!!!  
Last page at 0x000343af is not writeable.

The error is constant.  
When I use \>particle flash --USB tinker that completes but does not resolve the problem.  
After that completes I am still unable to connect to wifi or flash --factory tinker

---

<div class="post-metadata">

**Author:** ![skottdc](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@skottdc](https://community.particle.io/u/skottdc)\
**Post date:** [October 21, 2017, 1:46pm UTC](https://community.particle.io/t/core-wont-connect-to-internet-cannot-factory-restore-tinker-or-use-key-doctor/35312/18 "2017-10-21T13:46:56Z")

</div>

Just as a follow-up to this post for other people with this fault, I never managed to solve this problem.  
I had to replace my Core with a photon.

---

<div class="post-metadata">

**Author:** ![ParticleIce](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@ParticleIce](https://community.particle.io/u/ParticleIce)\
**Post date:** [October 21, 2017, 6:15pm UTC](https://community.particle.io/t/core-wont-connect-to-internet-cannot-factory-restore-tinker-or-use-key-doctor/35312/19 "2017-10-21T18:15:15Z")

</div>

Try this…Take a deep breath. Don’t flash it.  
Type:

npm update -g particle-cli  
particle update

```
!!! 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.

```

particle flash --factory tinker  
particle flash --usb cc3000 (blinks magenta -\> yellow)  
particle flash --usb tinker

Wait…keep waiting… don’t do anything.

---

<div class="post-metadata">

**Author:** ![skottdc](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@skottdc](https://community.particle.io/u/skottdc)\
**Post date:** [October 21, 2017, 6:30pm UTC](https://community.particle.io/t/core-wont-connect-to-internet-cannot-factory-restore-tinker-or-use-key-doctor/35312/20 "2017-10-21T18:30:45Z")

</div>

> [@ParticleIce](#):
>
> npm update -g particle-cli  
> particle update

Still the same symptoms :  
When I "particle flash --factory tinker" I get this:

Found DFU device 1d50:607f  
spawning dfu-util -d 1d50:607f -a 0 -i 0 -s 0x00020000 -D /usr/local/lib/node\_modules/particle-cli/binaries/core\_tinker.bin  
dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.  
Copyright 2010-2016 Tormod Volden and Stefan Schmidt  
This program is Free Software and has ABSOLUTELY NO WARRANTY  
Please report bugs to [http://sourceforge.net/p/dfu-util/tickets/](http://sourceforge.net/p/dfu-util/tickets/)

dfu-util: Invalid DFU suffix signature  
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!  
Deducing device DFU version from functional descriptor length  
Opening DFU capable USB device...  
ID 1d50:607f  
Run-time device DFU version 011a  
Claiming USB DFU Interface...  
Setting Alternate Setting #0 ...  
Determining device status: state = dfuERROR, status = 10  
dfuERROR, clearing status  
Determining device status: state = dfuIDLE, status = 0  
dfuIDLE, continuing  
DFU mode device DFU version 011a  
Device returned transfer size 1024  
DfuSe interface name: "Internal Flash "  
Downloading to address = 0x00020000, size = 82864  
dfu-util: Last page at 0x000343af is not writeable

Error writing firmware...dfu-util: Invalid DFU suffix signature  
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!

dfu-util: Last page at 0x000343af is not writeable

The CC3000 update works normally  
The USB Tinker update works normally.

I still have a flashing green led and a core that is useless! Thanks for your help anyway ☹

[Next page](https://community.particle.io/t/core-wont-connect-to-internet-cannot-factory-restore-tinker-or-use-key-doctor/35312.md?page=2)
