Skip to content
This repository has been archived by the owner on Mar 15, 2019. It is now read-only.

wlan_start(0) is blocking indefinitely #4

Open
ghost opened this issue Jul 4, 2014 · 10 comments
Open

wlan_start(0) is blocking indefinitely #4

ghost opened this issue Jul 4, 2014 · 10 comments

Comments

@ghost
Copy link

ghost commented Jul 4, 2014

Hi there, I am another Adafruit CC3000 Customer. I am using the "Adafruit CC3000 WiFi Shield with Onboard Ceramic Antenna".

I downloaded and installed your lib. I tried running WebClient as an example but I could not get pass

---------------------------
SparkFun CC3000 - WebClient
---------------------------

I dug a little further and realized that this line,

    /* Start CC3000 - asserts enable pin and blocks until init is complete */
    wlan_start(0);

from SFE_CC3000.cpp is blocking indefinitely. This line is invoked by wifi.init()

Wireless connection is not my domain of expertise and I would like to know if this is a software or compatibility issue (none of your examples work since they all require wifi.init())

Would you be kind enough to take a look at this issue?

@jacobrosenthal
Copy link
Contributor

Interesting. I have an adafruit shield that blocks as well. I also have a
cc3000 module and that worked fine so I put the shield aside for now.
Wonder whats different.

On Fri, Jul 4, 2014 at 1:52 PM, Victor Ng [email protected] wrote:

Hi there, I am another Adafruit CC3000 Customer. I am using the "Adafruit
CC3000 WiFi Shield with Onboard Ceramic Antenna".

I downloaded and installed your lib. I tried running WebClient as an
example but I could not get pass


SparkFun CC3000 - WebClient

I dug a little further and realized that this line,

/* Start CC3000 - asserts enable pin and blocks until init is complete */
wlan_start(0);

from SFE_CC3000.cpp is blocking indefinitely. This line is invoked by
wifi.init()

Wireless connection is not my domain of expertise and I would like to know
if this is a software or compatibility issue (none of your examples work
since they all require wifi.init())

Would you be kind enough to take a look at this issue?


Reply to this email directly or view it on GitHub
#4.

@ghost
Copy link
Author

ghost commented Jul 4, 2014

@jacobrosenthal Is your cc3000 module from Adafruit as well?

@jacobrosenthal
Copy link
Contributor

Yes

On Fri, Jul 4, 2014 at 2:17 PM, Victor Ng [email protected] wrote:

@jacobrosenthal https://github.com/jacobrosenthal Is your cc3000 module
from Adafruit as well?


Reply to this email directly or view it on GitHub
#4 (comment)
.

@ShawnHymel
Copy link
Contributor

Seems like this is a common issue. Could either of you try running wires from the Arduino to the shield (rather than connecting the shield to the top of the Arduino) with only the necessary pins? That should give it the same connections (in theory) as the module.

@jacobrosenthal
Copy link
Contributor

Trying to take a look at this again
Linking my other issue on same problem #1

Hooked up the wifi shield via same pins as breakout. Still doesn't fire with SFE library, the adafruit library still works...

Got to be something on the SPI lines. Ill try to get them on a scope at some point soon here

@jacobrosenthal
Copy link
Contributor

I dont agree with the title of this. Mine gets past the init fine, it blocks waiting for the Async: 8001.

The only hardware difference on my shield and breakout is miso buffer so I tested around that and it didnt fix it

I tried it on the saleae but my computer can only sample at 16mhz (barely) and I know Im seeing corruption at that rate so I cant trust the data I'm getting. I'm linking the debug enabled (with added SPI write in hex debugging) from arduino

https://gist.github.com/jacobrosenthal/0a502db23bfb0d9519cf
https://gist.github.com/jacobrosenthal/43390223fd0cad7f66af

@urlgrey
Copy link

urlgrey commented Oct 27, 2014

Agreed, I was unable to get past SPI initialization using an Arduino Leonardo board. I tested connecting the shield and Arduino wired in stacked and jumper-wired configurations with identical results. The hang occurs in the SPI.begin() call from SFE_CC3000.cpp.

I also tried with an older Arduino Duemilanove 328 with successful results. The same board was used in a stacked configuration mirroring what I used with the Leonardo. I'm pretty sure there's something wrong with the Arduino Leonardo board detection in SFE_CC3000::init()

@Lazyshot
Copy link

Has anyone found a resolution for this issue? The same thing is happening to me using the sparkfun shield on a sparkfun redboard.

The only events I'm seeing in the callback are keep alive events (After I removed the mask in init).

@Lazyshot
Copy link

I tried the adafruit library and it worked. Not sure how much that helps. I'll keep looking into the code to see if that surfaces anything.

@jordics
Copy link

jordics commented Feb 8, 2016

Just in case it can help other people: I had the same issue and the problem was that I had a Adafruit CC3000 (not the shield) and in that case you have to use a different library: https://github.com/adafruit/Adafruit_CC3000_Library

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants