S32K311 SPI slave underrun

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

S32K311 SPI slave underrun

301 Views
HaoYang
Contributor I

hi:

I am implementing TC377&S32K311 master-slave communication, 311 using FRTOS and EB MCAL as the development environment.
In the SPI initialization, the size f buffer binding by Spi_SetupEB function is the same as TC377. After I call Spi_AsyncTransmit function, I get an underrurn error. Observing the logic analyzer,  the date is unnormal as shown in Figure 1 and Figure2.
During SPI initialization, if the size of buffer is larger than TC377, the data transmitted is normal, as shown in Figure 3, but the transmission cannot be terminated. fig1_underrun.pngfig2_underrun.pngfig3_normal.png

Tags (1)
0 Kudos
Reply
1 Reply

271 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @HaoYang,

The Spi_AsyncTransmit() must be called before the Master starts the transfer.

danielmartynek_0-1712827219690.png

danielmartynek_1-1712827264287.png

 

Can you use GPIOs to signal the state of the SPI?

Or delay the transfer on the Master's side?

 

Regards,

Daniel

0 Kudos
Reply