使用官方的SPI_Demo例子 Master模式 可以正常发数据出去,但是怎么接受数据啊?
还有就是论坛TI员工提供SPI DMA模式的例子(spi_demo_DMA.zip),但是这个例子在while( !(MAP_SPIIntStatus(GSPI_BASE,false) & SPI_INT_EOW) );就卡死了。。。。有没有什么解决方案?
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.
楼主是接收处理中这句话出现卡死吗?
这应该是判断数据状态的,再说demo中肯定会给出中断的收发例程的。可以好好找找查找下原因。
不行自己写程序进行轮训接收中断FLAG位
使能SPI接收中断,在中断读出FIFO的数据到变量就行,具体的寄存器,要参考demo去修改,另外就是你何时使用这些数据了
官方的例程里面应该是master会接收到数据在g_ucRxBuff里面,你有看到SLAVE传过来的数据吗?
具体参考的 https://github.com/severin-kacianka/cc3200_dma_spi_example
看这边 http://processors.wiki.ti.com/index.php/CC32xx_SPI_Demo
Yonghua Pan 说:官方的例程里面应该是master会接收到数据在g_ucRxBuff里面,你有看到SLAVE传过来的数据吗?
您好,g_ucRxBuff里的数据一直是“\”,怎么回事?