K82 : pflash SDK example

cancel
Showing results for 
Search instead for 
Did you mean: 

K82 : pflash SDK example

137 Views
EugeneHiihtaja
Senior Contributor I

Hello !

In SDK's plash example as part of internal flash manipulation routines, you also  ivalidate L1 and FtFx caches :

/* Post-preparation work about flash Cache/Prefetch/Speculation. */
FTFx_CACHE_ClearCachePrefetchSpeculation(&s_cacheDriver, false);

L1CACHE_InvalidateCodeCache();

is this are mandatory operations if caches is NOT going to be initialised at all.

Those flash routines going to be used in custom bootloader what flash new firmware to some space

and jump to it.

Any extra performance is no need and for simplify bootloader is possible to disable OR no init any code cache

at all ?

Or those code cache operations must to be activated and used as in example ?

Regards,

Eugene

0 Kudos
1 Reply

49 Views
estephania_mart
NXP TechSupport
NXP TechSupport

Hello,

There isn't any initialization code for the cache, by default the flash module uses the flash cache, so you have to disable the cache explicitly

Could you please check the following document in this link ? I would recommend you to check especially the section 4.4 Cache coherency  in recommended actions for the case of flash operations erase/program.

Hope it helps

Regards ,
Estephania

0 Kudos