1996689_en-US

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

1996689_en-US

1996689_en-US

S32K312 About SPI Issues

Hello:

Use FreeRTOS_Toggle_Led_Example_S32K312 routine (DS3.4+RTD2.0.0) on S32K312 EVB, add SPI transmission function, master: LPSPI_2, Salve: Flexio_SPI, currently both the master and slave ends cannot receive data, please help check whether it is a configuration problem or a code problem.

Add SPI function reference Lpspi_Flexio_Ip_Transfer_S32K344 (DS3.5_RTD3.0.0, DS3.5 comes with routines, because you need to configure master: LPSPI_2, Salve: Flexio_SPI, so refer to this demo).

Add the example code as the attachment: FreeRTOS_Toggle_Led_Example_S32K312_SPI_1119.zip

The following are the current issues to be eliminated:

1. The wiring problem has been ruled out because Lpspi_Flexio_Ip_Transfer_S32K312 (DS3.4 In the built-in routine, FlexIO is the master and LPSPI_2 is the slave) and it can be received normally. However, in the Lpspi_Flexio_Ip_Transfer_S32K312 demo, FlexIO is the slave and LPSPI_2 is the master. It is found that neither the master nor the slave can receive data.

So please help check the FreeRTOS_Toggle_Led_Example_S32K312_SPI_1119.zip demo code, or change the Lpspi_Flexio_Ip_Transfer_S32K312 demo code to master:LPSPI_2, Salve:Flexio_SPI mode.

Lpspi_Flexio_Ip_Transfer_S32K312 demo code is attached.

Thanks,


Re: S32K312 SPI issueSo if S32K312 is used for development, a combination of DS3.5 and RTD3.0.0 is required?Re: S32K312 about SPI issue

Hi,

The current progress of the problem is as follows:

DS3.5+RTD3.00 Configuration master: LPSPI_2, Salve: Flexio_SPI transmission and reception are normal. With the same configuration in DS3.4+RTD2.00, only the Slave end can receive data, while the master end RX cannot receive data. The routine is as follows. Please help check what is the cause?

Many thanks!

Tags (1)
No ratings
Version history
Last update:
‎11-21-2025 02:56 PM
Updated by: