How to run the SDK sample (uart_sdma_transfer)

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

How to run the SDK sample (uart_sdma_transfer)

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

Labels (1)
0 Kudos
Reply
1 Solution
1,063 Views
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.

View solution in original post

0 Kudos
Reply
8 Replies
1,031 Views
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 Kudos
Reply
1,029 Views
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 Kudos
Reply
978 Views
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 Kudos
Reply
1,064 Views
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 Kudos
Reply
1,056 Views
mttcp
Contributor I

Hi,

That procedure has been implemented.

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

0 Kudos
Reply
625 Views
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 Kudos
Reply
599 Views
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 Kudos
Reply
1,049 Views
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

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

Best regards.

0 Kudos
Reply