SPI Comm Between i.MX8MP MPU and MCU

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

SPI Comm Between i.MX8MP MPU and MCU

跳至解决方案
1,467 次查看
Wobaffet
Senior Contributor I

Hello, we are planning to read sensor data using an MCU and intend to utilize this data on our custom board equipped with an i.MX8MP. The data will be transferred from the MCU to the i.MX via SPI. My question is: should we use the M7 core on the i.MX to receive the data and then process it within our user application on our custom distro, or should we handle the SPI communication directly with the A core? Which method would be easier to integrate and result in lower latency?

0 项奖励
回复
1 解答
1,436 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

There is latency using rpmsg, the m7 write data to shared memory(need time), then use MU to notify A core(need time), then A core read data from shared memory(need time). So why not receive data from A core SPI directly as you need lower latency

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,440 次查看
Wobaffet
Senior Contributor I

We'll have to write a driver to parse the incoming data to use in the userspace. Any suggestions for this purpose or do you see any limitations? Also Why using m7 core and using the sensor data on the user space via rpmsg is a bad idea?

Thanks!

0 项奖励
回复
1,437 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

There is latency using rpmsg, the m7 write data to shared memory(need time), then use MU to notify A core(need time), then A core read data from shared memory(need time). So why not receive data from A core SPI directly as you need lower latency

0 项奖励
回复
994 次查看
Wobaffet
Senior Contributor I

Hello,

Do you have any examples of this type of communication? For both sides, an MCU and an MPU?

Thanks!

0 项奖励
回复
1,444 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @Wobaffet 

 Which method would be easier to integrate and result in lower latency?

--> I think use it in A core is better for you.

0 项奖励
回复