S32k341 LPSPI Configuration

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

S32k341 LPSPI Configuration

1,400 次查看
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.

 

标记 (1)
0 项奖励
回复
1 回复

1,367 次查看
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 项奖励
回复