Corruption of MicroPython file system on micro:bit V2 (with custom MicroPython build) #18081
-
I compiled up a version of MicroPython based on the master branch a few months back with some of my bug fixes and with the file system relocated and enlarged ( Are there any normal file operations that can corrupt the MicroPython file system in flash? How likely is it that I've picked up a bug that corrupts the flash where the file system is? Copying the MicroPython hex file and copying the |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
This sounds like the sort of thing that happens when you make a filesystem too large for the flash that contains it. Are you sure that you can make it that large safely? |
Beta Was this translation helpful? Give feedback.
-
That could be it, I'm not sure. Here are my current guesses.
It was 32k briefly in the past but I don't know if that version ever got used significantly. I've just noticed microbit-foundation/micropython-microbit-v2#105 which I need to read through more carefully. |
Beta Was this translation helpful? Give feedback.
-
This is an example of what happens. The working application with filesystem view provided by running some code in REPL.
I updated
The files have
The
|
Beta Was this translation helpful? Give feedback.
-
My latest guess on this is it's caused by leftover bits of a previous file system in flash and that's possible because the I created a ticket for this: microbit-foundation/micropython-microbit-v2#231 |
Beta Was this translation helpful? Give feedback.
My latest guess on this is it's caused by leftover bits of a previous file system in flash and that's possible because the
MICROBIT.hex
files produced when you compile MicroPython don't have a file system image in, unlike what comes out of https://python.microbit.org/I created a ticket for this: microbit-foundation/micropython-microbit-v2#231