[i.MX6] Using edma to clear RAM

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

[i.MX6] Using edma to clear RAM

ソリューションへジャンプ
1,782件の閲覧回数
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,665件の閲覧回数
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,665件の閲覧回数
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,665件の閲覧回数
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,666件の閲覧回数
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,665件の閲覧回数
m_eladouly
Contributor III

Hello Igor,

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

0 件の賞賛
返信