How to run the SDK sample (uart_sdma_transfer)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to run the SDK sample (uart_sdma_transfer)

ソリューションへジャンプ
1,095件の閲覧回数
mttcp
Contributor I

Hi,

The sample (UART+SDMA) in the SDK does not work with M7.

As a phenomenon, I cannot get out of the while loop of SDMA_RunChannel0().

SDMA on A53 is disabled.

Is there anything else I need to configure?

 

SDK:SDK_2_14_0_MIMX8ML8xxxKZ

Sample:\boards\evkmimx8mp\driver_examples\uart\sdma_transfer

Target:Armadillo IoT G4 i.MX 8M Plus

ラベル(1)
0 件の賞賛
返信
1 解決策
1,067件の閲覧回数
JorgeCas
NXP TechSupport
NXP TechSupport

Hello, I hope you are doing well.

You could try to follow the steps to run a code on Cortex-M of i.MX processors.

Loading Code on Cortex-M.

Best regards.

元の投稿で解決策を見る

0 件の賞賛
返信
8 返答(返信)
1,035件の閲覧回数
mttcp
Contributor I

Hi,

Is there any configuration that would be needed on the linux kernel or u-boot side?

The following appears to be a similar phenomenon, although there are differences between SPI and UART.

https://community.nxp.com/t5/i-MX-Processors/iMX8-Cortex-M7-SPI-with-SDMA/m-p/1743152

0 件の賞賛
返信
1,033件の閲覧回数
JorgeCas
NXP TechSupport
NXP TechSupport

Hello, 

No, there is no additional procedure to run these codes on Cortex-M core.

Do you have similar issues using other examples such as hello_world?

Best regards.

0 件の賞賛
返信
982件の閲覧回数
mttcp
Contributor I

Hi,

The same problem does not exist in the following

・demo_apps/hello_world
・sdma/memory_to_memory
・uart/polling

I just found out something.

I have disabled SDMA1 on the A53, and when I change it back, the sample works.

Why is this?

0 件の賞賛
返信
1,068件の閲覧回数
JorgeCas
NXP TechSupport
NXP TechSupport

Hello, I hope you are doing well.

You could try to follow the steps to run a code on Cortex-M of i.MX processors.

Loading Code on Cortex-M.

Best regards.

0 件の賞賛
返信
1,060件の閲覧回数
mttcp
Contributor I

Hi,

That procedure has been implemented.

Is there any particular configuration needed to run the sample (uart_sdma_transfer)?

0 件の賞賛
返信
629件の閲覧回数
Stan88
Contributor I

Hi @mttcp

Did you resolve your problem? I have the same loop in SDMA_RunChannel0 for working with SDMA on that MCU. The same state for other interfaces - ESCPI, QSPI, UART. I'm also trying to make it work.

0 件の賞賛
返信
603件の閲覧回数
mttcp
Contributor I

Hi,

Yes, we have resolved the issue.
In my case I removed the SDMA1 disabled in the dts file.

The relevant content is as follows
https://community.nxp.com/t5/i-MX-Processors/To-enable-SDMA-to-be-used-with-M7/m-p/1781044

0 件の賞賛
返信
1,053件の閲覧回数
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

No, there is not an additional procedure to be implemented to run that code.

Best regards.

0 件の賞賛
返信