AnsweredAssumed Answered

MKL16Z32 SAI/I2S Driver

Question asked by José Vinícius Melo on Feb 5, 2019
Latest reply on Feb 12, 2019 by Felipe García


Hi,

 

I am working with the MKL16Z32VFM4 and trying to use the SAI/I2S driver with DMA. I am using the Kinetis with KSDK 1.3 to general drivers and initialization and the SAI/I2S driver from MCUXpresso SDK Builder (2.2.0 version).

According with the Manual Reference I used the routines in the "app.c", but the driver is not working properly. The code status is the following:

 

1) I2S0_MCLK pin is working properly. I am using the OSCERCLK (16.9344 MHz) to generate the MCLK clock.

 

2) The I2S0_TX_FS and the I2S0_TX_BCLK pins are working. After "SAI_TransferSendDMA", these pins are alterning with the correct frequency.

 

3) After "SAI_TransferSendDMA" the microcontroler stops and enters in the hard fault process.

 

I am attaching the code.

 

Thanks.

Attachments

Outcomes