Skip to content

Commit

Permalink
PSRAM: Add invalidate.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Feb 17, 2025
1 parent 9856828 commit 0dceaf3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/py_frozen/psram.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ def viper_psram_flush():
# Workaround for RP2350-E11
# Detailed here: https://forums.raspberrypi.com/viewtopic.php?t=378249#p2263677
dest: ptr8 = ptr8(0x1bffc000) # XIP_MAINTENANCE_BASE
for i in range(1, 16 * 1024, 8):
dest[i] = 0 # Clean
for i in range(0, 16 * 1024, 8):
dest[i + 1] = 0 # Clean
dest[i + 0] = 0 # Invalidate (without this, frozen bytecode doesn't work?)


class PSRAMBlockDevice:
Expand Down

0 comments on commit 0dceaf3

Please sign in to comment.