cancel
Showing results for 
Search instead for 
Did you mean: 

CACHEING OF BACKUP RAM

Garnett.Robert
Senior III

With the data cache enabled is the backup ram cached such that an Invalidate Cache instruction is required to write the data through?

2 REPLIES 2

Well, that of course depends on how do you set the areas in MPU, but the default setting is so that the backup SRAM is cached together with all other RAMs.

JW

Garnett.Robert
Senior III

Hi WJ

Thanks for that.

I thought that was the case.

I'm not using the MPU as the application is fairly small in terms of its RAM requirements and a lot of the RAM is allocated in scatter files for the DMA buffers. I'm not using the heap in the application part.

I assumed the cache was used and so i clean the cache after writing.

It works fine.

That leads me on to another question.

Do you have any guidelines on when I should use the MPU?

Regards

Rob