The default MicroPython file system starts at some address in Flash and runs to the end of Flash -Unfortunately uploading new MicroPython firmware for RP235X, or using Bluetooth on RP2040 or RP235X, erases and writes to 4KB sectors at the end of Flash which can corrupt the file system and files within it. Writing to the file system can also corrupt Bluetooth settings if present.
To avoid corruption; the end of the MicroPython file system needs to be moved down. On an RP2040 by at least two 4KB sectors, and on an RP235X by at least three 4KB sectors since the sectors used by Bluetooth are moving because uploading to Flash also corrupts those.
If someone could bring this to the MicroPython team's attention it would be very helpful because I won't be able to do that.
Someone might like to let CircuitPython (Adafruit) and Pimoroni know.
Code:
.-----------.--------.------------------------.-----------------------. | Board | Flash | File System Location | File System Size | |-----------|--------|------------------------|----------.------------| | Pico | 2 MB | 100A0000 to 101FFFFF | 1.4 MB | 1,408 KB | | Pico W | 2 MB | 1012C000 to 101FFFFF | 0.8 MB | 848 KB | |-----------|--------|------------------------|----------|------------| | Pico 2 | 4 MB | 10100000 to 103FFFFF | 3.0 MB | 3,072 KB | | Pico 2W | 4 MB | 10180000 to 103FFFFF | 2.5 MB | 2,560 KB | `-----------^--------^------------------------^----------^------------'To avoid corruption; the end of the MicroPython file system needs to be moved down. On an RP2040 by at least two 4KB sectors, and on an RP235X by at least three 4KB sectors since the sectors used by Bluetooth are moving because uploading to Flash also corrupts those.
If someone could bring this to the MicroPython team's attention it would be very helpful because I won't be able to do that.
Someone might like to let CircuitPython (Adafruit) and Pimoroni know.
Statistics: Posted by hippy — Thu Apr 17, 2025 3:23 pm — Replies 0 — Views 47