AM62Ax MCU+ SDK  10.01.00
Cache

Features Supported

  • APIs to perform below cache operations
    • region based writeback
    • region based invalidate
    • region based writeback invalidate
    • enable and disable APIs for I cache and D cache
    • full cache writeback, write invalidte

Features NOT Supported

NA

Important Usage Guidelines

Example Usage

Include the below file to access the APIs,

Example usage for cache write back invalidate,

char buf[1024];
void * addr = buf;
uint32_t size = sizeof(buf);
// addr = cache line aligned buffer address
// size = multiple of cache line aligned size in bytes
// flush contents of cache to memory so that a DMA or HW peripheral can see the data
// send data to DMA or HW peripheral

Example usage for cache invalidate,

// ...
// recieve data from DMA or HW peripheral
// addr = cache line aligned buffer address
// size = multiple of cache line aligned size in bytes
// invalidate contents of cache so that a CPU can see the data written by DMA or HW peripheral

API

APIs for Cache,

size
uint16_t size
Definition: tisci_boardcfg.h:1
addr
uint64_t addr
Definition: csl_udmap_tr.h:3
CacheP.h
CacheP_wbInv
void CacheP_wbInv(void *addr, uint32_t size, uint32_t type)
Cache writeback and invalidate for a specified region.
CacheP_inv
void CacheP_inv(void *addr, uint32_t size, uint32_t type)
Cache invalidate for a specified region.
CacheP_TYPE_ALL
#define CacheP_TYPE_ALL
Definition: CacheP.h:80