Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload to ATTiny167 fails #277

Open
hcccs opened this issue Mar 6, 2022 · 2 comments
Open

Upload to ATTiny167 fails #277

hcccs opened this issue Mar 6, 2022 · 2 comments

Comments

@hcccs
Copy link

hcccs commented Mar 6, 2022

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:

  • framework-arduino-avr-attiny 1.5.2
  • tool-avrdude 1.60300.200527 (6.3.0)
  • toolchain-atmelavr 1.70300.191015 (7.3.0)
    LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 14 compatible libraries
    Scanning dependencies...
    Dependency Graph
    |-- 2.5.1
    | |-- 1.10.13
    | | |-- 1.11.2
    | | | |-- 2.0.0
    | | | |-- 2.0.0
    | | |-- 2.0.0
    | | |-- 2.0.0
    | |-- 2.0.0
    | |-- 2.0.0
    |-- 1.10.13
    | |-- 1.11.2
    | | |-- 2.0.0
    | | |-- 2.0.0
    | |-- 2.0.0
    | |-- 2.0.0
    |-- 1.11.2
    | |-- 2.0.0
    | |-- 2.0.0
    |-- 2.3.6
    |-- 3.9.1
    | |-- 2.3.6
    Building in release mode
    Checking size .pio\build\attiny167\firmware.elf
    Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
    RAM: [===== ] 49.8% (used 255 bytes from 512 bytes)
    Flash: [======== ] 84.8% (used 13886 bytes from 16384 bytes)
    Configuring upload protocol...
    AVAILABLE: usbtiny
    CURRENT: upload_protocol = usbtiny
    Looking for upload port...
    Uploading .pio\build\attiny167\firmware.hex
    avrdude: Error: Could not find USBtiny device (0x1781/0xc9f)

avrdude done. Thank you.

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

@hcccs
Copy link
Author

hcccs commented Mar 6, 2022

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
Copy link

upload_protocol = micronucleus

This fixed the upload issue on my ATtiny85.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants