S32K312 CRC using DMA

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

S32K312 CRC using DMA

545 Views
A12138
Contributor I

Hi,

I'm trying to configure CRC module, now I have a problem, It takes me longer when I use DMA than when I don't.

I wonder why

The project I used is Crc_Ip_Example_S32K312

0 Kudos
Reply
5 Replies

521 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @A12138,

What changes have you done in the example?

Can you share the modified project, what RTD version do you use?

Can you specify what operations you compare?

 

Regards,

Daniel

 

0 Kudos
Reply

508 Views
A12138
Contributor I

Hi, Daniel

RTD Version is SW32K3_RTD_4_4_2_0_0_D2203, I just changed the size of the CRC_data array

image.png

I toggled the IO port before and after the CRC calculation to measure the time.

image.png

This is a test demo.

0 Kudos
Reply

470 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @A12138,

You use a very old RTD, version 2.0.0 from March 2022.

Is there is reason you don't use the up-to-date RTD 4.0.0.

I can't even test the project now.

And if we found a bug there, it wouldn't be fixed.

 

Regards,

Daniel

 

 

0 Kudos
Reply

423 Views
A12138
Contributor I

Hi, Daniel

I'm using RTD 4.0.0 and the problem still exists

I used hardware to calculate CRC, When I checked the Dma channel Enable, the speed was not faster than when I didn't check it.

image.png

0 Kudos
Reply

404 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @A12138,

This seems to be just a misunderstanding.

If the DMA is disabled, the core writes all the bytes to the DATA register within this for loop:

danielmartynek_0-1722256895643.png

danielmartynek_1-1722256938400.png

If it is done by the DMA (8bit transfers to the DATA register), it does not mean it is any faster.

But it allows the core to do other operations, while the DMA is transfering the data.

 

Regards,

Daniel

 

0 Kudos
Reply