SPI Communication between MCU and MPU in linux

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SPI Communication between MCU and MPU in linux

270 Views
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 Kudos
Reply
3 Replies

249 Views
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 Kudos
Reply

226 Views
nesnes
Contributor I

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

Tags (1)
0 Kudos
Reply

197 Views
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 Kudos
Reply