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.

[参考译文] Linux/AM3358:PRU 实施问题

Guru**** 2609945 points
Other Parts Discussed in Thread: AM3358

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/656055/linux-am3358-pru-implementation-question

器件型号:AM3358

工具/软件:Linux

在内核运行 Linux 时、我尝试使用 AM3358中的2个 PRU 来完成3项任务:

  • PRU0将运行一个位拆裂 I2C 从接收器
  • 根据写入 I2C 从设备的内容、PRU1将实施 SPI 协议来记录来自外部 ADC 的样本、或实施 SPI 协议将记录的数据转储到外部主机。

这是可行的吗?  Linux 内核能否观察 I2C 从设备在第一个 PRU 中读取的数据、然后在必要时停止第二个 PRU、在第二个 PRU 中加载新的可执行文件并启动它?

我试图解决这个处理器中使用的 I2C 模块似乎不能配置为从器件这一事实 -- -- https://e2e.ti.com/support/arm/sitara_arm/f/791/t/501656。  我认为在运行 Linux 的主内核中、我无法在足够快的速度下实现几个 GPIO、从而创建一个稳定的 I2C 从机模块。

谢谢、

Dave