SPI Comm Between i.MX8MP MPU and MCU

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SPI Comm Between i.MX8MP MPU and MCU

ソリューションへジャンプ
1,475件の閲覧回数
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,444件の閲覧回数
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,448件の閲覧回数
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,445件の閲覧回数
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 件の賞賛
返信
1,002件の閲覧回数
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,452件の閲覧回数
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 件の賞賛
返信