-
• #2
Hi Andrey, One thought is that using
SPI1.send(0x00,A4);
will lower A4 and raise it for each byte. You may also find that the SPI 'mode' is wrong (CPOL/CPHA). You're better off doing:SPI1.send([SPI_OPERATION_WRITE,0x00,0x05,0x00],A4);
(or actually doing the raising and lowering of A4 manually, and not specifying it for SPI.send at all)
The code that I have been using (different pins) is:
var EN = B7; var IRQ = B8; var CS = B6; SPI1.setup({sck:B3,miso:B4, mosi:B5,mode:1/*Mode 1 CPOL= 0 CPHA= 1*/, baud: 1000000}); digitalWrite(CS,1); digitalWrite(EN,0); while (!digitalRead(IRQ)); // wait for IRQ high digitalWrite(EN,1); while (digitalRead(IRQ)); // wait for IRQ low digitalWrite(CS,1); // 1 = command SPI1.send([1,0,5,0]); // IRQ goes high after this SPI1.send([0,1,0,0x40,1,1]); // last digit should be 1 according to EmbeddedAdventures digitalWrite(CS,0);
However I haven't had much luck with the Embedded Adventures module. I'm in contact with them and hopefully we'll figure out what the problem is.
There is CC3000 support in Espruino itself though (which works with the Adafruit module) - see http://www.espruino.com/CC3000
Until the Espruino board comes out you'll have to compile your image with USE_CC3000=1 and USE_NET=1 in the Makefile though (I've been developing using the F4DISCOVERY board and it works well).
-
• #3
Hi, and thanks a lot for the explanations. Have I understand It correctly, that embeddedadventures module will not work with Espruino? Is their module workable in common? What the problem with It?
-
• #4
At the moment I can't get it working with Espruino, but hopefully we will sort that out soon.
There is no reason why it shouldn't work but for some reason, even with the same firmware, the Adafruit module works and this one doesn't.
the modules do work in other MCUs and with other software though.
-
• #5
Just to say, if you have any luck getting it going , I'd love to know.
Given how soon I want to get the Espruino boards out, if I don't get this fixed in the next few days I will have to order the Adafruit modules.
Hi, Gordon, Hi all!
according to the TI instructions I tryed to initialize cc3000. (i've got the module from
embeddedadventures)
here is the code snippet, I've used:
monitoring "ans" variable by lcd indicator shows me always zero, but must contain the answer from the module.
what is my mistake ?