I found iMXRT1060 MCUX didn't not generate DMA start transform code, so I have to add it manually. if I do that, things work well.
code Show as below graph:
but there is two problems:
I use MIMXRT1060-EVK board and attachment is my config tools setting. I also can upload my project If necessary.
How to solve it, or there is something I'm missing.
Help pls!!!
已解决! 转到解答。
I solved it by add following code after initialization functions to start DMA.
edma_handle_t g_EDMA0_CH0_Handle;
g_EDMA0_CH0_Handle.base = DMA0;
g_EDMA0_CH0_Handle.channel = DMA0_CH0_DMA_CHANNEL;
EDMA_StartTransfer(&g_EDMA0_CH0_Handle);
I know it's an hack way, but it works.
I solved it by add following code after initialization functions to start DMA.
edma_handle_t g_EDMA0_CH0_Handle;
g_EDMA0_CH0_Handle.base = DMA0;
g_EDMA0_CH0_Handle.channel = DMA0_CH0_DMA_CHANNEL;
EDMA_StartTransfer(&g_EDMA0_CH0_Handle);
I know it's an hack way, but it works.
Hi @shizj,
Which version of MCUXpresso and SDK are you using? I tried to recreate this issue but I wasn’t able to. The peripherals.c file is generated properly, with the handler.
Please make sure you are using the latest version of MCUXpresso and SDK release for the iMXRT1060.
BR,
Edwin.
Hi, @EdwinHz ,
Have you tried non-transaction mode or the setting I uploaded. There is no handler created but transaction mode do. How can I start DMA transform without handler. I saw all DMA demos in SDK do it with handler.
Hi, @EdwinHz.
Thanks for replying.
Here is version informations:
I have checked. These are already the last version.