Microchip® Advanced Software Framework

Quick Start Guide for the CMCC driver

This is the quick start guide for the CMCC - Cortex M Cache Controller module, with step-by-step instructions on how to configure and use the driver for a specific use case.The code examples can be copied into e.g the main application loop or any other function that will need to control the CMCC module.

Use cases

CMCC basic usage

This use case will demonstrate how to initialize the CMCC module.

Setup steps

Code

Add this to the main loop or a setup function:

Workflow

  1. Enable the CMCC module
    cmcc_enable(CMCC);
  2. Initialize the CMCC to Data hit counter mode

Usage steps

Code

We can then get the count of Cache Monitor Event by