Open seebs opened 6 years ago
Very strange, as this is the same flag the Arduino IDE uses for normal uploads, suggesting there's something different in the avrdude conf or the behaviour of the binary. Or maybe this is no longer an issue?
Huh, I don't know. So far as I know, they were both using the same avrdude. The command lines I got that appeared to work, which I got by using the Arduino IDE, didn't have the -D in them. I have no idea why.
Had a lot of weird problems with avrdude failing when invoked by platformIO, working fine from normal command line. Eventually traced it to the -D option. According to avrdude's documentation:
And indeed, that's exactly what I see: Writing to anything that isn't an ATxmega, most changes fail verification and result in a non-working flash state, because the flash needed to be erased. Dropping the "-D" from "upload" seems to fix this.
I do not know how or why this differs from reported behavior in the Arduino IDE, but empirically, when I use that and flash things, it's not using -D.