question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Verify upload to AtTiny85 fails.

See original GitHub issue

ORIGINALLY RAISED WITH PLATFORMIO. ADVISED TO TAKE IT HERE.

Configuration

Operating system: Linux Mint 18, 64 bit.

PlatformIO Version: IDE=1.6.0, CLI=3.1.0

Description of problem

After upgrading to latest PlatformIO, all my AtTiny85 scripts fail to verify. Each is Arduino compatible, and work fine on the Arduino IDE.

Please refer back to https://github.com/platformio/platformio/issues/799 and https://github.com/platformio/platformio/issues/800 for the full details.

I upgraded the Atom packages to the latest versions, now I cannot upload to an AtTiny85 using my USBTinyISP programmer any more. If fails at the verify stage of avrdude.

I followed the instaructions for the use of a programmer by visiting http://docs.platformio.org/en/stable/platforms/atmelavr.html#upload-using-programmer and my current platformio.ini is as follows:

The content of platformio.ini:

[env:attiny85]
platform=atmelavr
board=attiny85
framework=arduino
upload_protocol = usbtiny

[platformio]
src_dir=AtTiny85_Blink

After adding the upload_protocol option, exactly the same happens. Same error message - unable to verify after uploading. I’m advised that I need to be using g program rather than upload, but it doesn’t seem to change anything. I’m still seeing g, briefly, the words platformio and upload as opposed to program.

With the Arduino IDE, I don’t even have to “upload using programmer” to get a valid write and verify, upload works just fine.

With PlatformIO, until I upgraded, I had no problems uploading - as opposed to programming - with the platformio.ini that I originally posted. Only after the upgrade were there any problems. I’m still at the point of being unable to program any of my AtTiny85 chips.

Changing to the advised upload_protocol had no effect. Still fails to verify the upload.

Sorry. 😦

Cheers.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
stonehippocommented, Dec 8, 2016

@ivankravets looks like it’s working well. After pio update, I was able to program the ATTiny85 multiple times via the Tiny AVR Programmer, using both upload and program targets, with or without upload_protocol = usbtiny specified in platformio.ini. (At least I was after I remembered that it is flaky with my USB hub and plugged directly into my Mac!)

0reactions
ivankravetscommented, Dec 7, 2016

@NormanDunbar

Thanks! Merry Christmas! 🎄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't upload to attiny85 - Arduino Forum
Can't upload to attiny85 · (In the Arduino IDE) File > Preferences · Uncheck the checkbox next to “Show verbose output during: compilation”...
Read more >
Attiny85 uploading error - Arduino Stack Exchange
I am getting an error while trying to upload programs to the Attiny85 through a USBTinyISP programmer, found here. Unfortunately, it isn't ...
Read more >
How to Setup DigiSprak Attiny85 Board - Instructables
1. Watch the Video 2. for this Tutorial, we will need 1. Attiny85 Board https://in.gearbest.com/boards-shields/pp_00949109... 2. Arduino IDE https://www.arduino.cc/en/main/software 3. At Tiny 85 is similar to Arduino,...
Read more >
Programming ATtiny85 & flashing a Bootloader (Search Timed ...
Sponsored by JLCPCB (https://jlcpcb.com/) Order 5 PCB's from only $2 (Any Color)Download link for Instructions & Bootloader files: ...
Read more >
Fix avrdude: stk500_recv(): programmer is not responding
Who is AVR Dude, and what does he have against me trying to upload a sketch to my Arduino? If you're getting this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found