aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2020-01-20 18:47:12 +0100
committerRon Evans <[email protected]>2020-01-21 07:49:17 +0100
commit4c0ebb5b41bf5d2df841dfc982c4ff9d3b4bdd4a (patch)
treec1b1fa60cc7bd86c7b6e6182d1c1096763c0b3bb /targets
parente17a2e67765928c5c90454ecf1da6492443b91b0 (diff)
downloadtinygo-4c0ebb5b41bf5d2df841dfc982c4ff9d3b4bdd4a.tar.gz
tinygo-4c0ebb5b41bf5d2df841dfc982c4ff9d3b4bdd4a.zip
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.
Diffstat (limited to 'targets')
-rw-r--r--targets/arduino.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/targets/arduino.json b/targets/arduino.json
index c1d49c2fc..4c847e0a7 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"
}