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
49 choice ESPTOOLPY_FLASHMODE
50 prompt "Flash SPI mode"
51 default ESPTOOLPY_FLASHMODE_DIO
53 Mode the flash chip is flashed in, as well as the default mode for the
56 config ESPTOOLPY_FLASHMODE_QIO
58 config ESPTOOLPY_FLASHMODE_QOUT
60 config ESPTOOLPY_FLASHMODE_DIO
62 config ESPTOOLPY_FLASHMODE_DOUT
66 config ESPTOOLPY_FLASHMODE
68 default "qio" if ESPTOOLPY_FLASHMODE_QIO
69 default "qout" if ESPTOOLPY_FLASHMODE_QOUT
70 default "dio" if ESPTOOLPY_FLASHMODE_DIO
71 default "dout" if ESPTOOLPY_FLASHMODE_DOUT
74 choice ESPTOOLPY_FLASHFREQ
75 prompt "Flash SPI speed"
76 default ESPTOOLPY_FLASHFREQ_40M
78 The SPI flash frequency to be used.
80 config ESPTOOLPY_FLASHFREQ_80M
82 config ESPTOOLPY_FLASHFREQ_40M
84 config ESPTOOLPY_FLASHFREQ_26M
86 config ESPTOOLPY_FLASHFREQ_20M
90 config ESPTOOLPY_FLASHFREQ
92 default "80m" if ESPTOOLPY_FLASHFREQ_80M
93 default "40m" if ESPTOOLPY_FLASHFREQ_40M
94 default "26m" if ESPTOOLPY_FLASHFREQ_26M
95 default "20m" if ESPTOOLPY_FLASHFREQ_20M
98 choice ESPTOOLPY_FLASHSIZE
100 default ESPTOOLPY_FLASHSIZE_2MB
102 SPI flash size, in megabytes
104 config ESPTOOLPY_FLASHSIZE_1MB
106 config ESPTOOLPY_FLASHSIZE_2MB
108 config ESPTOOLPY_FLASHSIZE_4MB
110 config ESPTOOLPY_FLASHSIZE_8MB
112 config ESPTOOLPY_FLASHSIZE_16MB
116 config ESPTOOLPY_FLASHSIZE
118 default "1MB" if ESPTOOLPY_FLASHSIZE_1MB
119 default "2MB" if ESPTOOLPY_FLASHSIZE_2MB
120 default "4MB" if ESPTOOLPY_FLASHSIZE_4MB
121 default "8MB" if ESPTOOLPY_FLASHSIZE_8MB
122 default "16MB" if ESPTOOLPY_FLASHSIZE_16MB
124 config ESPTOOLPY_FLASHSIZE_DETECT
125 bool "Detect flash size when flashing bootloader"
128 If this option is set, 'make flash' targets will automatically detect
129 the flash size and update the bootloader image when flashing.
131 choice ESPTOOLPY_BEFORE
132 prompt "Before flashing"
133 default ESPTOOLPY_BEFORE_RESET
135 Configure whether esptool.py should reset the ESP32 before flashing.
137 Automatic resetting depends on the RTS & DTR signals being
138 wired from the serial port to the ESP32. Most USB development
139 boards do this internally.
141 The "Reset with ESP32R0 Windows workaround" option works
142 around an automatic reset bug in hardware, when using Windows
143 with some development boards. This fix only works if you're
144 using a silicon revision 0 ESP32.
146 config ESPTOOLPY_BEFORE_RESET
147 bool "Reset to bootloader"
148 config ESPTOOLPY_BEFORE_NORESET
150 config ESPTOOLPY_BEFORE_ESP32R0
151 bool "Reset with ESP32R0 Windows workaround"
154 config ESPTOOLPY_BEFORE
156 default "default_reset" if ESPTOOLPY_BEFORE_RESET
157 default "no_reset" if ESPTOOLPY_BEFORE_NORESET
158 default "esp32r0" if ESPTOOLPY_BEFORE_ESP32R0
160 choice ESPTOOLPY_AFTER
161 prompt "After flashing"
162 default ESPTOOLPY_AFTER_RESET
164 Configure whether esptool.py should reset the ESP32 after flashing.
166 Automatic resetting depends on the RTS & DTR signals being
167 wired from the serial port to the ESP32. Most USB development
168 boards do this internally.
170 config ESPTOOLPY_AFTER_RESET
171 bool "Reset after flashing"
172 config ESPTOOLPY_AFTER_NORESET
173 bool "Stay in bootloader"
176 config ESPTOOLPY_AFTER
178 default "hard_reset" if ESPTOOLPY_AFTER_RESET
179 default "no_reset" if ESPTOOLPY_AFTER_NORESET
182 prompt "'make monitor' baud rate"
183 default MONITOR_BAUD_115200B
185 Baud rate to use when running 'make monitor' to view serial output
188 Can override by setting the MONITORBAUD environment variable.
190 config MONITOR_BAUD_9600B
192 config MONITOR_BAUD_57600B
194 config MONITOR_BAUD_115200B
196 config MONITOR_BAUD_230400B
198 config MONITOR_BAUD_921600B
200 config MONITOR_BAUD_2MB
202 config MONITOR_BAUD_OTHER
203 bool "Custom baud rate"
207 config MONITOR_BAUD_OTHER_VAL
208 int "Custom baud rate value" if MONITOR_BAUD_OTHER
213 default 9600 if MONITOR_BAUD_9600B
214 default 57600 if MONITOR_BAUD_57600B
215 default 115200 if MONITOR_BAUD_115200B
216 default 230400 if MONITOR_BAUD_230400B
217 default 921600 if MONITOR_BAUD_921600B
218 default 2000000 if MONITOR_BAUD_2MB
219 default MONITOR_BAUD_OTHER_VAL if MONITOR_BAUD_OTHER