7 years, 9 months ago.

CC3000 with sd card on the same SPI bus connection creates a problem and does not work

Hello,

I am new to cc3000 IOT Solution. I would like to explain you my theme for the project. I would like to send files stored in SD card to ftp server using cc3000 wifi module. I am using ftp protocol for sending the data to my ftp server. But when the SD card and wifi module operates on different SPI bus it works fine. Now i have only one free spi that spi bus must be shared with SD card and WIFI module using chip select. wifi gets connected and when it come to putfile function then execution stops and hangs always. So my question is now is it possible to connect both SPI and WIFI cc3000 module on same SPI bus or will there be any problem if conneted. And the other question is regarding the time interval after 1 minute of cc3000 module it hapend it loose connection and file transfer stops after 60 seconds. Could you please suggest me where can i change the time out value? If further details required i am glad to come up with. My program hanges in FTclient.cpp putfile function where if (size > 0) it doesnt enter.Thank you.

Best regards, Sandeep.

/media/uploads/sandeepmalladi/terminal.jpg /media/uploads/sandeepmalladi/ftp.jpg

1 Answer

7 years, 9 months ago.

Hi Sandeep. I'm unfamiliar with the CC3000 software stack, but are you using any synchronization variables to make sure that the SD card and CC3000 aren't being selected at the same time? Also, SD cards don't play nice on a shared SPI bus until after they've been initialized. That will definitely cause you problems if you're expecting to be able to hot-plug cards after the system is up and running.

Accepted Answer