SPI Communication between MCU and MPU in linux

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

SPI Communication between MCU and MPU in linux

880 次查看
nesnes
Contributor I

We have a custom board with both an MCU and an MPU that communicate via SPI. The MCU controls various IOs on the board, and we want to configure and monitor these IOs through our Linux-based MPU. Are there any recommended protocols or example applications for this kind of communication over SPI? Additionally, what would be the best approach or protocol to use for efficiently configuring and monitoring IOs in such a setup?

0 项奖励
回复
3 回复数

859 次查看
Veronika_techsupport
NXP TechSupport
NXP TechSupport

Hello @nesnes 

to be able to provide you more accurate support, could you please share NXP part number(s) you are using on your board? Thank you in advance.

0 项奖励
回复

836 次查看
nesnes
Contributor I

@Veronika_techsupport nxp board is imx8mp and the controller is stm32g.

标记 (1)
0 项奖励
回复

807 次查看
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

Thank you for your interest in NXP Semiconductor products,

I'd approach this solution with the spidev framework, this could get you started. This is the documentation for this driver.

For DTB implementation you should modify the proper ECSPI interface, this reference is compatible with 8MP.

For the MCU, I don't have a framework for ST MCUs but quickly found this post that can help you.

Regards

0 项奖励
回复