From 4c0ebb5b41bf5d2df841dfc982c4ff9d3b4bdd4a Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Mon, 20 Jan 2020 18:47:12 +0100 Subject: [PATCH] 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. --- targets/arduino.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/targets/arduino.json b/targets/arduino.json index c1d49c2f..4c847e0a 100644 --- a/targets/arduino.json +++ b/targets/arduino.json @@ -15,5 +15,5 @@ "targets/avr.S", "src/device/avr/atmega328p.s" ], - "flash-command": "avrdude -c arduino -p atmega328p -P {port} -U flash:w:{hex}" + "flash-command": "avrdude -c arduino -p atmega328p -P {port} -U flash:w:{hex}:i" }