S32K I2S_SAI Examples issue

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

S32K I2S_SAI Examples issue

558 Views
Leoken
Contributor I

Hi, NXP team

I'm trying to run the RTD example "I2s_Sai_example_S32K344", but I'm encountering a timeout issue with the I2S_SAI_RECEIVERCould you give me some advice?  

HW: S32K3X4EVB-Q257

SW: S32DS 3.4 and RTD AUTOSAR 4.4 2.0.0 D2203

Pins connect:

SAI0_DATA0 - SAI1_DATA0 | P3.9 - P3.23 |
SAI0_BCLK - SAI1_BCLK    | P3.11 - P3.25 |
SAI0_SYNC - SAI1_SYNC   | P3.13 - P3.29 |

Thanks, you.

0 Kudos
3 Replies

529 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @Leoken,

I just tested the example on S32K3X4EVB-Q257 (SCH REV A, layout REV X1), with RTD 2.0.0 D2203 and it works.

while ((status = Sai_Ip_GetReceivingStatus(SAI_RECEIVER_VS_0_INSTANCE, NULL_PTR)) == SAI_IP_STATUS_BUSY)
{
}

It leaves the while loop when status == SAI_IP_STATUS_COMPLETED.

Which revision of the board do you have?

Can you double-check the connection?

Can you measure the bus with an oscilloscope?

 

Regards,

Daniel

0 Kudos

511 Views
Leoken
Contributor I

Thank you for your reply.

I only have the S32K3X4EVB-Q257(SCH-53189 REV A), and double-check the connection is correct.

I use a handheld oscilloscope to measure the SAI0 signal. The SAI0_DATA0 doesn't send data from Transmitter (SAI0). Is this cause of the timeout? Can i fix it or not?

0 Kudos

490 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Leoken,

I don't have the SCH-53189 REV A version.

I tested it successfully on SCH-47827 REV A version.

There are some differences (like P3.21) but not the SAI signal from the example.

 

danielmartynek_0-1685698068576.pngdanielmartynek_1-1685698081862.png

 

Anyway, can you test the PTB2 at J358.11 or at the GPIO Pin Matrix?

danielmartynek_2-1685698655900.png

 

Thank you,

BR, Daniel

0 Kudos