Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Adafruit Trinket usbdrvasm16.inc Fatal error
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Adafruit Trinket usbdrvasm16.inc Fatal error

by masj78 on Wed Sep 16, 2020 4:42 am

I am coming back to use my Adafruit trinket 8Mhz after a while. I am using TrinketKeyboard library includes:

#include <TrinketKeyboard.h>
#include <TrinketKeyboardC.h>
#include <usbconfig.h>

However it is giving a compile error:
C:\Users\<user>\Documents\Arduino\libraries\TrinketKeyboard\usbdrv/usbdrvasm.S:384:17: fatal error: usbdrvasm16.inc: No such file or directory
# include "usbdrvasm16.inc"
^~~~~~~~~~~~~~~~~
The correct libraries are loaded in Arduino IDE I think.
Can someone advise?

masj78
 
Posts: 5
Joined: Tue Sep 04, 2018 11:41 am

Re: Adafruit Trinket usbdrvasm16.inc Fatal error

by adafruit_support_mike on Thu Sep 17, 2020 3:12 am

The TrinketKeyboard code can't run at 8MHz. It requires the clock speed to be 16.5MHz.

There's a warning about it on the first page of the Trinket Keyboard tutorial:

https://learn.adafruit.com/trinket-usb-keyboard

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

Re: Adafruit Trinket usbdrvasm16.inc Fatal error

by masj78 on Thu Sep 17, 2020 3:36 am

I see. Well it used to work about a year ago.

masj78
 
Posts: 5
Joined: Tue Sep 04, 2018 11:41 am

Re: Adafruit Trinket usbdrvasm16.inc Fatal error

by masj78 on Thu Sep 17, 2020 5:21 am

Is working now. Had the wrong board and programmer selected in the IDE.

masj78
 
Posts: 5
Joined: Tue Sep 04, 2018 11:41 am

Please be positive and constructive with your questions and comments.