TI中文支持网
TI专业的中文技术问题搜集分享网站

AM623: AM6231能否满足SPI从机和dma呢

Part Number:AM623

目前需求是AM6231与FPGA通过SPI通信,AM6231的A核作为从机,配置为dma模式,FPGA作为主机做ADC采集,采集完成将数据给到A核,A核通过DMA将数据送到内存,请问AM6231在软件和硬件上能否满足这些需求呢?如果不能是哪些地方不能满足呢?目前了解到AM6231的A核不支持软件上从机模式,请问有没有支持其作为从机版本的SDK或者改动参考文档呢?

Shine:

SPI linux driver是不支持slave mode的。因为linux里实现spi slave会比较复杂,所以我们没有例程也不建议客户使用slave mode。我们的工程师已经咨询e2e产品线工程师,请看下面帖子的回复。https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1313658/am623-reasons-for-not-supporting-spi-as-slave/4992998

,

bu yuying:

好的,麻烦你了

,

Shine:

不客气,应该的。

有新的回复,我会在这里更新。

,

bu yuying:

嗯嗯,谢谢

,

Shine:

不客气~ 

请看下面工程师最新的回复。Is that FPGA design (RTL) under your control? What throughput/data rates are you expecting/requiring in your application?

,

bu yuying:

数据量在一秒25.6kx64x16 Byte,FPGA那边没有缓存

,

Shine:

已跟进!请关注帖子的回复。

,

Shine:

SPI满足不了,工程师建议用GPMC接口或者PRU接口来实现。

That's about 26Mbytes/s, you will not be able to do that using a regular SPI interface.

If you really need that speed and given you are talking to an FPGA (that hopefully you can customize) the use of the GPMC interface can probably get you there (in 16-bit mode), but this may require some work on the SW side. GPMC interfaces are usually well-suited for low-level interface with FPGAs.

Another option is also do leverage the PRU accelerator for FPGA communication, see https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/09_01_00_08/exports/docs/common/PRU-ICSS/Overview.html. How well or how not well this all work work though really depends on your system-level signal flow / processing needs.

,

bu yuying:

好的,谢谢

,

Shine:

不客气~

赞(0)
未经允许不得转载:TI中文支持网 » AM623: AM6231能否满足SPI从机和dma呢
分享到: 更多 (0)