STM32F7 cache line size

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
steved
Posts: 834
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 138 times

STM32F7 cache line size

Post by steved »

Is there a #define or other platform-independent method of getting the size of a cache line? Would be useful in writing platform-independent code (and, if set to zero, indicates that caching isn't supported at all).
It could also be useful to have a function which indicates whether a specific memory area is cached.
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM32F7 cache line size

Post by Giovanni »

Hi,

It should be something done in CMSIS, there is a field in the SCB_CCSIDR register but it is a runtime information.

I think it is fixed in the CM7 anyway, should verify on the manual.

Giovanni
Post Reply