platformio / platform-atmelavr

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

Use micronucleus uploader for ATTiny #127

Closed wschaeffer closed 5 years ago

wschaeffer commented 5 years ago

The use of micronucleus uploader is exclusive for digispark boards, see platform.py: disabled_tool = "tool-micronucleus"

Therefore it is not possible to use the micronucleus uploader when using a regular ATTiny with the micronucleus bootloader.

When using: [env:attiny85] platform = atmelavr board = attiny85 framework = arduino upload_protocol = micronucleus An error appears:

'micronucleus' is not recognized as an internal or external command, operable program or batch file.

A solution might be to set 'board = digispark-tiny' but this prohibits the use of standard atmel libraries, like SPI.

When setting disabled_tool = "" everything seems to work fine. Is this a bug or an unwanted feature?

ivankravets commented 5 years ago

Thanks! Resolved in upstream version https://docs.platformio.org/en/latest/platforms/atmelavr.html#upstream

Please re-test.

wschaeffer commented 5 years ago

It works now, thanks!

ivankravets commented 5 years ago

Thanks! The final release is out. You can switch back to stable version.