How to run the SDK sample (uart_sdma_transfer)

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

How to run the SDK sample (uart_sdma_transfer)

跳至解决方案
1,094 次查看
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,066 次查看
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,034 次查看
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,032 次查看
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 项奖励
回复
981 次查看
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,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 项奖励
回复
1,059 次查看
mttcp
Contributor I

Hi,

That procedure has been implemented.

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

0 项奖励
回复
628 次查看
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 项奖励
回复
602 次查看
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,052 次查看
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

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

Best regards.

0 项奖励
回复