nxp-mcuxpresso / mcux-sdk

MCUXpresso SDK
BSD 3-Clause "New" or "Revised" License
323 stars 142 forks source link

SPDIF DMA fsl driver does not work on rt1176 M4 core #115

Closed svoulaz closed 1 year ago

svoulaz commented 1 year ago

Hello, in SDK 2.13.1 for rt1176 EVK, the SPDIF DMA driver is missing address-remapping on TCDs for DMA access to cm4 TCM. Specifically, in the function SPDIF_SubmitTransfer() (fsl_spdif_edma.c), TCD address for DLAST_SGA (assignment and subsequest checks) is not translated.

The SDK sample evkmimxrt1170_spdif_edma_transfer_cm4 does not work (the equivalent version for cm7 core does). For SPDIF driver to work on cm4 core, the code in SPDIF_SubmitTransfer() body should match EDMA_SubmitTransfer(), including MEMORY_ConvertMemoryMapAddress() calls where/when needed.

mcuxsusan commented 1 year ago

Thanks for reporting the issue! Already forwarded the issue to develop team, feedback may be delayed.