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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,120 Views
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!!!

Tags (2)
0 Kudos
Reply
1 Solution
1,039 Views
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.

View solution in original post

0 Kudos
Reply
4 Replies
1,040 Views
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 Kudos
Reply
1,099 Views
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 Kudos
Reply
1,080 Views
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 Kudos
Reply
1,093 Views
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 Kudos
Reply