SPI Garbage Data Issue while Integrating i.MX 8QXP with S32K146

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

SPI Garbage Data Issue while Integrating i.MX 8QXP with S32K146

906 Views
subash_p
Contributor III

Hi NXP Support Team,

We are working on integrating an i.MX 8QXP custom board with an S32K146 MCU over SPI. The setup involves sending data from the S32K146 to the i.MX 8QXP, but we are encountering an issue where the i.MX 8QXP receives garbage values instead of the expected data.

Configuration Details:

S32K146 SPI Clock Frequency: 8 MHz

i.MX 8QXP Device Tree Configuration:

&lpspi0 {
fsl,spi-num-chipselects = <1>;
pinctrl-names = "default";
assigned-clock-rates = <60000000>;
pinctrl-0 = <&pinctrl_lpspi0 &pinctrl_lpspi0_cs>;
cs-gpios = <&lsio_gpio1 8 GPIO_ACTIVE_LOW>;
status = "okay";

spidev0: spi@0 {
reg = <0>;
compatible = "rohm,dh2228fv";
spi-max-frequency = <8000000>;
};
};

Updated the i.MX 8QXP device tree to include the LPSPI0 configuration with spidev and ensured the spi-max-frequency was set to 8 MHz.

Tags (2)
0 Kudos
Reply
0 Replies