I am using SAI to input and output audio on a custom MCXN947 board.
I am using the demo program evkbmimxrt1060_sai_peripheral for FRDM-MCXN947, which I have modified to fit the custom board.
When this program outputs the input audio as is (recordPlayback.c operation), the audio stops midway.
There is no problem when I download it to RAM using the debugger and run it, but the problem occurs when I use XIP to start it from Flash and run it.
When I checked CH0_ES of the DMA TCD when it stopped, the Destination Bus Error (bit 0) was 1.
The DMA CH0 is used by the SAI TX, so I think the cause is that the DMA on the output side has stopped.
My question is, does the above error occur in connection with XIP?
Also, if you have any idea how to solve this problem, please let me know.
Best regards