MKL16Z32 SAI/I2S Driver

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

MKL16Z32 SAI/I2S Driver

668 Views
joséviníciusmel
Contributor II


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.

0 Kudos
1 Reply

497 Views
FelipeGarcia
NXP Employee
NXP Employee

Hi José,

 

Our latest drivers (MCUXpresso SDK 2.2.0) for MKL16Z32xxx4 can be found in the following link.

 

http://mcuxpresso.nxp.com/

 

I recommend you to use this SDK for a better implementation.

MKL16Z32xxx4 SDK does not include a demo using the SAI/I2S driver. However, you can take the demo included in the FRDM-K66F SDK as reference for your application as they use the same APIs.

 

I hope it helps!

 

Best regards,

Felipe

0 Kudos