Skip to content

Commit

Permalink
PSRAM: Revert to maybe working version.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Feb 17, 2025
1 parent 0dceaf3 commit 6805456
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/py_frozen/psram.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ def viper_memset(dest: ptr8, value: int, num: int):

@micropython.viper
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
dest: ptr8 = ptr8(0x18000000) # XIP_MAINTENANCE_BASE
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?)
Expand Down

0 comments on commit 6805456

Please sign in to comment.