Hi,
Were are trying to communicate between S32K341 and NAND chip but no clock is getting generated. I am using LPSPI driver generated from Design Studio. We observe that Clock and Chip select are always pulled high even after calling SPI Transmit function. When I configured SCK and CS as GPIO, I am able to change its polarity from 0 to 1 and vice versa. When they are configure for LPSPI_SCK and LPSPI_CLK they remain HIGH always. Please let me know what might be the cause for this.
The clock and CS remain high because the LPSPI peripheral is likely not properly configured or enabled. Much like ensuring your UTV Seat Covers are properly installed for correct fit and function, you need to make sure the LPSPI module clock is on, pins are correctly muxed for LPSPI (not GPIO), the module is initialized and enabled before transmit, polarity/phase settings match the NAND chip, and the S32K341 is correctly set as SPI master.