Hi @jarman_zhou ,
Could you please tell me which SDK version you are using now? Which debugger you are using?
Today, I am running the :
SDK_2_13_0_EVK-MIMXRT1020\boards\evkmimxrt1020\driver_examples\sai\edma_record_playback
But I am stopping in the :
if (CODEC_Init(&codecHandle, &boardCodecConfig) != kStatus_Success)
Do you also have this issue or not? Which SDK version you are using, just want to check, whether it is my EVK issue or the newest SDK issue.
I checked the code, I find this project didn't enable the DCD which is used to configure the SDRAM, do you enable it?
If you didn't init the SEMC, then after you up the SDRAM memory, it may meet issues, or you can add the .scp with the SEMC init code if you are using the CMSIS DAP debugger.
Anyway, from your description, the issue should be related to the SDRAM is not init in the SDK project.
You can see, the original SDK code no SDRAM image:

But, when you use the SDRAM, and not configure the SEMC, then it will meet issues, so need the debugger script to init the SDRAM when debug the code.
Best Regards,
Kerry