platformio / platform-atmelavr

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

Upload to ATTiny167 fails #277

Open hcccs opened 2 years ago

hcccs commented 2 years ago

Uploading to an ATTiny167 fails with "Could not find USBtiny device (0x1781/0xc9f)". It doesn't prompt for a device connect.

Processing attiny167 (platform: atmelavr; board: attiny167; framework: arduino) -----------------------Verbose mode can be enabled via-v, --verbose` option CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/attiny167.html PLATFORM: Atmel AVR (3.4.0) > Generic ATtiny167 HARDWARE: ATTINY167 8MHz, 512B RAM, 16KB Flash PACKAGES:

avrdude done. Thank you.

*** [upload] Error 1 =============================== [FAILED] Took 5.75 seconds ====== `

hcccs commented 2 years ago

I added "upload_protocol = micronucleus" to platformio.ini and the upload was successful but when I connect the ATTiny167 to the USB port it disconnects after 3 seconds.

Fusseldieb commented 1 year ago

upload_protocol = micronucleus

This fixed the upload issue on my ATtiny85.