[i.MX6] Using edma to clear RAM

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

[i.MX6] Using edma to clear RAM

Jump to solution
1,821 Views
m_eladouly
Contributor III

Hello,

I need to clear a large part of RAM (~100MB) and I need to do it fast.

Is there a way to clear it using eDMA?

If yes, what shall I set the source to? And what are the attributes?

Thank you.

Labels (1)
0 Kudos
Reply
1 Solution
1,704 Views
igorpadykov
NXP Employee
NXP Employee

Hi Mohamed

I think source and destination with different sizes also can be used, try to set SOFF

TCD Signed Source Address Offset (TCDa_SOFF) to zero.

Best regards
igor

View solution in original post

4 Replies
1,704 Views
igorpadykov
NXP Employee
NXP Employee

Hi Mohamed

one can look at i.MXRT1050 MCUXpresso SDK example:

boards/../driver_examples/edma/memory_to_memory

Welcome | MCUXpresso SDK Builder 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,704 Views
m_eladouly
Contributor III

Hello Igor,

Thank you for your answer.

The example explains how to copy from a source address to a destination address with the same size.

Is it possible to have a source a destination with different sizes? This will be helpful in clearing the large size in RAM (~100MB).

Thank you.

0 Kudos
Reply
1,705 Views
igorpadykov
NXP Employee
NXP Employee

Hi Mohamed

I think source and destination with different sizes also can be used, try to set SOFF

TCD Signed Source Address Offset (TCDa_SOFF) to zero.

Best regards
igor

1,704 Views
m_eladouly
Contributor III

Hello Igor,

I'll try it, thank you a lot for your help.

0 Kudos
Reply