S32k341 LPSPI Configuration

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

S32k341 LPSPI Configuration

1,175 Views
Omkar9903
Contributor III

Hi,

I am currently working with the S32K341 microcontroller and am using Design Studio version 3.6.0 with RTD version 5.0 for SPI communication with an external EEPROM. I have configured a 5 MHz clock and a 5 Mbps baud rate for the LPSPI protocol to interface with the external memory, but I am encountering some issues where the communication is not functioning as expected.

SPI Pin Configuration:

Here are the details of the SPI pin configuration:

  • PTD6: LPSPI0_PCS0 (Chip Select) - Digital Output
  • PTD10: LPSPI0_SIN (SPI Input) - Digital Input
  • PTD11: LPSPI0_SCK (SPI Clock) - Digital Output
  • PTD12: LPSPI0_SOUT (SPI Output) - Digital Output

I have attached the relevant code for your reference. After reviewing the configuration, I wanted to ask if there might be any issues in the setup that could cause the failure, particularly with respect to the clock and baud rate configuration.

 

Tags (1)
0 Kudos
Reply
1 Reply

1,142 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Omkar9903 

Could you please clarify what you mean by "communication is not functioning as expected"? Additionally, could you share an image of the signals to help us analyze the SPI behavior?

As there is no available board with an S32K341 device, I will be using an S32K344EVB to verify your configuration and analyze the SPI behavior.

 

BR, VaneB

0 Kudos
Reply