1 menu "Serial flasher config"
4 string "Default serial port"
7 The serial port that's connected to the ESP chip. This can be overridden by setting the ESPPORT
11 prompt "Default baud rate"
12 default ESPTOOLPY_BAUD_115200B
14 Default baud rate to use while communicating with the ESP chip. Can be overridden by
15 setting the ESPBAUD variable.
17 config ESPTOOLPY_BAUD_115200B
19 config ESPTOOLPY_BAUD_230400B
21 config ESPTOOLPY_BAUD_921600B
23 config ESPTOOLPY_BAUD_2MB
25 config ESPTOOLPY_BAUD_OTHER
26 bool "Other baud rate"
29 config ESPTOOLPY_BAUD_OTHER_VAL
30 int "Other baud rate value" if ESPTOOLPY_BAUD_OTHER
35 default 115200 if ESPTOOLPY_BAUD_115200B
36 default 230400 if ESPTOOLPY_BAUD_230400B
37 default 921600 if ESPTOOLPY_BAUD_921600B
38 default 2000000 if ESPTOOLPY_BAUD_2MB
39 default ESPTOOLPY_BAUD_OTHER_VAL if ESPTOOLPY_BAUD_OTHER
41 config ESPTOOLPY_COMPRESSED
42 bool "Use compressed upload"
45 The flasher tool can send data compressed using zlib, letting the ROM on the ESP chip
46 decompress it on the fly before flashing it. For most payloads, this should result in a
50 prompt "Flash SPI mode"
53 Mode the flash chip is flashed in, as well as the default mode for the
66 # Note: we use esptool.py to flash bootloader in
67 # dio mode for QIO/QOUT, bootloader then upgrades
68 # itself to quad mode during initialisation
69 config ESPTOOLPY_FLASHMODE
71 default "dio" if FLASHMODE_QIO
72 default "dio" if FLASHMODE_QOUT
73 default "dio" if FLASHMODE_DIO
74 default "dout" if FLASHMODE_DOUT
76 choice ESPTOOLPY_FLASHFREQ
77 prompt "Flash SPI speed"
78 default ESPTOOLPY_FLASHFREQ_40M
80 The SPI flash frequency to be used.
82 config ESPTOOLPY_FLASHFREQ_80M
84 config ESPTOOLPY_FLASHFREQ_40M
86 config ESPTOOLPY_FLASHFREQ_26M
88 config ESPTOOLPY_FLASHFREQ_20M
92 config ESPTOOLPY_FLASHFREQ
94 default "80m" if ESPTOOLPY_FLASHFREQ_80M
95 default "40m" if ESPTOOLPY_FLASHFREQ_40M
96 default "26m" if ESPTOOLPY_FLASHFREQ_26M
97 default "20m" if ESPTOOLPY_FLASHFREQ_20M
100 choice ESPTOOLPY_FLASHSIZE
102 default ESPTOOLPY_FLASHSIZE_2MB
104 SPI flash size, in megabytes
106 config ESPTOOLPY_FLASHSIZE_1MB
108 config ESPTOOLPY_FLASHSIZE_2MB
110 config ESPTOOLPY_FLASHSIZE_4MB
112 config ESPTOOLPY_FLASHSIZE_8MB
114 config ESPTOOLPY_FLASHSIZE_16MB
118 config ESPTOOLPY_FLASHSIZE
120 default "1MB" if ESPTOOLPY_FLASHSIZE_1MB
121 default "2MB" if ESPTOOLPY_FLASHSIZE_2MB
122 default "4MB" if ESPTOOLPY_FLASHSIZE_4MB
123 default "8MB" if ESPTOOLPY_FLASHSIZE_8MB
124 default "16MB" if ESPTOOLPY_FLASHSIZE_16MB
126 config ESPTOOLPY_FLASHSIZE_DETECT
127 bool "Detect flash size when flashing bootloader"
130 If this option is set, 'make flash' targets will automatically detect
131 the flash size and update the bootloader image when flashing.
133 choice ESPTOOLPY_BEFORE
134 prompt "Before flashing"
135 default ESPTOOLPY_BEFORE_RESET
137 Configure whether esptool.py should reset the ESP32 before flashing.
139 Automatic resetting depends on the RTS & DTR signals being
140 wired from the serial port to the ESP32. Most USB development
141 boards do this internally.
143 config ESPTOOLPY_BEFORE_RESET
144 bool "Reset to bootloader"
145 config ESPTOOLPY_BEFORE_NORESET
149 config ESPTOOLPY_BEFORE
151 default "default_reset" if ESPTOOLPY_BEFORE_RESET
152 default "no_reset" if ESPTOOLPY_BEFORE_NORESET
154 choice ESPTOOLPY_AFTER
155 prompt "After flashing"
156 default ESPTOOLPY_AFTER_RESET
158 Configure whether esptool.py should reset the ESP32 after flashing.
160 Automatic resetting depends on the RTS & DTR signals being
161 wired from the serial port to the ESP32. Most USB development
162 boards do this internally.
164 config ESPTOOLPY_AFTER_RESET
165 bool "Reset after flashing"
166 config ESPTOOLPY_AFTER_NORESET
167 bool "Stay in bootloader"
170 config ESPTOOLPY_AFTER
172 default "hard_reset" if ESPTOOLPY_AFTER_RESET
173 default "no_reset" if ESPTOOLPY_AFTER_NORESET
176 prompt "'make monitor' baud rate"
177 default MONITOR_BAUD_115200B
179 Baud rate to use when running 'make monitor' to view serial output
182 Can override by setting the MONITORBAUD environment variable.
184 config MONITOR_BAUD_9600B
186 config MONITOR_BAUD_57600B
188 config MONITOR_BAUD_115200B
190 config MONITOR_BAUD_230400B
192 config MONITOR_BAUD_921600B
194 config MONITOR_BAUD_2MB
196 config MONITOR_BAUD_OTHER
197 bool "Custom baud rate"
201 config MONITOR_BAUD_OTHER_VAL
202 int "Custom baud rate value" if MONITOR_BAUD_OTHER
207 default 9600 if MONITOR_BAUD_9600B
208 default 57600 if MONITOR_BAUD_57600B
209 default 115200 if MONITOR_BAUD_115200B
210 default 230400 if MONITOR_BAUD_230400B
211 default 921600 if MONITOR_BAUD_921600B
212 default 2000000 if MONITOR_BAUD_2MB
213 default MONITOR_BAUD_OTHER_VAL if MONITOR_BAUD_OTHER