Skip to main content
Garnett.Robert
Senior III
May 17, 2019
Question

CACHEING OF BACKUP RAM

  • May 17, 2019
  • 2 replies
  • 726 views

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

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
May 17, 2019

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
May 24, 2019

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