all: implement tinygo flash command

This will now just work:

    tinygo flash -target=arduino examples/blinky1
This commit is contained in:
Ayke van Laethem
2018-09-14 20:59:28 +02:00
parent 6450daa3c8
commit 112f6dc01a
4 changed files with 54 additions and 6 deletions
+2 -1
View File
@@ -3,5 +3,6 @@
"build-tags": ["avr", "avr8", "atmega", "atmega328p", "js", "wasm"],
"linker": "avr-gcc",
"pre-link-args": ["-nostdlib", "-T", "targets/avr.ld", "-Wl,--gc-sections", "targets/avr.S"],
"objcopy": "avr-objcopy"
"objcopy": "avr-objcopy",
"flash": "avrdude -c arduino -p atmega328p -P {port} -U flash:w:{hex}"
}