Has anyone tried to port the USB OTG to I2S example for the LPC5411x device described in this app note to run on the MKL26Z? They are both M4 based devices and I bet the peripherals are pretty similar so the HAL should be similar.
I would like to make an application that is a simple USB device that has one I2S output that drives a DAC. The MKL26Z is the only device I have found that has one I2S channel hence the reason I selected that part.
Any help would be great thanks.
You can get USB audio class to I2S from the open source uTasker project on GitHub:
including USB simulation in VisualStudio for complete analysis.
It has a proven setup for the KL43 to I2S or directly to the 12 bit DAC output, which is possibly compatible with the KL26.
For professional requirements the supported uTasker project is available which can be configured for your custom HW and chip to ensure immediate functionality.
P.S.The KL26 is Cortex M0+ (not M4). The LPC5411x has a USB FS 2.0 device and the KL26 has a FS USB2.0 OTG interface. These are quite different and I doubt that the the LPC and KL libraries supplied for the two parts will have any compatibility (especially since the Kinetis USB library originated from the Freescale libraries at the time when NXP and Freescale were competitors).
Complete KL26 solutions, training and support:http://www.utasker.com/kinetis.html
Thanks for the helpful information Mark I'll take a look at your uTask libraries and see if we can make them work. Thanks for contributing to the community.