Install original windows driver

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
erikblue
Posts: 3
Joined: Tue Sep 03, 2019 7:36 pm

Install original windows driver

Post by erikblue » Tue Sep 03, 2019 11:48 pm

Hi,

In trying to learn more how to access the pyboard from my windows machine, I used zadig to change the driver for the pyboard so I could access using pyusb module on the PC. However, now when I plug in the pyboard, I no longer get a flash drive to pop up. Any idea how I can go back and reinstall the old driver? Whoops..

Thank you,

Erik

erikblue
Posts: 3
Joined: Tue Sep 03, 2019 7:36 pm

Re: Install original windows driver

Post by erikblue » Thu Sep 05, 2019 5:40 pm

Device still works as a COM port and I can get to REPL. Just no mass storage device shows up... Darn, how do I fix this?

starter111
Posts: 40
Joined: Wed Mar 08, 2017 7:24 am

Re: Install original windows driver

Post by starter111 » Fri Sep 06, 2019 9:34 pm

why you need pyusb? pyserial doesn't work?
to reinstall you can update driver or if still not working just uninstall driver and delete driver software for this device.

erikblue wrote:
Tue Sep 03, 2019 11:48 pm
Hi,

In trying to learn more how to access the pyboard from my windows machine, I used zadig to change the driver for the pyboard so I could access using pyusb module on the PC. However, now when I plug in the pyboard, I no longer get a flash drive to pop up. Any idea how I can go back and reinstall the old driver? Whoops..

Thank you,

Erik

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Install original windows driver

Post by dhylands » Fri Sep 06, 2019 10:26 pm

One thing to check is your boot.py file on the board.

If it has a call to pyb.usb_mode which doesn't include MSC in the string then the pyboard won't show up as a drive.

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Install original windows driver

Post by dhylands » Fri Sep 06, 2019 10:28 pm

starter111 wrote:
Fri Sep 06, 2019 9:34 pm
why you need pyusb? pyserial doesn't work?
pyusb is needed to DFU flash the pyboard (at least if pydfu.py is being used).

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Install original windows driver

Post by jimmo » Sat Sep 07, 2019 12:59 am

If you used Zadig so you can access the DFU, then that's a different VID:PID to "regular" mode, so it shouldn't affect the MSC access. (But maybe you were using pyusb for something other than DFU mode?)

erikblue
Posts: 3
Joined: Tue Sep 03, 2019 7:36 pm

Re: Install original windows driver

Post by erikblue » Mon Sep 09, 2019 3:31 pm

Thanks for all the responses. I tried uninstalling/reinstalling drivers to no avail. I did a Windows 10 system restore to 1 week earlier and that seemed to fix it.

The only thing I did with pyusb was to list usb devices. I didn't read/write any devices, so I'm pretty sure I did something to the registry using zadig that wasn't easy to back out.

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Install original windows driver

Post by jimmo » Thu Sep 12, 2019 11:42 am

Just saw this post on Scott Hanselman's blog, might be useful -- https://www.hanselman.com/blog/HowToFix ... ndows.aspx

Post Reply