Besides the posted MSP430 and Stellaris examples, on the CC3000 Wi-Fi for MCU Wiki page are also the following broken links:
TI's third party PDE company is developing for non-TI platforms.
You can contact them directly.
The non-TI platforms SPI implementation differs mainly in the SPI are, so TI platforms SPI implementation provides a sufficient example.
Please feel free to contact us at this mailing list and we can get you some further information on the references you mention - email@example.com
Thanks for your earlier comment in this thread. I did send email to firstname.lastname@example.org last week (4/4/2012) but no assistance forthcoming....
I find it hard to believe that customers are forced to go to a 3rd party (PDE - Pacific Design Engineering) to get further assistance on porting the cc3000 host driver to another processor?Please advise
Porting the CC3000 Host driver is not difficult at all. The main part that must be modified, assuming that endianess is not a problem, are the SPI.c file, the GPIO calls in the initDriver and a few other functions. For the SPI.c, it simply means providing equivalent SPI communications functionality as what the MSP430 offers, which is very common.
The host driver project and files are mostly portable across platforms and usually can be simply recompiled for the intended platform and the output library file incorporated to the main project.
Which platform do you want to port it to?
Thanks for your reply. The CC3000 host-driver code is being ported to Xilinx Microblaze (FPGA-based) processor.
Any tips that you may have in this regard would be welcome :-)
A lot of the relevant info is available here:
I am taking as an example the sensor application.
The connection from the Microblaze to the CC3000 is SPI + 2 GPIOs (WLAN_EN and IRQ).
IRQ line is an input to the microblaze and its interrupt handling should be done in
an IRQ handler similar to what is done in spi.c lines 620 to 665. All you need is to place the actual code into your IRQ handler.
Related functions that should be modified:
SpiCleanGPIOISR() in spi.c should clear the flag for the pin
SpiPauseSpi should disable the IRQ Interrupt
SpiResumeSpi should enable the IRQ interrupt
For the GPIOs, WLAN_EN is just a microblaze output that should be toggled High or Low .
WriteWlanPin() just toggles WLAN_EN high or low
The SPI interface is just SIMO, SOMI, SCK, and CSn.
Take a look at
init_spi() function needs to be changed so that the SPI interface is properly initialized. The Microblaze should be a master with 3-wire system (CSn is separate) and a clock of 1 to 16MHz.
The definition of clock polarity and phase are:
Data is changed on the first UCLK edge and captured on the following edge.
Clock polarity : The inactive state is low.
For CSN, the respective I/O control is done through defines at the top of spi.c:
#define ASSERT_CS() (P1OUT &= ~BIT3)#define DEASSERT_CS() (P1OUT |= BIT3)
Change these to toggle CS as needed (it's active low, that is, it is low when it is asserted).
SpiWriteDataSynchronous needs to be modified. UCB0TXBUF = *data; writes whatever data is pointing to via spi, while UCB0RXBUF doesn't seem to do anything with the data read.
SpiReadDataSynchronous is similar to above except data read is placed in data[i]
initDriver() needs to be changed so that the clock initialization is removed.
Unsolicited event timer should be created and should be properly used in:
It's a simple timer that fires every 500ms
__delay_cycles(6000000); or similar msp430 specific commands should be modified to create delaysin whatever way you want. These should be blocking delays.
6000000 cycles is about 0.24 seconds.
buffers spi_buffer and wlan_tx_buffer should just be put in memory (I assume microblaze has enough). Remove those macros and pragma definitions around those two buffers
There are other things in the software to be changed. For example switch handling and LEDs. You could start from the independent host driver, and look at how the sensor application calls the APIs.
I need to interface the CC3000 module to our existing platforms based on Renesas microcontrollers.
Is it possible to access the information of the deleted web pages about interfacing the CC3000 to Renesas micros?
Could you send an email to email@example.com, please?
We are trying to port CC3000 to LPC2148.
We have followed the steps mentioned above.
but there are a few problems
1)I donot find the following functions defined anywhere:
I saw a callback in wlan_init().
I understand i have to define my function in the callback.Is that so?
2) WriteWlanPin(): toggles some defined value.Where do I port it to the GPIO which I would like to?
3)initDriver(): I cannot find the function.
4)I cannot find the following functions.
I have got the files from the following link :http://processors.wiki.ti.com/index.php/CC3000_Wi-Fi_Downloads#CC3000_Platform_Dependent_Downloads.
I request you to clarify the issues at the earliest.
Some of the functions you list above are defined in "board.c" under the application's sources, some in the the application main file (basic_wifi_application.c)
Please download the basic wifi applications, all the functions are defined there.
Basic wifi application for MSP430FR5739 as a reference can be found under: http://processors.wiki.ti.com/index.php/CC3000_Wi-Fi_Downloads
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.