1.24.2.17 CACHE_CacheSync Function

C

void CACHE_CacheSync(uint32_t addr, size_t len)

Summary

Synchronize the instruction and data caches.

Description

Synchronize the instruction and data caches. Used when modifying the instruction stream (breakpoints, self-modifying code, relocating executable code to RAM). Flushes an address range from the data cache and invalidates that same range from the instruction cache.

Parameters

Param Description
addr address (aligned to 32-byte boundary)
len size of memory block (in number of bytes)

Returns

None.

Example

CACHE_CacheSync(addr, len);

Remarks

None.