Got a new core recently, and I’m also facing the flashing green forever issues.
I tired the method highlighted in this thread.
Did dfu-util -d 1d50:607f -a 0 -s 0x08005000:leave -D cc3000-patch-programmer.bin
Got the following
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
dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
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 = 25248
Download [=========================] 100% 25248 bytes
Download done.
File downloaded successfully
Transitioning to dfuMANIFEST state
Also did dfu-util -d 1d50:607f -a 0 -s 0x08005000:leave -D spark_tinker.bin
got the following
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
dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
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 = 79996
Download [=========================] 100% 79996 bytes
Download done.
File downloaded successfully
Transitioning to dfuMANIFEST state
after which I got a blinking blue, so I use it with spark setup wifi
the core’s led turn off for a moment
than it start to become solid blue (for a few second)
and goes back to flashing green again
1.) A quick way to test would be to setup a hotspot using your mobile phone and send in the Wifi credentials via USB.
If this works, that implies the wifi network settings might have some issue we need to look into further.
2.) Make sure the core you use has an antenna attached if you bought the u.fl version
3.) If you have Spark-cli installed, update it to the latest using sudo npm update -g spark-cli and use the command spark flash --usb cc3000 in DFU mode for the patching.
➜ ~ spark flash --usb cc3000
FOUND DFU DEVICE 1d50:607f
checking file /Users/bosslee/.nvm/v0.10.13/lib/node_modules/spark-cli/binaries/cc3000-patch-programmer.bin
spawning dfu-util -d 1d50:607f -a 0 -i 0 -s 0x08005000:leave -D /Users/bosslee/.nvm/v0.10.13/lib/node_modules/spark-cli/binaries/cc3000-patch-programmer.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
dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
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 = 25240
Download [=========================] 100% 25240 bytes
Download done.
File downloaded successfully
Transitioning to dfuMANIFEST state
Flashed!
➜ ~ spark flash --usb tinker
FOUND DFU DEVICE 1d50:607f
checking file /Users/bosslee/.nvm/v0.10.13/lib/node_modules/spark-cli/binaries/spark_tinker.bin
spawning dfu-util -d 1d50:607f -a 0 -i 0 -s 0x08005000:leave -D /Users/bosslee/.nvm/v0.10.13/lib/node_modules/spark-cli/binaries/spark_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
dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
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 = 79996
Download [=========================] 100% 79996 bytes
Download done.
File downloaded successfully
Transitioning to dfuMANIFEST state
Flashed!
After I finished this 2 steps, the core is blinking blue
I did the following
I using an iphone 5.
I set it to hotspot
what do I choose for the following?
Security 0=unsecured, 1=WEP, 2=WPA, 3=WPA2:
Serial said: Awesome. Now we'll connect!
If you see a pulsing cyan light, your Spark Core
has connected to the Cloud and is ready to go!
If your LED flashes red or you encounter any other problems,
visit https://www.spark.io/support to debug.
Spark <3 you!
Done! Your core should now restart.
I tried it with WPA2
and it goes back to the same thing. (flashing green)
Thanks for helping
As per your instruction I did the following
I put it to DFU, than I did as you instructed
after the final statement of "your core should restart."
the core went back to flashing green
➜ ~ spark keys doctor 54ff6c066678574924440167
running dfu-util -l
FOUND DFU DEVICE 1d50:607f
running openssl genrsa -out 54ff6c066678574924440167_new.pem 1024
running openssl rsa -in 54ff6c066678574924440167_new.pem -pubout -out 54ff6c066678574924440167_new.pub.pem
running openssl rsa -in 54ff6c066678574924440167_new.pem -outform DER -out 54ff6c066678574924440167_new.der
New Key Created!
running dfu-util -l
FOUND DFU DEVICE 1d50:607f
running dfu-util -l
FOUND DFU DEVICE 1d50:607f
running dfu-util -d 1d50:607f -a 1 -s 0x00002000:1024 -U pre_54ff6c066678574924440167_new.der
running openssl rsa -in pre_54ff6c066678574924440167_new.der -inform DER -pubout -out pre_54ff6c066678574924440167_new.pub.pem
Saved!
checking file 54ff6c066678574924440167_new.der
spawning dfu-util -d 1d50:607f -a 1 -i 0 -s 0x00002000:leave -D 54ff6c066678574924440167_new.der
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
dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Opening DFU capable USB device...
ID 1d50:607f
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #1 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 1024
DfuSe interface name: "SPI Flash : SST25x"
Downloading to address = 0x00002000, size = 608
Download [=========================] 100% 608 bytes
Download done.
File downloaded successfully
Transitioning to dfuMANIFEST state
Saved!
attempting to add a new public key for core 54ff6c066678574924440167
submitting public key succeeded!
Okay! New keys in place, your core should restart.
If you’ve patched that flashing green core, and it simply won’t get on the network, but your other core will, it’s possible that unit might be damaged. If you can’t get it to work, can you email us at hello@spark.io, and we can maybe arrange a replacement?
@kennethlimcp that would be awesome If you have some time. I can head down to SUTD if that works for you. Looking to learn more stuff from you Maybe we can take this via pm. Messaging you from there.