From b9ca9223792163135b0961c1903c225ddf2c7925 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 11 May 2018 01:51:36 +0300 Subject: [PATCH] Initial support for external JTAG programmers --- tools/platformio-build.py | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/tools/platformio-build.py b/tools/platformio-build.py index 30178597..6e78fae3 100644 --- a/tools/platformio-build.py +++ b/tools/platformio-build.py @@ -100,27 +100,11 @@ env.Prepend( ], LIBS=[ "gcc", "openssl", "btdm_app", "fatfs", "wps", "coexist", "wear_levelling", "hal", "newlib", "driver", "bootloader_support", "pp", "mesh", "smartconfig", "jsmn", "wpa", "ethernet", "phy", "app_trace", "console", "ulp", "wpa_supplicant", "freertos", "bt", "micro-ecc", "cxx", "xtensa-debug-module", "mdns", "vfs", "soc", "core", "sdmmc", "coap", "tcpip_adapter", "c_nano", "rtc", "spi_flash", "wpa2", "esp32", "app_update", "nghttp", "spiffs", "espnow", "nvs_flash", "esp_adc_cal", "log", "expat", "m", "c", "heap", "mbedtls", "lwip", "net80211", "pthread", "json", "stdc++" - ], - - UPLOADERFLAGS=[ - "--before", "default_reset", - "--after", "hard_reset" ] ) -def _get_board_flash_mode(env): - mode = env.subst("$BOARD_FLASH_MODE") - if mode == "qio": - return "dio" - elif mode == "qout": - return "dout" - return mode - - env.Append( - __get_board_flash_mode=_get_board_flash_mode, - LIBSOURCE_DIRS=[ join(FRAMEWORK_DIR, "libraries") ], @@ -136,7 +120,7 @@ env.Append( "-u", "__cxx_fatal_exception" ], - UPLOADERFLAGS=[ + EXTRA_ESPTOOL_UPLOADFLAGS=[ "0x1000", join(FRAMEWORK_DIR, "tools", "sdk", "bin", "bootloader_${BOARD_FLASH_MODE}_${__get_board_f_flash(__env__)}.bin"), "0x8000", join(env.subst("$BUILD_DIR"), "partitions.bin"), "0xe000", join(FRAMEWORK_DIR, "tools", "partitions", "boot_app0.bin"), @@ -144,13 +128,6 @@ env.Append( ] ) -if "$BOARD_FLASH_MODE" in env['UPLOADERFLAGS']: - env['UPLOADERFLAGS'][env['UPLOADERFLAGS'].index("$BOARD_FLASH_MODE")] = "${__get_board_flash_mode(__env__)}" - -env.Replace( - UPLOADER=join(FRAMEWORK_DIR, "tools", "esptool.py") -) - # # Target: Build Core Library #