EEPROM on FAT file system #14459
Replies: 2 comments 1 reply
-
I don't know any way of doing this. My personal view is that MSC drives are the spawn of the Devil for this reason. However it would be immensely useful to be able to mount a drive at the REPL or by a script running after boot and then access it via |
Beta Was this translation helpful? Give feedback.
-
Yeah as @peterhinch mentions, mass storage pretty much always results in corrupted files. If you've written your eeprom driver as a https://docs.micropython.org/en/latest/library/vfs.html#vfs.AbstractBlockDev You can then use Longer term with the new dynamic usb handling it should be possible to write a protocol for MTP which could be used instead of MSC, MTP operates more at all application / file level so could give real mounted filesystems on host PC that's safe for the micropython filesystem. |
Beta Was this translation helpful? Give feedback.
-
I have successfully implemented the eeprom driver from Peter Hinch https://github.com/peterhinch/micropython_eeprom/blob/master/eeprom/i2c/I2C.md on a NUCLEO STM32F767ZI2. The EEPROM chip is an ST M24512-RP on I2C. Virtual filesytem is FAT. I followed the guidelines:
Files can be written and read by the MicroPython App. However, I though it would have been possible to see the virtual drive from the host (MacOs), but only the flash (PYBFLASH) is visible from the host, through the flash programming USB port. I checked documentation at: https://docs.micropython.org/en/latest/reference/filesystem.html#filesystems, which says:
Are MSC and the flash programming link the same ?
Any thoughts ? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions