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.