Flashdrive gets often corrupted on windows #12389
Replies: 4 comments
-
That is a often reported issue with a PC and the Flash file system at the board, not limited to Windows. The PC OS assumes that it is the only instance writing to the PYBFLASH file system. I has caches, and it writes to the PYBFLASH at it's own discretion, latest when the PYBFLASH is ejected. So there are two error situations.
In order to avoid such a trouble, many people do not use the PYBFLASH mechanism at all and prefer using e.g. mpremote for file transfer. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
As Robert and Peter have suggested, you will have a much better time using Just for completeness though, often the cause of issues is not waiting for the writes to be flushed. You will notice that an LED is illuminated when you write to the device over USB. You must wait for this LED to turn off before disconnecting. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the answers. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Im using the STM32F4 Discoveryboard to explore Micropython.
I love the feature, that I get a PYBFLASH Drive on Windows if I connect the board via USB. Its very nice just to drag & drop the Files to the board.
After a file transfer, I have to restart the board (press Reset Button oder unplug/plug the board)
Unfortunately the flash drive gets often corrupted if I unplug (or reset) the board without manually click "remove drive" in windows before.
(Although no file transfer takes place when I unplug/reset the board)
Round about each 3rd time I corrupt the flash by unpluging/resetting it without clicking "remove drive" before.
I don't understand what the problem is. If no file transfer is active at the time I unplug/reset the board, why does this corrupt my flash drive?
Beta Was this translation helpful? Give feedback.
All reactions