Hi all, I'm using a USBasp and Technoblogy's ATtiny10core to program my ATtiny10 ICs. Everything works fine if the IC is new, but it's a hassle to reprogram chips. The actual upload command looks like this:
The problem is that -D flag near the end; it stops avrdude from erasing the chip before uploading. I want to remove the -D flag from the avrdude command, but I am unable.
I had assumed I could simply go into the ATtiny10core platform.txt file and edit the lines with tools.avrdude.upload.pattern and tools.avrdude.program.pattern. However, no matter what I do to these lines, the actual upload command looks identical to the one I pasted above. Why do my edits to platform.txt do nothing? What should I change instead to remove the -D flag? Any help is much appreciated.
If the upload.protocol property is not defined for a board, the Arduino IDE’s “Upload” process will use the same behavior as “Upload Using Programmer”. This is convenient for boards which only support uploading via programmer.
If you look in boards.txt, you can see there is no “attiny10.upload.protocol” property definition, so actually the “tools.avrdude.upload.pattern” in that platform.txt is pointless. They probably just did a copy/paste from another boards platform and didn’t bother to delete it.
When using the Arduino IDE, if the selected programmer is from a different platform than the board, the program recipe defined in the programmer’s platform is used
The attiny10core boards platform doesn’t define any programmers, so the “tools.avrdude.program.pattern” being used is from the arduino:avr (Arduino AVR Boards platform). So the “tools.avrdude.program.pattern” defined in the attiny10core platform.txt is also a pointless artifact of copy/paste platform development.
The last thing is that you may need to restart the Arduino IDE before changes to the configuration files like platform.txt will take effect.
After all that, I’m still quite confused about how you managed to get this strange upload command. I guess you’ve been messing about with boards.txt?