Skip to content

Add XIP cache management routines #2005

Closed
@earlephilhower

Description

@earlephilhower

The XIP cache works really well except in certain cases involving PSRAM and flash updates with a really non-obvious (IMHO) workaround.

Because cache cleaning needs some special magic to work with PSRAM as discussed in the links above, it may make sense to add some XIP cache management operations to the SDK (especially "XIP Clean"). Right now we have arduino-pico, CircuitPython and MicroPython all implementing the same XIP cache management code separately. It would be cleaner and safer to factor that out up into the SDK.

I imagine something as simple as

  • xip_cache_clean
  • xip_cache_invalidate
  • xip_cache_invalidate_range (?)

might be all that's needed, but maybe others have additional requirements?

Kind-of related to #1983, but at a higher level.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions