๐ŸŽ„โ›„โ„๏ธ๐ŸŽ It's beginning to look a lot like ADABOX-mas! The next ADABOX from Adafruit ships soon! Get yours now, or give as a gift! ๐ŸŽ„โ›„โ„๏ธ๐ŸŽ
0

Can't use IDE from Windows 10 to Trinket M0
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Can't use IDE from Windows 10 to Trinket M0

by BryonMiller on Wed Nov 01, 2017 3:56 pm

I have seen a lot of similar problems but can't find one just like mine. I am trying to use the Arduino IDE to program a Trinket M0 from my Windows 10 computer. I end up getting No Device found on COMxx. Here is the compiler error info
Code: Select all | TOGGLE FULL SIZE
Arduino: 1.8.1 (Windows 10), Board: "Adafruit Trinket M0"

Bootloader file specified but missing: C:\Users\Bryon\AppData\Local\Arduino15\packages\adafruit\ hardware\samd\1.0.20\bootloaders\trinket\samd21_sam_ba.bin
Sketch uses 17220 bytes (6%) of program storage space. Maximum is 262144 bytes.
Forcing reset using 1200bps open/close on port COM12
PORTS {COM3, COM12, } / {COM3, COM12, } => {}
PORTS {COM3, COM12, } / {COM3, COM12, } => {}
PORTS {COM3, COM12, } / {COM3, COM12, } => {}
PORTS {COM3, COM12, } / {COM3, COM12, } => {}
PORTS {COM3, COM12, } / {COM3, COM12, } => {}
PORTS {COM3, COM12, } / {COM3, COM12, } => {}
PORTS {COM3, COM12, } / {COM3, COM12, } => {}
PORTS {COM3, COM12, } / {COM3, COM12, } => {}
PORTS {COM3, COM12, } / {COM3, COM12, } => {}
PORTS {COM3, COM12, } / {COM3, COM12, } => {}
PORTS {COM3, COM12, } / {COM3, COM12, } => {}
PORTS {COM3, COM12, } / {COM3, COM12, } => {}
PORTS {COM3, COM12, } / {COM3, COM12, } => {}
PORTS {COM3, COM12, } / {COM3, COM12, } => {}
PORTS {COM3, COM12, } / {COM3, COM12, } => {}
PORTS {COM3, COM12, } / {COM3, COM12, } => {}
PORTS {COM3, COM12, } / {COM3, COM12, } => {}
PORTS {COM3, COM12, } / {COM3, COM12, } => {}
PORTS {COM3, COM12, } / {COM3, COM12, } => {}
PORTS {COM3, COM12, } / {COM3, COM12, } => {}
Uploading using selected port: COM12
C:\Users\Bryon\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0/bossac.exe -i -d --port=COM12 -U true -i -e -w -v C:\Users\Bryon\AppData\Local\Temp\arduino_build_494567/IRrecv.ino.bin -R
Set binary mode
No device found on COM12
Send auto-baud
Set binary mode
An error occurred while uploading the sketch
From other posts I have learned that I should see a Comm Port and a USB drive (named TRINKETBOOT) show up in File Manager. When I double-press the reset button I do see the port (COM12) but I do not see a drive. Funny thing is if I look in Device Manager (not file manager) under the heading of Disk Drives I see a new entry called Trinket M0 USB Device, furthermore if I right-click on this device to get its properties I end up locking up Device manager about half the time.

Additional info :
    - IDE Version 1.8.1
    - IDE Board type selected Adafruit Trinket M0
    - Programmer I selected is USBtinyISP but I have also tried AVRISP mkii
    - I did have the old Adafruit Device drivers installed on this computer. They were installed awhile ago when I got my first Feather M0, but I have uninstalled all of them now.
    - If I single press the Trinket, Circuit Python Drive/port/operation appear as expected.

From the operation of Device Manager when looking at the "Trinket M0 USB Device" I'm guessing I've got some kind of driver vestige from having installed the old AdaFruit drivers but I have no idea if this is really the problem, and if so how to sort it out.

Any ideas how I can proceed?
Bryon

BryonMiller
 
Posts: 174
Joined: Fri Mar 04, 2016 10:34 am

Re: Can't use IDE from Windows 10 to Trinket M0

by DirtyEngineer on Thu Nov 02, 2017 12:21 am

This is the exact problem I had. Unfortunately I have not been able to track down the root cause of it. In bootloader mode most of the time I don't see the "TrinketBOOT" but do see the serial device com port change. (HP Laptop, Win10) I have gotten the "TrinketBoot to show up a hand full of times by uninstalling the com port, unplugging/replugging the Trinket in and entering bootloader mode manually. The "TrinketBoot" drive will show but I can't access it. The spinning circle and a unresponsive browser. It has to be a driver issue of some sort. I'll update if I can figure it out.

DirtyEngineer
 
Posts: 8
Joined: Sun Oct 29, 2017 3:54 pm

Re: Can't use IDE from Windows 10 to Trinket M0

by BryonMiller on Fri Nov 03, 2017 9:30 am

Anyone from Adafruit have any ideas for me and/or @DirtyEngineer?

BryonMiller
 
Posts: 174
Joined: Fri Mar 04, 2016 10:34 am

Re: Can't use IDE from Windows 10 to Trinket M0

by danhalbert on Fri Nov 03, 2017 2:11 pm

The "Programmer" choice doesn't matter, because Arduino is using the serial port to upload. If your Arduino IDE is older than 1.8.4, upgrade it. You might also want to delete the C:\Users\<username>\AppData\Local\Arduino15 directory, which contains the downloaded board packages, etc. The "AppData" folder is hidden. You'll need to re-download and install the board and library packages. That directory can get out of whack and cause a number of confusing problems.

In the Device Manager, try right-clicking all the devices associated with the Trinket M0. Look in "Disk drives" and "Ports (COM & LPT)". Choose "Uninstall Device" and when the dialog box comes up, check the box that says "Delete the driver software for this device.", if there is such a box. That should remove any leftover drivers that are interfering. These drivers may or may not be visible in the Apps list. When a driver is installed it has the choice to not show up in the Apps list, so there may be hidden drivers installed.

If the "Delete the driver software for this device." does not show up, then you are using the native Windows drivers. Let us know if you were able to uninstall something.

Then unplug and replug the board. It should install the native drivers, and show up as CIRCUITPY (assuming CircuitPython is loaded). When you double click, you should get a pulsing LED on the board, and TRINKETBOOT should show up. Under "Disk Drives", it should say "Trinket M0 USB Device" (as you saw).

When using Arduino, to load a program, do one of two things:
1. Double-click before uploading. Then, make sure you turn on the checkmark for the right serial port in the Tools->Port menu. If the port isn't checked, uploading will probably fail.
2. Or double-click after compilation has finished and uploading is being attempted. It will help to turn on "Show verbose output during upload" in File->Preferences.

Sorry this is so complicated. Windows assigns a new COM port for every different serial device seen on the board, and there can be three of them. Arduino has trouble trying them all.

danhalbert
 
Posts: 1749
Joined: Tue Aug 08, 2017 12:37 pm

Re: Can't use IDE from Windows 10 to Trinket M0

by BryonMiller on Fri Nov 03, 2017 3:58 pm

@danhalbert Thank you for taking the time to provide such a thorough response. This has been kind of frustrating for me since all my other Adafruit boards have come up so easily but this must also be frustrating for you. I'm guessing most users have no problems but you keep getting help requests for weird ones like this. Before getting into my problems I should mention that I plugged my device into a borrowed Win 10 computer and it worked as expected (I did not try installing a program but I did see the TRINKETBOOT drive show up when it should.)

The "Programmer" choice doesn't matter, because Arduino is using the serial port to upload. If your Arduino IDE is older than 1.8.4, upgrade it. You might also want to delete the C:\Users\<username>\AppData\Local\Arduino15 directory, which contains the downloaded board packages, etc. The "AppData" folder is hidden. You'll need to re-download and install the board and library packages. That directory can get out of whack and cause a number of confusing problems.

Right now I still have 1.8.1 installed. I figure this is ok because I'm not even starting up the IDE right now. I'm just trying to get TRINKETBOOT to show up as a drive. I understand there's no need to go any further into IDE-land until I get this to happen. Please let me know if I'm wrong and if the IDE version can possibly effect how the Trinket shows up when double-clicked.

In the Device Manager, try right-clicking all the devices associated with the Trinket M0. Look in "Disk drives" and "Ports (COM & LPT)". Choose "Uninstall Device" and when the dialog box comes up, check the box that says "Delete the driver software for this device.", if there is such a box. That should remove any leftover drivers that are interfering. These drivers may or may not be visible in the Apps list. When a driver is installed it has the choice to not show up in the Apps list, so there may be hidden drivers installed.

If the "Delete the driver software for this device." does not show up, then you are using the native Windows drivers. Let us know if you were able to uninstall something.


So when I plug in the board and double-click on the reset button I get the pulsing red LED and the Green Dotstar and in Device Manager I see a Disk Drive, a HID device with an error and a Comm Port.
Capture.JPG
Capture.JPG (105.98 KiB) Viewed 1007 times

But I do not see a drive show up in File Manager.

I tried to uninstall the Trinket M0 USB Device and I do NOT get the option to delete driver software. What I find is the the Delete dialog box stays in view until I remove the cable. Guessing I cannot uninstall while the device is in use? Once I remove the cable it says it was successful removing the device and to I have to restart the computer to finish. I also uninstalled the Comm Port and the errant HID device - same thing, no option to delete driver and kept spinning until I unplugged cable.

I do think the drivers are, for the most part, native Windows drivers. But there is one signed by Acronis. See following
Capture1.JPG
Capture1.JPG (38.37 KiB) Viewed 1007 times
I'm not sure if this might be the problem. I can't seem to be able to figure out how to uninstall it. I do know that these same four drivers show up when I reset the Trinket and I have CIRCUITPY show up. Since CIRCUITPY seems to work correctly I'm guessing these drivers are acceptable.
When using Arduino, to load a program, do one of two things:
1. Double-click before uploading. Then, make sure you turn on the checkmark for the right serial port in the Tools->Port menu. If the port isn't checked, uploading will probably fail.
2. Or double-click after compilation has finished and uploading is being attempted. It will help to turn on "Show verbose output during upload" in File->Preferences.

Sorry this is so complicated. Windows assigns a new COM port for every different serial device seen on the board, and there can be three of them. Arduino has trouble trying them all.

I'd love to get to the point where this is my only problem. I am willing to live with this since the thing is so cute. I would also be happy with the device working like a Feather M0.

BryonMiller
 
Posts: 174
Joined: Fri Mar 04, 2016 10:34 am

Re: Can't use IDE from Windows 10 to Trinket M0

by danhalbert on Fri Nov 03, 2017 4:37 pm

Thanks, the driver list is interesting. The vsflt53.sys is from an Acronis backup program. It could have been a trial you installed or that came with your computer. Even if you have uninstalled it, the uninstaller apparently doesn't clean up well and leaves that (and maybe other drivers in). Whether they cause problems or not I'm not sure. This details a complicated cleanup procedure (for win 8, prob works on Win 10 as well): https://www.eightforums.com/drivers-har ... ivers.html

There is also an uninstall tool/procedure from Acronis, but people have complained about it.

I'm not sure whether this will fix your problems, but it might. The USB drives presented by the M0 boards are tiny, and use the FAT12 filesystem, because of their size (which FAT12, FAT16, or FAT32 is defined by the drive size: we don't have control over that). It's possible the Acronis driver is not handling them properly.

Also, TRINKETBOOT is a simulation of a FAT12 drive, and doesn't act like one all the time. It just pretends to be one so you can drop files on it. So that may be confusing the driver.

danhalbert
 
Posts: 1749
Joined: Tue Aug 08, 2017 12:37 pm

Re: Can't use IDE from Windows 10 to Trinket M0

by BryonMiller on Sat Nov 04, 2017 9:59 am

Well done @danhalbert! Thank you. I followed the procedure you found on the eightforums.com site. I only needed to modify one step. Once I did this the extra driver no longer shows up in Device Manager and the Trinket M0 works as advertised!

In case this might help anyone else I'm noting here what I did. There is a step that says to remove "vsflt53" from HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}. But on my machine I did not find "vsflt53", instead I found "vidsflt53". So I removed the latter. I don't know if this is a Win8 vs Win10 thing or if mine was different for some other reason, but this removal as well as the other removal step they point out worked for me.

It'd be interesting to know if @DirtyEngineer sees something similar.

I'm now dealing with the hopping Comm Port and its making me wonder if I'm willing to forego Cricuit Python altogether if there is some way to get the boot loader from a Feather M0 on the Trinket M0. But that is an entirely different topic and one for which I may open a whole new post. This one can be considered SOLVED!

BryonMiller
 
Posts: 174
Joined: Fri Mar 04, 2016 10:34 am

Re: Can't use IDE from Windows 10 to Trinket M0

by DirtyEngineer on Sun Nov 05, 2017 1:18 am

@BryonMiller

Glad you figured out your issue. I checked and it doesn't seem like have the same driver issue as you. The drivers I show for CIRCUITPY and what should be TRINKETBOOT are the same. I think the problem is that Windows mis-identifies the TRINKETBOOT as "WPD FileSystem Volume Driver". I uninstalled this as well as the com port and rebooted. When I plug the Trinket in and go into bootloader mode I briefly see "Adafruit Trinket M0" with a yellow triangle before it re-identifies it as "WPD FileSystem Volume Driver"

Trinket Problem Driver.PNG
Trinket Problem Driver.PNG (128.09 KiB) Viewed 967 times


I don't know how to fix this. My other system shows the same drivers but it identifies them correctly as TRINKETBOOT. Any help would be very appreciated.

DirtyEngineer
 
Posts: 8
Joined: Sun Oct 29, 2017 3:54 pm

Re: Can't use IDE from Windows 10 to Trinket M0

by danhalbert on Sun Nov 05, 2017 8:53 am

WPD is "Windows Portable Device", which is for music players, etc. They usually use MTP (Media Transfer Protocol), which is a file-based protocol that moves files to/from the device. The Adafruit boards use MSC (Mass Storage), which is lower level: the device presents a simpler interface, and the Windows computer does the filesystem management.

Somehow Windows thinks that TRINKETBOOT is associated with WPD instead of the normal MSC. I have not seen this issue myself, but here are some ideas:

In the Device Manager, there may be an entry for "Portable Devices" in the top-level list of categories. See if that shows up when the Trinket is plugged in. If so, try uininstalling from there and then plugging in again.

Try "Method 2" in this link: https://answers.microsoft.com/en-us/win ... h=1&page=7

Another thing to try is to clean out all existing USB associations. Download the "Device Cleanup Tool" on this page: http://www.uwe-sieber.de/misc_tools_e.html. With no Adafruit devices plugged in, run the tool, and delete all the entries. You may want to scan this list carefully and not delete certain devices you know are OK, such as USB printers, Garmin devices, etc. I've used this tool successfully to fix bad associations.

danhalbert
 
Posts: 1749
Joined: Tue Aug 08, 2017 12:37 pm

Re: Can't use IDE from Windows 10 to Trinket M0

by DirtyEngineer on Mon Nov 06, 2017 3:12 pm

I've tried uninstalling from "Portable Devices" and rebooting. It just reinstalls as WPD. My other system that can I can program the Trinket M0 with shows CIRCUITPY and TRINKETBOOT in "Portable Devices".

I tried "Method 2" without success

The "Device Cleanup Tool" while very handy did not fix the issue either. I removed anything related to the Trinket.

I think I'm too the point that the only thing that will possibly fix this issue is reloading Windows.

Image

DirtyEngineer
 
Posts: 8
Joined: Sun Oct 29, 2017 3:54 pm

Re: Can't use IDE from Windows 10 to Trinket M0

by danhalbert on Mon Nov 06, 2017 5:02 pm

@Dirty Engineer: I Googled a bit more, and have one more thing to try: Go to Settings->Devices->AutoPlay. What are the AutoPlay defaults? Change both of them to "Choose a default", if they are set to something else. Try even turning off AutoPlay.

danhalbert
 
Posts: 1749
Joined: Tue Aug 08, 2017 12:37 pm

Please be positive and constructive with your questions and comments.