0

Trinket M0: Could not find USBtiny device
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Trinket M0: Could not find USBtiny device

by PrefontDon on Wed Sep 27, 2017 4:36 pm

Error 0x1781/0xc9f.

Trinket M0 with SAMD21E.
Board set to Adafruit Trinket 8MHz
Port set to 61
Get Board Info returns BN: unknown board, VID: 239A, PID: 801F, SN: upload...
Programmer set to USBtinyISP
Help?

PrefontDon
 
Posts: 69
Joined: Sat May 25, 2013 10:45 pm

Re: Trinket M0: Could not find USBtiny device

by adafruit_support_carter on Wed Sep 27, 2017 4:55 pm

Board set to Adafruit Trinket 8MHz

That's the older Trinket. For the M0 this should be set to Adafruit Trinket M0
https://learn.adafruit.com/adafruit-tri ... -ide-setup

adafruit_support_carter
 
Posts: 12976
Joined: Tue Nov 29, 2016 2:45 pm

Re: Trinket M0: Could not find USBtiny device

by PrefontDon on Wed Sep 27, 2017 5:02 pm

That entry does not exist, even after putting "https://adafruit.github.io/arduino-board-index/package_adafruit_index.json" at the front of the Preferences Additional Boards Manager URLs.

PrefontDon
 
Posts: 69
Joined: Sat May 25, 2013 10:45 pm

Re: Trinket M0: Could not find USBtiny device

by adafruit_support_carter on Wed Sep 27, 2017 5:08 pm

You then need to go into the Boards Manager and add the boards:
https://learn.adafruit.com/adafruit-tri ... rduino-ide

adafruit_support_carter
 
Posts: 12976
Joined: Tue Nov 29, 2016 2:45 pm

Re: Trinket M0: Could not find USBtiny device

by PrefontDon on Thu Sep 28, 2017 8:57 am

I followed your helpful suggestion. Now, the verbose compile/upload errors are:
Arduino: 1.8.1 (Windows 7), Board: "Adafruit Trinket M0"

In file included from C:\Users\dp\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/samd21/include/samd21.h:59:0,

from C:\Users\dp\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/samd.h:87,

from C:\Users\dp\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/sam.h:470,

from C:\Users\dp\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.0.19\cores\arduino/Arduino.h:48,

from sketch\test_and_delete.ino.cpp:1:

C:\Users\dp\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/samd21/include/samd21e18a.h:233:26: fatal error: core_cm0plus.h: No such file or directory

#include <core_cm0plus.h>

^

compilation terminated.

exit status 1
Error compiling for board Adafruit Trinket M0.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

PrefontDon
 
Posts: 69
Joined: Sat May 25, 2013 10:45 pm

Re: Trinket M0: Could not find USBtiny device

by adafruit_support_carter on Thu Sep 28, 2017 1:39 pm

Something seems to be confused with your Arduino IDE setup. Let's start fresh. Delete this folder:
C:\Users\dp\AppData\Local\Arduino15\
and then download and install the latest version of the Arduino IDE from here:
https://www.arduino.cc/en/Main/Software
and then go back through the Trinket M0 guide and make sure all the board support packages and any necessary drivers are installed:
https://learn.adafruit.com/adafruit-tri ... o/overview

adafruit_support_carter
 
Posts: 12976
Joined: Tue Nov 29, 2016 2:45 pm

Re: Trinket M0: Could not find USBtiny device

by PrefontDon on Thu Sep 28, 2017 4:59 pm

Well, that fixed the problem. Thank you.
Now for a new one - lol. I deleted the DHT11 entry in libraries folder under SKETCHES and downloaded the new one as well as the Sensors one from Adafruit's git folder. The error I continually received follows. I can see the DHT file yet the system cannot. Ideas?
Arduino: 1.8.4 (Windows 7), Board: "Adafruit Trinket M0"

C:\Users\dp\Documents\Arduino\SKETCHES\libraries\DHT-sensor-library\examples\DHTtester\DHTtester.ino:4:17: fatal error: DHT.h: No such file or directory

#include "DHT.h"

^

compilation terminated.

exit status 1
Error compiling for board Adafruit Trinket M0.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

PrefontDon
 
Posts: 69
Joined: Sat May 25, 2013 10:45 pm

Re: Trinket M0: Could not find USBtiny device

by adafruit_support_carter on Thu Sep 28, 2017 5:08 pm

This:
C:\Users\dp\Documents\Arduino\SKETCHES\libraries\DHT-sensor-library

should probably be:
C:\Users\dp\Documents\Arduino\libraries\DHT-sensor-library


You may also need to restart the Arduino IDE for it to see freshly installed libraries. Further info is here:
https://learn.adafruit.com/adafruit-all ... nstall-use

adafruit_support_carter
 
Posts: 12976
Joined: Tue Nov 29, 2016 2:45 pm

Re: Trinket M0: Could not find USBtiny device

by PrefontDon on Fri Sep 29, 2017 10:04 am

I have followed all of your directions to no avail.
This morning I reinstalled the IDE and all of the drivers specified in your replies. The result is:
Arduino: 1.8.4 (Windows 7), Board: "Adafruit Trinket M0"

Archiving built core (caching) in: C:\Users\dp\AppData\Local\Temp\arduino_cache_108827\core\core_adafruit_samd_adafruit_trinket_m0_b02851ae2c0d337e2aaabb82e05de1f0.a
Bootloader file specified but missing: C:\Users\dp\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.0.19\bootloaders\trinket\samd21_sam_ba.bin
Sketch uses 8928 bytes (3%) of program storage space. Maximum is 262144 bytes.
No device found on COM68
An error occurred while uploading the sketch

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


The 'trinket' folder does not exist; pic attached.

I have chosen USBtinyISP as the programmer, correct?
Attachments
Missing-Trinket-Folder.jpg
Missing-Trinket-Folder.jpg (104.45 KiB) Viewed 2011 times

PrefontDon
 
Posts: 69
Joined: Sat May 25, 2013 10:45 pm

Re: Trinket M0: Could not find USBtiny device

by PrefontDon on Fri Sep 29, 2017 10:09 am

I tried it again but with verbosity enabled; see attached text file.

I rebooted the PC, disconnected the USB hub and connected the Trinket M0 directly to the PC: same results.
Attachments
Errors.txt
(51.34 KiB) Downloaded 358 times

PrefontDon
 
Posts: 69
Joined: Sat May 25, 2013 10:45 pm

Re: Trinket M0: Could not find USBtiny device

by PrefontDon on Fri Sep 29, 2017 4:44 pm

I had bought two of the Trinket M0s. I soldered up the second one and tried it out. It could not find the device on the selected port until I hit the Reset button twice quickly during the compilation before the upload. It appears to have uploaded but failed with the error at the end of the quoted text.
Arduino: 1.8.4 (Windows 7), Board: "Adafruit Trinket M0"

Bootloader file specified but missing: C:\Users\dp\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.0.19\bootloaders\trinket\samd21_sam_ba.bin
Sketch uses 8928 bytes (3%) of program storage space. Maximum is 262144 bytes.
Forcing reset using 1200bps open/close on port COM68
PORTS {COM68, } / {COM68, } => {}
PORTS {COM68, } / {COM68, } => {}
PORTS {COM68, } / {COM68, } => {}
PORTS {COM68, } / {COM68, } => {}
PORTS {COM68, } / {COM68, } => {}
PORTS {COM68, } / {COM68, } => {}
PORTS {COM68, } / {COM68, } => {}
PORTS {COM68, } / {COM68, } => {}
PORTS {COM68, } / {COM68, } => {}
PORTS {COM68, } / {COM68, } => {}
PORTS {COM68, } / {COM68, } => {}
PORTS {COM68, } / {COM68, } => {}
PORTS {COM68, } / {COM68, } => {}
PORTS {COM68, } / {COM68, } => {}
PORTS {COM68, } / {COM68, } => {}
PORTS {COM68, } / {COM68, } => {}
PORTS {COM68, } / {COM68, } => {}
PORTS {COM68, } / {COM68, } => {}
PORTS {COM68, } / {COM68, } => {}
PORTS {COM68, } / {COM68, } => {}
Uploading using selected port: COM68
C:\Users\dp\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0/bossac.exe -i -d --port=COM68 -U true -i -e -w -v C:\Users\dp\AppData\Local\Temp\arduino_build_821745/test_and_delete.ino.bin -R
No device found on COM68
Set binary mode
readWord(addr=0)=0x5342
readWord(addr=0xe000ed00)=0
readWord(addr=0x400e0740)=0x55000000
version()=SBS00000,4#
chipId=0x55000000
Unsupported processor
Send auto-baud
Set binary mode
readWord(addr=0)=0x342c3034
readWord(addr=0xe000ed00)=0x53550023
readWord(addr=0x400e0740)=0x30455342
version()=740,4#
chipId=0x30455342
An error occurred while uploading the sketch
Unsupported ARM7TDMI architecture

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

PrefontDon
 
Posts: 69
Joined: Sat May 25, 2013 10:45 pm

Re: Trinket M0: Could not find USBtiny device

by adafruit_support_carter on Sat Sep 30, 2017 12:00 pm

Ignore this message and don't worry about the directory not being there:
Bootloader file specified but missing: C:\Users\dp\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.0.19\bootloaders\trinket\samd21_sam_ba.bin


No device found on COM68

You should pick the COM port that is labeled with 'Adafruit Trinket M0' in the Tools -> Port menu:
https://learn.adafruit.com/adafruit-tri ... -ide#blink
Does it not show up in your Arduino IDE?

adafruit_support_carter
 
Posts: 12976
Joined: Tue Nov 29, 2016 2:45 pm

Re: Trinket M0: Could not find USBtiny device

by PrefontDon on Sat Sep 30, 2017 12:24 pm

I did pick the port number as you specified.
I have detached the device, shutdown the IDE, attached the device, started up the IDE, and selected the new port number assigned.
I'm a little concerned about the missing folder and file.

PrefontDon
 
Posts: 69
Joined: Sat May 25, 2013 10:45 pm

Re: Trinket M0: Could not find USBtiny device

by adafruit_support_carter on Sat Sep 30, 2017 12:38 pm

If you attach the Trinket M0 to your computer via your USB cable and double click the reset button, do you get:

  • a green light on the DotStar? (see here for location)
  • a folder named TRINKETBOOT showing up in your file explorer?

This is independent of the Arduino IDE, so it does not need to be running.

adafruit_support_carter
 
Posts: 12976
Joined: Tue Nov 29, 2016 2:45 pm

Re: Trinket M0: Could not find USBtiny device

by PrefontDon on Mon Oct 02, 2017 8:21 am

Yes, the DotStar is green after double-clicking the Reset button.
No, there is not a TRINKETBOOT folder nor file anywhere on the PC.
Thanks. Don.

PrefontDon
 
Posts: 69
Joined: Sat May 25, 2013 10:45 pm

Please be positive and constructive with your questions and comments.