Skip to content

Commit b5fa362

Browse files
ivankravetsCurclamas
authored andcommitted
Initial support for external JTAG programmers
1 parent 8e1a98a commit b5fa362

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

Diff for: tools/platformio-build.py

+1-24
Original file line numberDiff line numberDiff line change
@@ -100,27 +100,11 @@
100100
],
101101
LIBS=[
102102
"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++"
103-
],
104-
105-
UPLOADERFLAGS=[
106-
"--before", "default_reset",
107-
"--after", "hard_reset"
108103
]
109104
)
110105

111106

112-
def _get_board_flash_mode(env):
113-
mode = env.subst("$BOARD_FLASH_MODE")
114-
if mode == "qio":
115-
return "dio"
116-
elif mode == "qout":
117-
return "dout"
118-
return mode
119-
120-
121107
env.Append(
122-
__get_board_flash_mode=_get_board_flash_mode,
123-
124108
LIBSOURCE_DIRS=[
125109
join(FRAMEWORK_DIR, "libraries")
126110
],
@@ -136,21 +120,14 @@ def _get_board_flash_mode(env):
136120
"-u", "__cxx_fatal_exception"
137121
],
138122

139-
UPLOADERFLAGS=[
123+
EXTRA_ESPTOOL_UPLOADFLAGS=[
140124
"0x1000", join(FRAMEWORK_DIR, "tools", "sdk", "bin", "bootloader_${BOARD_FLASH_MODE}_${__get_board_f_flash(__env__)}.bin"),
141125
"0x8000", join(env.subst("$BUILD_DIR"), "partitions.bin"),
142126
"0xe000", join(FRAMEWORK_DIR, "tools", "partitions", "boot_app0.bin"),
143127
"0x10000"
144128
]
145129
)
146130

147-
if "$BOARD_FLASH_MODE" in env['UPLOADERFLAGS']:
148-
env['UPLOADERFLAGS'][env['UPLOADERFLAGS'].index("$BOARD_FLASH_MODE")] = "${__get_board_flash_mode(__env__)}"
149-
150-
env.Replace(
151-
UPLOADER=join(FRAMEWORK_DIR, "tools", "esptool.py")
152-
)
153-
154131
#
155132
# Target: Build Core Library
156133
#

0 commit comments

Comments
 (0)