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,468件の閲覧回数
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,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 件の賞賛
返信
4 返答(返信)
1,388件の閲覧回数
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,447件の閲覧回数
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,428件の閲覧回数
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,441件の閲覧回数
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 件の賞賛
返信