AM263x MCU+ SDK  10.00.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,

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:78