Error uploading sketch to M0, OS X/Arduino IDE

Adafruit's tiny microcontroller platform. Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
zogster
 
Posts: 2
Joined: Tue Jan 04, 2022 12:42 pm

Error uploading sketch to M0, OS X/Arduino IDE

Post by zogster »

So… I'm hoping to base a simple project on a Trinket M0 board (have built a couple of projects with Arduino Pro Micro and Nano boards, wanted something smaller for this).

It's a Trinket M0, and I'm using OS X (10.15.7) and Arduino IDE.

I followed these instructions for getting started with the board : https://learn.adafruit.com/adafruit-tri ... rduino-ide

So I believe I have installed the correct additional support, and I'm getting some communication with the board, in that Board Info shows me:

BN: Unknown board
VID: 239A
PID: 001E
SN: Upload any sketch to obtain it


But I am getting an error when I try to upload a sketch:

avrdude: stk500v2_ReceiveMessage(): timeout

Can anyone suggest what I'm missing/doing wrong here?

User avatar
dastels
 
Posts: 15658
Joined: Tue Oct 20, 2015 3:22 pm

Re: Error uploading sketch to M0, OS X/Arduino IDE

Post by dastels »

You have installed both Arduino AND Adafruit SAMD board support packages? Have you tried restarting Arduino after that. Also, have you verified that you have a data cable and not a power/charge one?

Dave

User avatar
zogster
 
Posts: 2
Joined: Tue Jan 04, 2022 12:42 pm

Re: Error uploading sketch to M0, OS X/Arduino IDE

Post by zogster »

Thanks Dave - that was very helpful. My first thought was "yes to all", but double-checking turned up the fact that I'd missed one of the support packages – all working now ;-)

User avatar
dastels
 
Posts: 15658
Joined: Tue Oct 20, 2015 3:22 pm

Re: Error uploading sketch to M0, OS X/Arduino IDE

Post by dastels »

Excellent.

Dave

Locked
Please be positive and constructive with your questions and comments.

Return to “Trinket ATTiny, Trinket M0”