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

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

Do a particle flash --usb cc3000

Thanks for the reply.

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

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

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.

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

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!

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

1 Like

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.

A post was split to a new topic: Photon not appearing as serial port

Yes it did blink magenta. Problem remains the same.

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

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

No, I never used this command.

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?

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

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

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.

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.

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/

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 :frowning: