embassy-rp

Crates

git

Versions

rp235xb

Flavors

embassy_rp::rom_data

Function flash_flush_cache

Source
pub unsafe extern "C" fn flash_flush_cache()
Expand description

Flush the entire XIP cache, by issuing an invalidate by set/way maintenance operation to every cache line (Section 4.4.1).

This ensures that flash program/erase operations are visible to subsequent cached XIP reads.

Note that this unpins pinned cache lines, which may interfere with cache-as-SRAM use of the XIP cache.

No other operations are performed.

Supported architectures: ARM-S, RISC-V

ยงSafety

This is a low-level C function. It may be difficult to call safely from Rust. If in doubt, check the rp235x datasheet for details and do your own safety evaluation.