One note ahead: Managing files both on the device and form the PC using e.g. explorer turned out to be a reliable way to corrupt teh files system on your pyboard. That's wha for instance Adafruit decided to make the access exclusive. If PC file access is enabled, any board-local changes are suppressed, and vice versa. But that's another story.
Besides that: Windows and other OSes assume that it is the only instance to change the content of an attached file system. So if you do that on the board, the PC will not expect that and will not take notice of if. Refreshing the file window with F5 should help. And also you should sync the files before resetting or removing the board.
Still, sooner or later you will end up with FS corruption. That's why most people decide after a while disable MSC mode and use other tools for copying files in and out.
Why the file I created is not created?
Re: Why the file I created is not created?
Thanks. I don't have my RPi Pico yet but I assume the following will work to disable MSC:Roberthh wrote: ↑Wed Jan 27, 2021 10:29 amOne note ahead: Managing files both on the device and form the PC using e.g. explorer turned out to be a reliable way to corrupt teh files system on your pyboard. That's wha for instance Adafruit decided to make the access exclusive. If PC file access is enabled, any board-local changes are suppressed, and vice versa. But that's another story.
Besides that: Windows and other OSes assume that it is the only instance to change the content of an attached file system. So if you do that on the board, the PC will not expect that and will not take notice of if. Refreshing the file window with F5 should help. And also you should sync the files before resetting or removing the board.
Still, sooner or later you will end up with FS corruption. That's why most people decide after a while disable MSC mode and use other tools for copying files in and out.
Code: Select all
import pyboard as pyb
pyb.usb_mode('VSC')
Re: Why the file I created is not created?
Opening a file by double clicking it is specific to the OS you're using on your host machine.
Normally there is a notion of applications associated with a file extension.
For Windows you'd follow something like this:
https://www.computerhope.com/issues/ch000572.htm
I don't recognize the OS that you're using based on the screenshot.
Normally there is a notion of applications associated with a file extension.
For Windows you'd follow something like this:
https://www.computerhope.com/issues/ch000572.htm
I don't recognize the OS that you're using based on the screenshot.
Re: Why the file I created is not created?
VSC isn't a valid mode. I think you meant VCPrpr wrote: ↑Wed Jan 27, 2021 5:27 pmThanks. I don't have my RPi Pico yet but I assume the following will work to disable MSC:Code: Select all
import pyboard as pyb pyb.usb_mode('VSC')
Re: Why the file I created is not created?
You are correct. Typo on my part. It should be VCP.
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Why the file I created is not created?
See this post. MSC mode isn't implemented on the Pico. Thank goodness. It's more trouble than it's worth.rpr wrote: ↑Wed Jan 27, 2021 5:27 pm...
Thanks. I don't have my RPi Pico yet but I assume the following will work to disable MSC:Code: Select all
import pyboard as pyb pyb.usb_mode('VSC')
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.