HW CRC slow?

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

HW CRC slow?

1,322 Views
Catosh
Contributor IV

Hello, 

Are there any benchmark reports about CRC peripheral speed and performances on the S32K11x mcu?

I need to check the integrity of the whole flash memory at the startup and in my opinion it takes *a lot* of time.

At 24MHz core speed with 32bit writes instead of 8 I measure 15ms for 128KB of memory.

I am using the core to load data; i can imagine that DMA could speed up computation but I don't know how much. 

Any suggestions or best practices to speed up the crc computation? 

K.R.

Tags (3)
0 Kudos
3 Replies

1,160 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Catosh,

I would try using DMA.

Example MPC5748G CRC32 GHS614 

There's the same DMA module, so you can take a look at how to configure the DMA. 

Regards,
Daniel

0 Kudos

1,160 Views
Catosh
Contributor IV

Hi Daniel, 

I tried using DMA, here some results on 128 KB

clock (MHz)cpudmaratio
2485.50.6875
4813.56.90.511111

On a CM4 with the same clock speed shall I expect the same results, or due to the Harvard architecture I can expect a significative improvement in the DMA scenario?

0 Kudos

1,160 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

yes, I would expect some improvement but it depends on code executed on CM4 (on traffic on crossbar). The best option is to test it. There's also advantage of higher system clock on S32K14x.

By the way, if core is used (not DMA) then executing from RAM should help on S32K11x. It will have similar effect like enabling cache on CM4.

Regards,

Lukas