Programming ATTiny85 with VSC and PlatformIO.

preview_player
Показать описание
- Learn how to upload programs to the ATTiny85 boards, and fix
' Could not find USBtiny device (0x1781/0xc9f)'
'Error 3221225781'.

I take you through the set-up of Visual Studio Code with the PlatformIO extension installed, and show you how to fix the errors I encountered.

Рекомендации по теме
Комментарии
Автор

I had this up and running once, but after a Windows reinstall I had to set it all up from scratch. Of course, I had forgotten everything about it, but this video got it going again in no time. Thanks!

ErikAndersson-kg
Автор

When looking at the LED you'll probably see that it flashes too fast. This is because the compiler assumes the wrong frequency than what has actually be set via the fuses.
Adding the following lines to the platformio ini file you can set the boards frequency to internal 8MHz and also tell the compiler that it is set to 8MHz:
board_build.mcu = ${env.board}
board_build.f_cpu =
board_build.clock_source = 6

Noxoreos
Автор

Hi Richard, thank you so much. I’ve had the platfomrio upload error:
“ avrdude: Error: Could not find USBtiny device (0x1781/0xc9f)”
have tried all kinds of ways and spend also hours searching.
Finally found your video and information about the platformio.ini file with the additional input
upload_protocol = micronucleus
and so that made the upload finally work.
Thanks again!

HeinzRuetschi
Автор

It makes it all worthwhile to know I've helped someone.

richardlangner
Автор

Great Video ! You saved me quite some time figuring it out my self. Thank you so much for that :)

florianb.
Автор

Thank you! I fought with Arduino IDE and couldn't get this to work. VSC worked perfect.

Gixxerfool
Автор

Hi, thanks for this video. I thought this would save my day but unfortunately this does not work for me. The first part, wrt the nucleus, was successful to get out of the first error but I'm still getting the second one, whatever I do to install the drivers (I've also looked at other videos with other suggestions). I've already spent several hours on this, on 3 different computers, so I guess the issue may come from the Attiny85 devices. They are really looking alike yours, except I'm not seeing any HW (HardWare?) info on the board. Any idea on what I should try ? Thanks.

MichelRaskin
Автор

Thank you Rich! Very helpful. My driver installation with zadig timed out, but seemed to have worked fine once I restarted my computer. Any trick to getting serial monitoring to work?

tristansokol
Автор

Doing the micronucleus step works; thank you. However, my ATtiny85 doesn't show up in the device manager, and nothing happens when I install the drivers.

nabilandadamslaboratory
Автор

Hi Sir, do you also know how to upload in Linux? Zadig doesn’t exist in Ubuntu

cbt
Автор

Outdated, does not work. Please update video or take down.

The part of updating the drivers is valid though, but the micro nucleus directive doesn’t work. Just use USBTiny.

leonardebron
Автор

On the offchance anyone sees this since this video was released a while ago
What should I do if, when I plug the device in, the computer doesn't recognize it, so it just leaves me with the "please plug in the device" message?

lindalaufer
Автор

well i use an arduino-uploader, maybe you add your micronucleus to the video title

kampkrieger