0

Adafruit Trinket M0 will not connect COM port
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Adafruit Trinket M0 will not connect COM port

by lessparks on Mon Jul 22, 2019 12:18 pm

I bought a couple of Trinket M0 boards, product ID 3500, a week or so ago. I just started learning about Arduino - as in a couple of weeks ago. Both boards connected to a COM port and brought up an Explorer window when connected by USB when I received them. Now, one of them will not connect to a COM port or bring up the Explorer window when connect to USB. Have I broke it? Is there anything I can do to get it to work again?

Using on Windows 10 with Arduino IDE. I installed the Adafruit Drivers for Windows. After spending some time reading this forum and the Adafruit website, it appears I should not have installed these drivers on Windows 10. Please confirm this. I have also not configure Board Manager correctly. I will do this ASAP.

Thanks for the help.

lessparks
 
Posts: 4
Joined: Fri Jul 19, 2019 10:16 am

Re: Adafruit Trinket M0 will not connect COM port

by adafruit_support_mike on Mon Jul 22, 2019 10:00 pm

Just to check, are you using the same USB cable for both of them?

There's a plague of charge-only cables out there with USB connectors at both ends but no wires for the data signals. We see people get caught by them every day.

On an alternate track, does the Trinket M0's red LED pulse when you double-click the reset button?

adafruit_support_mike
 
Posts: 60326
Joined: Thu Feb 11, 2010 2:51 pm

Re: Adafruit Trinket M0 will not connect COM port

by lessparks on Tue Jul 23, 2019 9:43 am

Yes, same USB cable for both. I tried the double click on the reset button last night and that seemed to work. I was able to download a simple test sketch to both Trinket M0's.

I am still confused about what I am seeing when I select the board type in IDE. The only Adafruit entries I see are "Adafruit Circuit Playground" and "Adafruit Circuit Playground Express." Searching this forum, I see screen shots where others have each of the Adafruit devices listed in the board list. Should I be seeing "Adafruit Trinket M0" in the list? I used "Adafruit Circuit Playground Express" for loading the test sketch mentioned above.

lessparks
 
Posts: 4
Joined: Fri Jul 19, 2019 10:16 am

Re: Adafruit Trinket M0 will not connect COM port

by franklin97355 on Tue Jul 23, 2019 1:29 pm

Have you gone into the Boards Manager and installed the Adafruit SAMD and Arduino SAMD board packages?

franklin97355
 
Posts: 21431
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Adafruit Trinket M0 will not connect COM port

by lessparks on Wed Jul 24, 2019 1:53 pm

Yes, I did not have any Adafruit devices listed before installing the Arduino SAMD and Adafruit SAMD board packages. Now I just have the two Adafruit Circuit Playground entries.

lessparks
 
Posts: 4
Joined: Fri Jul 19, 2019 10:16 am

Re: Adafruit Trinket M0 will not connect COM port

by franklin97355 on Wed Jul 24, 2019 2:57 pm

Do you have a section in the boards manager titled "Adafruit SAMD"?
Attachments
2018-09-04_17h04_13.png
2018-09-04_17h04_13.png (21.12 KiB) Viewed 215 times

franklin97355
 
Posts: 21431
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Adafruit Trinket M0 will not connect COM port

by lessparks on Wed Jul 24, 2019 9:07 pm

Well, I feel like a goofball. I confirmed that I did not have a section in the board manager for "Adafruit SAMD". I thought I had installed it. I went to Boards Manager and found that I installed two sets of Arduino SAMD drivers. I searched for Adafruit and no SAMD drivers were found. I went to Preferences and found that I had mistyped the URL in the "Additional Boards Manager" field. Fixed the URL, installed the Adafruit SAMD boards, and I think it is now fixed.

Thanks for the help.

lessparks
 
Posts: 4
Joined: Fri Jul 19, 2019 10:16 am

Re: Adafruit Trinket M0 will not connect COM port

by TeunD on Fri Nov 29, 2019 2:21 pm

The same issue here; I am unable to program my trinklet M0:

I bought the Adafruit trinket M0 : https://www.adafruit.com/product/3500
I am using Windows 10.
I followed this guide: https://learn.adafruit.com/adafruit-tri ... -ide-setup
Installed the drivers from: https://github.com/adafruit/Adafruit_Wi ... .3.4.0.exe
I am using Arduino 1.8.9
With additional SAMD libraries from: https://adafruit.github.io/arduino-boar ... index.json
(often gives an error; cannot download or something like that. But right now it seems OK, no errors)
Restart Windows (and Arduino).
I cannot select the board "Trinket M0" (most boards are missing) thus I selected:
Board: Arduino M0 Pro (Native USB Port).
I plug in the trinklet (into a USB port).
It shows as a drive "CIRCUITPY"
Port 20 appears (but "trinklet" is not indicated on any port, port 20 is the only port added if I plugin the trinklet)
Programmer: USBtinyISP
Loaded Blink example in Arduino.
Entered "bootloader mode" by double tapping the reset button.
It closes the "CIRCUITPY" drive and opens a drive "TRINKETBOOT" (=> two green LEDs & blinking red LED).
Result of compile and load:
Arduino: 1.8.9 (Windows 10), TD: 1.47, Board: "Arduino M0 Pro (Native USB Port)"
Sketch uses 11552 bytes (4%) of program storage space. Maximum is 262144 bytes.
Forcing reset using 1200bps open/close on port COM20
PORTS {COM20, } / {COM20, } => {}
PORTS {COM20, } / {COM20, } => {}
...
avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\...\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM20
Using Programmer : stk500v2
Overriding Baud Rate : 57600
avrdude: ser_recv(): programmer is not responding
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_recv(): programmer is not responding
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_recv(): programmer is not responding
avrdude: stk500v2_getsync(): timeout communicating with programmer
AVR Part : ATmega2560
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PA0
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
...
Programmer Type : STK500V2
Description : Atmel STK500 Version 2.x firmware
Programmer Model: Unknown
avrdude: ser_recv(): programmer is not responding
avrdude: stk500v2_ReceiveMessage(): timeout
...
avrdude: ser_recv(): programmer is not responding
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude: ser_recv(): programmer is not responding
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_recv(): programmer is not responding
avrdude: stk500v2_ReceiveMessage(): timeout
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

Other Arduino board types (e.g. AVR, Teensy) are running fine from Arduino with the same USB cable.

There must be a simple mistake that I am making.
Any help will be appreciated. The trinket-M0 looks so promising.

TeunD
 
Posts: 3
Joined: Fri Nov 29, 2019 2:05 pm

Re: Adafruit Trinket M0 will not connect COM port

by franklin97355 on Fri Nov 29, 2019 2:53 pm

If you are compiling for the Adafruit Trinket M0 you need to select that board. Nothing else will work correctly. Have you followed the Adding Third-Party Boards tutorial?

franklin97355
 
Posts: 21431
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Adafruit Trinket M0 will not connect COM port

by TeunD on Fri Nov 29, 2019 3:16 pm

Yes, as written I added : https://adafruit.github.io/arduino-boar ... index.json

But it gives the following error:
Error downloading https://adafruit.github.io/arduino-boar ... index.json

But I could now install SAMD... from "Contributed".
Restarted Arduino.
Still no trinket board selection available.

TeunD
 
Posts: 3
Joined: Fri Nov 29, 2019 2:05 pm

Re: Adafruit Trinket M0 will not connect COM port

by TeunD on Sat Nov 30, 2019 5:54 am

Solved; I updated to Arduino 1.8.10 and updated Adafruit AVR Boards to version 1.4.13 and Adafruit SAMD Boards to version 1.5.7.
No error messages anymore and I see all boards and the Trinket-M0 port and can load programs onto my Trinket-M0.

TeunD
 
Posts: 3
Joined: Fri Nov 29, 2019 2:05 pm

Please be positive and constructive with your questions and comments.