Page 1 of 1

Install original windows driver

Posted: Tue Sep 03, 2019 11:48 pm
by erikblue
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

Re: Install original windows driver

Posted: Thu Sep 05, 2019 5:40 pm
by erikblue
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?

Re: Install original windows driver

Posted: Fri Sep 06, 2019 9:34 pm
by starter111
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

Re: Install original windows driver

Posted: Fri Sep 06, 2019 10:26 pm
by dhylands
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.

Re: Install original windows driver

Posted: Fri Sep 06, 2019 10:28 pm
by dhylands
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).

Re: Install original windows driver

Posted: Sat Sep 07, 2019 12:59 am
by jimmo
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?)

Re: Install original windows driver

Posted: Mon Sep 09, 2019 3:31 pm
by erikblue
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.

Re: Install original windows driver

Posted: Thu Sep 12, 2019 11:42 am
by jimmo
Just saw this post on Scott Hanselman's blog, might be useful -- https://www.hanselman.com/blog/HowToFix ... ndows.aspx