This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Restarting after pulling EN low and then high is not working

I pull EN low after doing my network connection and send. I'm doing this to reduce power consumption of the CC3000.

When I pull it high again, I can't get the CC3000 working again.  

If I do not pull EN low, this works great but draws around 130mA.

I'm using the Adafruit board: learn.adafruit.com/.../adafruit_products_cc3000v2.png

Here's the code. I'm using MicroPython on a PyBoard.

Simple code:

print ("Setting up SPI and PINS")
SPI = pyb.SPI(2)
CS = pyb.Pin.board.Y5
EN = pyb.Pin.board.Y4
IRQ = pyb.Pin.board.Y3
while True:

print ("Initializing NIC")
nic = network.CC3K(SPI, CS, EN, IRQ)
print (nic.ifconfig())
print ("Connecting to WIFI")
nic.connect(WIFISSID, WIFIPWD)
while not nic.isconnected():
pyb.delay(50) #milliseconds
print (nic.ifconfig())
s = socket.socket()
print ("Connecting to Web server")
s.connect((SERVERADDR, SERVERPORT))
print ("Sending GET")
s.send('GET /temp?rm=mbr&t=%s&b=90 HTTP/1.0\r\n\r\n' % int(gettemp()))
print ("closing up for a while")
s.close()
print ("NIC disconnecting from WIFI")
nic.disconnect()
print ("Setting EN low")
EN.low()
print ("delaying")
pyb.delay(60000) # 60 seconds.
print ("Setting EN high")
EN.high()
pyb.delay(100) #milliseconds

Here are the run results:

Setting up SPI and PINS
Initializing NIC
('0.0.0.0', '0.0.0.0', '0.0.0.0', '0.0.0.0', '0.0.0.0', '00:00:00:00:00:00', '\\')
Connecting to WIFI
('192.168.0.12', '255.255.255.0', '192.168.0.1', '68.105.28.11', '192.168.0.1', '08:00:28:58:dd:2a', 'B4843F')
Connecting to Web server
Sending GET
closing up for a while
NIC disconnecting from WIFI
Setting EN low
delaying
Setting EN high
Initializing NIC
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "tempclient.py", line 18, in <module>
OSError: failed to init CC3000 module

Can someone please explain the proper sequence of events to get the CC3000 back to a usable state after the delay?

Thanks!
Scott