S32k341 LPSPI Configuration

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32k341 LPSPI Configuration

886件の閲覧回数
Omkar9903
Contributor II

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 返信

853件の閲覧回数
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 件の賞賛
返信