Core won't connect, and the usual restore/reset methods aren't working

OK - spark-cli giving headaches.

Doesn’t want to install on the Mac so i Installed it on a Pi. Doesn’t want to login.

I’m also unable to restore/reset a core that was working fine. Did a factory reset with the buttons to get back to the initial blinking blue but the Andoid App will not find my core in the network. I tried spark-cli and got the following:

MacBook:adrian$ spark serial wifi
SSID: MY_NETWORK_SSID
Security 0=unsecured, 1=WEP, 2=WPA, 3=WPA2: 3
Wifi Password: MY_WIFI_PASSWORD
Attempting to configure wifi on /dev/cu.usbmodem1411
I said: w
Serial said: SSID:
I said: MY_NETWORK_SSID

Serial said: MY_NETWORK_SSID
Password:
timed out on Security 0=unsecured, 1=WEP, 2=WPA, 3=WPA2:
I said: MY_WIFI_PASSWORD

Serial said: MY_WIFI_PASSWORD
Thanks! Wait about 7 seconds while I save those credentials...

Serial said: Awesome. Now we'll connect!

Note the timed out on Security message, I wonder if that’s normal. When the core reboots after this operation, it just keeps blinking green

Nope - it tries to compile the serial module and gets an error.

In file included from /System/Library/Frameworks/IOKit.framework/Headers/usb/IOUSBLib.h:27:0,
from …/src/serialport_unix.cpp:14:
/System/Library/Frameworks/IOKit.framework/Headers/usb/USB.h: At global scope:
/System/Library/Frameworks/IOKit.framework/Headers/usb/USB.h:583:23: error: too many #pragma options align=reset
#pragma options align=reset
^
I have looked this up - others updated their Xcode CLI tools but didn’t work for me.

In reply to myself, I upgraded the cc3000 firmware with the one in the Github repo and set the credentials again using plain USB connection instead of the spark-cli. Still nothing, blinking green so I decided to stop trying and use another core later.

But after a cup of coffee I could not resist to try again, connected the core and it worked fine, now is breathing cyan.

1 Like

What mac osx are you on?

There’s also issues with serialport module if upu are on Linux. Some local compilation might come in.

Sounds better to get it running on mac? :slight_smile:

Running 10.8.5 (Mountain Lion)

In both cases (Mac & Linux) a load of stuff had to be compiled.

On Linux I can use some of the serial commands, but others crash at various places.

Make sure you are on the latest nodejs and npm and tell us the version :wink:

sudo npm -v and sudo nodejs -v

node is 0.11.12
Dave-Appletons-MacBook-Pro:spark-cli daveappleton$ npm version
{ http_parser: ‘2.2’,
node: ‘0.11.12’,
v8: ‘3.22.24.19’,
uv: ‘0.11.22’,
zlib: ‘1.2.3’,
modules: ‘14’,
openssl: ‘1.0.1f’,
npm: ‘1.4.3’ }

Nodejs is 0.11.12?

The latest is Macintosh Installer node-v0.10.26.pkg

Seems like you are on the ‘unstable’ branch of Nodejs. Try the stable build?

Npm latest is 1.4.6

Whats does npm -g install serialport say?

nvm ls-remote give 0.11.12 as the latest

I’m thinking it’s gonna give you issues since there are bugs/issues.

If you really want to get spark-cli running we should try to minimize all this :wink:

I guess that is a good objective - but simply getting core#2 up would be cool :wink:

If you happen to come by next time and yet to solve this, I can attempt to work on it :wink:

@calistra,

There’s a number of users who managed to get their cores working after doing a CC3000 patch download via DFU.

Maybe you can give it a shot!