i.MxRT1060 config tools didn't not generate DMA start transform code.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

i.MxRT1060 config tools didn't not generate DMA start transform code.

跳至解决方案
1,467 次查看
shizj
Contributor III

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:

DMA.PNG

but there is two problems:

  1. every time changing config tools setting, files will be overwritten;
  2. EDMA_CreateHandle must be called before EDMA_InstallTCD(it seems some relation between them), and after DMA_Init(I get crash if not). So start DMA transferom must be added here.

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!!!

标记 (2)
0 项奖励
回复
1 解答
1,386 次查看
shizj
Contributor III

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.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,387 次查看
shizj
Contributor III

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.

0 项奖励
回复
1,446 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

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.

0 项奖励
回复
1,427 次查看
shizj
Contributor III

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.

0 项奖励
回复
1,440 次查看
shizj
Contributor III

Hi, @EdwinHz.

Thanks for replying.

Here is version informations:

  • MCUXpresso IDE: v11.5.1 [Build 7266] [2022-04-13]
  • config tools: 11.0.0.202201111056
  • SDK_2.x_EVK-MIMXRT1060: 2.11.1

I have checked. These are already the last version.

0 项奖励
回复