Problem using cache

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

Problem using cache

429 Views
biafra
Senior Contributor I

Hi everyone,

I'm using MCUXpresso 10.2.1 with a custom board based on MK66FN2M0.

I developed an application that is working fine, but on some operations it's a little time consuming. I've enabled the cache memory with LMEM module, but I haven't seen any speed gain.

I've used the following statement:

LMEM_EnableCodeCache( LMEM, true );

Do some other configurations are needed?

Many thanks

Biafra

1 Reply

323 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi Biafra,

This function is enough to enable 8k I/D cache. Cache will not dramatically increase the speed. But it really work. I spent some time to test by Coremark. The total ticks drop from 1727 to 1574 after I enable cache.

Regards,

Jing