[i.MX6] Using edma to clear RAM

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

[i.MX6] Using edma to clear RAM

跳至解决方案
1,784 次查看
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.

标签 (1)
0 项奖励
回复
1 解答
1,667 次查看
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

在原帖中查看解决方案

4 回复数
1,667 次查看
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,667 次查看
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 项奖励
回复
1,668 次查看
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,667 次查看
m_eladouly
Contributor III

Hello Igor,

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

0 项奖励
回复