Uploading using programmer doesn't work
See original GitHub issueHi!
I believe there’s a bug here. When I’ve specified to use a dedicated programmer in platformio.ini (USBasp in this case) I’m not able to upload successfully by clicking the upload button in VS Code.
A little research reveals that this is caused by the -D flag in avrdude, which prevents the flash from being erased before upload. Is there any reason why the -D flag needs to be there in the first place? It’s not used by Arduino IDE. I suggest the user may add -D to upload_flags
if there’s a special case where it’s needed. For most users, it’s only causing trouble.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
'Error: avrdude' when uploading - Arduino Help Center
When uploading a sketch to your board you may get an error from the avrdude utility: stk500: avrdude: stk500_recv(): programmer is not...
Read more >Uploading | Troubleshooting Guide For Arduino - GitHub Pages
General troubleshooting advice. Make sure it's actually an upload problem. The Arduino IDE compiles your code before uploading, so a bug in your...
Read more >Fix avrdude: stk500_recv(): programmer is not responding
The first time, the sketch loaded without a problem. Then I changed a value in the sketch and tried to upload. That's when...
Read more >Program doesn't run after Upload Using Programmer ... - GitHub
The issue of the program not running after Upload Using Programmer on ATmega2560 using Arduino as ISP has been solved by the update...
Read more >Fix avrdude: stk500_recv(): programmer is not responding
We'll start at the most common and easiest, and move on to more detailed troubleshooting tasks if those don't work.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
A lot has changed since this issue was opened. The current implementation where we’re using a custom upload command is much better IMO.
Because erasing the flash would erase the bootloader… which you don’t really want to do since you’re about to use it! 😆 But you don’t have that concern with uploading with a programmer, so an erase gives you a clean slate.