Atmel Evaluation Kit for the SAM4E Series of Flash Microcontrollers ATSAM4E-EK ATSAM4E-EK Data Sheet

Product codes
ATSAM4E-EK
Page of 1506
429
SAM4E [DATASHEET]
Atmel-11157D-ATARM-SAM4E16-SAM4E8-Datasheet_12-Jun-14
3.
Perform an invalidate by line writing the bit set {index, way} in the CMCC_MAINT1 register.
4.
Enable the cache controller, writing 1 to the CEN field of the CMCC_CTRL register.
23.4.2.2 Cache Invalidate All Operation
To invalidate all cache entries:
Write 1 to the INVALL field of the CMCC_MAINT0 register.
23.4.3 Cache Performance Monitoring
The Cortex M cache controller includes a programmable 32-bit monitor counter. The monitor can be configured to
count the number of clock cycles, the number of data hits or the number of instruction hits.
Use the following sequence to activate the counter
1.
Configure the monitor counter, writing the MODE field of the CMCC_CFG register.
2.
Enable the counter, writing one to the MENABLE field of the CMCC_MEN register.
3.
If required, reset the counter, writing one to the SWRST field of the CMCC_MCTRL register.
4.
Check the value of the monitor counter, reading EVENT_CNT field of the CMCC_SR.