Hello,
Is there a way to declare a part of the RAM as non cacheable?
My app has a large data set (500KB) in flash, marked as PROGMEM.
At this point in time, I am assuming that access to that dataset means that it will be copy in the Dcache..
However, since I scan said dataset linearly, this will just trash the data cache, but not help as the data is used just once per scan.
Hence, I would like it NOT to be cached.
On systems with MMU, one can specify which part of the memory needs to be in the various caches (in 4KB blocks)... but I am not sure that there is a MMU here since this is a cortex M.
Similarly, they are some parts of the RAM that I would like to not see in the cache (the screen memory to be exact).
Is there any way to configure the cache with that type of granularity?
Thanks,
Cyrille
Is there a way to declare a part of the RAM as non cacheable?
My app has a large data set (500KB) in flash, marked as PROGMEM.
At this point in time, I am assuming that access to that dataset means that it will be copy in the Dcache..
However, since I scan said dataset linearly, this will just trash the data cache, but not help as the data is used just once per scan.
Hence, I would like it NOT to be cached.
On systems with MMU, one can specify which part of the memory needs to be in the various caches (in 4KB blocks)... but I am not sure that there is a MMU here since this is a cortex M.
Similarly, they are some parts of the RAM that I would like to not see in the cache (the screen memory to be exact).
Is there any way to configure the cache with that type of granularity?
Thanks,
Cyrille