From 8046db1f3094298864247916c8c82e0bd7fb5918 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20H=C3=A4nsel?= Date: Fri, 5 Oct 2018 10:13:45 +0200 Subject: [PATCH] Add ability to disable 1200bps touch for Pro Micro This adds a menu option "Reset method" that can be switched from "1200bps touch" to "Manual", so the classic upload method (reset manually to bootloader, then click Upload) can be used. --- sparkfun/avr/boards.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sparkfun/avr/boards.txt b/sparkfun/avr/boards.txt index aaef557c..67ddb765 100644 --- a/sparkfun/avr/boards.txt +++ b/sparkfun/avr/boards.txt @@ -6,6 +6,7 @@ # menu.cpu=Processor +menu.reset_method=Reset method ################################################################################ ################################### RedBoard ################################### @@ -81,7 +82,6 @@ promicro.upload.maximum_size=28672 promicro.upload.maximum_data_size=2560 promicro.upload.speed=57600 promicro.upload.disable_flushing=true -promicro.upload.use_1200bps_touch=true promicro.upload.wait_for_upload_port=true promicro.bootloader.tool=avrdude @@ -98,6 +98,12 @@ promicro.build.usb_product="SparkFun Pro Micro" promicro.build.vid=0x1b4f promicro.build.extra_flags={build.usb_flags} +promicro.menu.reset_method.1200bps_touch=1200bps touch +promicro.menu.reset_method.1200bps_touch.upload.use_1200bps_touch=true +promicro.menu.reset_method.manual=Manual +promicro.menu.reset_method.1200bps_touch.upload.use_1200bps_touch=false +# Note: wait_for_upload_port has no effect when use_1200bps_touch=false + ######################### Pro Micro 3.3V / 8MHz ################################ promicro.menu.cpu.8MHzatmega32U4=ATmega32U4 (3.3V, 8 MHz)