CRC_DMA

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

CRC_DMA

1,793件の閲覧回数
Mennazz
Contributor II

I tried to use DMA to transfer data to the CRC data register in order to comply with this safety requirement. 

Mennazz_0-1715699780647.png

but surprisingly, the execution time increased when I used the DMA to transfer the data to the CRC_INP register. 

0 件の賞賛
返信
3 返答(返信)

1,762件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Mennazz 

how much data you transfer to CRC_INP?

If you have just a few bytes/words, the configuration of DMA can take more time than short loop feeding the data to CRC_INP directly.

If you have some large data, usage of DMA does not necessarily mean that the transfer will be faster than core. It means that the core can do other things in parallel which could increase the performance a lot. The DMA transfer rate depends on other DMA channels, on priorities etc.

Regards,

Lukas

0 件の賞賛
返信

1,715件の閲覧回数
Mennazz
Contributor II

Since the CRC calculates based on the value of the INP register, is it possible to feed the INP1 register with more than 4 bytes using DMA? The way I used to pass the data was by giving the DMA every 4 bytes separately with the destination address of the INP1 register. Is there any better approach to reduce the execution time, or is it feasible to pass more than 4 bytes to the INP1 via DMA?

0 件の賞賛
返信

1,684件の閲覧回数
davidtosenovjan
NXP TechSupport
NXP TechSupport

Your approach is correct. INP1 register width is 32-bit so 4 byte write must be maximum.
You could also increase priority for DMA master over CPU on the XBAR module, it could increase performance.

0 件の賞賛
返信