aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets/arduino-nano-new.json
diff options
context:
space:
mode:
authorRaqbit <[email protected]>2021-04-27 23:05:16 +0200
committerRon Evans <[email protected]>2021-05-01 17:09:46 +0200
commitabeab51d00e7567c71f16d6c72ccb6826591cd6f (patch)
tree2e60e368b13eb6d30a18b9fa01bd0c9f787dc868 /targets/arduino-nano-new.json
parent9ef75f17bf920362f672d60397d0e1d2bb8430d0 (diff)
downloadtinygo-abeab51d00e7567c71f16d6c72ccb6826591cd6f.tar.gz
tinygo-abeab51d00e7567c71f16d6c72ccb6826591cd6f.zip
Add Arduino Nano w/ New Bootloader target
Since 2018, Arduino Nanos and clones are sold with a new bootloader, which requires programming at 115200 baud instead of the 57600 baud required by the old one.
Diffstat (limited to 'targets/arduino-nano-new.json')
-rw-r--r--targets/arduino-nano-new.json4
1 files changed, 4 insertions, 0 deletions
diff --git a/targets/arduino-nano-new.json b/targets/arduino-nano-new.json
new file mode 100644
index 000000000..78c990f55
--- /dev/null
+++ b/targets/arduino-nano-new.json
@@ -0,0 +1,4 @@
+{
+ "inherits": ["arduino-nano"],
+ "flash-command": "avrdude -c arduino -p atmega328p -b 115200 -P {port} -U flash:w:{hex}:i"
+}