MQX 4.2 SAI driver issue

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

MQX 4.2 SAI driver issue

512 Views
ryanlush
Contributor IV

I am trying to use the SAI driver with MQX 4.2. Looking at the dai_dma_demo example project it seems as simple as calling fopen on the SAI driver and then a call to write. Both of these functions take an MQX_FILE_PTR. It appears that fopen sets up the MQX_FILE_PTR struct but the pointers to IO_WRITE/READ in that struct are null after a call to fopen. I can't find anything in the example code that sets up these function pointers. Are they null because I'm using DMA? Calling write returns MQX_IO_OPERATION_NOT_AVAILABLE

0 Kudos
1 Reply

411 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Ryan:

Yes, please refer to the _io_sai_dma_install function,   poiner   io_read and pointer   io_write are null.

pastedImage_1.png

Regards

Daniel

0 Kudos