Skip to content

Commit 4c0ebb5

Browse files
aykevldeadprogram
authored andcommitted
arduino: make avrdude command line compatible with Windows
On Windows, it is common that there is a colon in the path. avrdude will treat that as a separator and everything behind it as the file format specifier instead of defaulting to Intel hex format. By explicitly specifying the Intel hex format (with `:i`), this issue should be fixed.
1 parent e17a2e6 commit 4c0ebb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/arduino.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
"targets/avr.S",
1616
"src/device/avr/atmega328p.s"
1717
],
18-
"flash-command": "avrdude -c arduino -p atmega328p -P {port} -U flash:w:{hex}"
18+
"flash-command": "avrdude -c arduino -p atmega328p -P {port} -U flash:w:{hex}:i"
1919
}

0 commit comments

Comments
 (0)