platformio / platform-atmelavr

Atmel AVR: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/atmelavr
Apache License 2.0
140 stars 105 forks source link

Adafruit Trinket 5V/8MHz upload issue #291

Open guy-bartkus opened 2 years ago

guy-bartkus commented 2 years ago

Hello, I have tried using trinket5 board and setting board_build.f_cpu and board_build.f_flash to 8000000L, and I have also tried just using trinket3 since it is already 8MHz in platformio, but uploading still fails. I think this issue is related to this older one here https://github.com/platformio/platform-atmelavr/issues/24.

Here are the platformio.ini settings I have tried:

trinket5:

[env:trinket5]
platform = atmelavr
board = trinket5
framework = arduino

upload_protocol = usbtiny
board_build.f_cpu = 8000000L
board_build.f_flash = 8000000L

trinket3:

[env:trinket3]
platform = atmelavr
board = trinket3
framework = arduino

upload_protocol = usbtiny

trinket5 terminal output: https://pastebin.com/Cj9hBXhy trinket3 terminal output: https://pastebin.com/z5mQsFqR

Thanks :)