微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI WIFI设计交流 > 请问,CC3200可以与外部单片机进行SPI通信,并通过WIFI将SPI通信的数据与TCP服务器通信吗?

请问,CC3200可以与外部单片机进行SPI通信,并通过WIFI将SPI通信的数据与TCP服务器通信吗?

时间:10-02 整理:3721RD 点击:

如题,有这方面的需求,希望可以解答一下。

如果有例程可以参考是最好的了。

可以,建议参考CC3200的SDK中的tcp和SPI 例程,将这个两个例程结合起来就可以实现你需要的功能。

是否需要用到DMA?

如果需要SPI传输大量的数据建议使用DMA的模式,

可以参考udma和UART-dma的例子,主要是弄清楚dma的使用方法,可以参考SPI-DMA的例子,

可以参考一个SPI DMA的例子,

https://github.com/severin-kacianka/cc3200_dma_spi_example/

cc3200_dma_spi_example

Here are two examples that show how to use SPI with DMA and FIFO on the CC3200. I hope that they are a useful starting point for anyone, who wants to work on SPI and DMA in the future.

The examples are compiling fine on Linux with gcc 4.9.3 from http://launchpad.net/gcc-arm-embedded. All you need to change is the path for the SDK in the Makefile. The hardware setup is similar to the SPI example in the SDK: just connect two CC3200 via cable (Pins GND, P05, P06, P07 and P08). I have set the following jumpers: J6, J7, J8. J9. J10, J11, J12, J13.

simple_spi_transfer is an example of an SPI transfer without DMA and FIFO. The master sends a buffer to the slave, reads it back in the next transfers and verifies the checksums.

transfer_1024_byte implements a simple SPI/DMA transfer that will transfer 1024 (or whatever DMA_SIZE is set to) bytes from the master to the slave and back. It then calculates the buffer's CRC checksum and (on the master) compares the send checksum to the received checksum.

transfer_64k shows how to transfer a 64k buffer from the master to the slave and back again.

windows contains a Makefile send to me by Matt van de Werken that also works using the Launchpad tools in a Cygwin enviroment

请问,这个例子是可以直接在编译器中打开使用调试的吗?

还是只是作为参考而已

因为我发现我无法用软件打开这个例子

是参考使用,

当然也可以参考

http://www.deyisupport.com/question_answer/wireless_connectivity/wifi/f/105/t/128771.aspx

你好,你给的链接,里面打开后提供的另一个链接无法打开。。。

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top