]> granicus.if.org Git - esp-idf/blob - components/esptool_py/Kconfig.projbuild
deep sleep: fix regression due to moving ets_update_cpu_frequency into IRAM
[esp-idf] / components / esptool_py / Kconfig.projbuild
1 menu "Serial flasher config"
2
3 config ESPTOOLPY_PORT
4         string "Default serial port"
5         default "/dev/ttyUSB0"
6         help
7                 The serial port that's connected to the ESP chip. This can be overridden by setting the ESPPORT
8                 environment variable.
9
10 choice ESPTOOLPY_BAUD
11         prompt "Default baud rate"
12         default ESPTOOLPY_BAUD_115200B
13         help
14                 Default baud rate to use while communicating with the ESP chip. Can be overridden by
15                 setting the ESPBAUD variable.
16
17 config ESPTOOLPY_BAUD_115200B
18         bool "115200 baud"
19 config ESPTOOLPY_BAUD_230400B
20         bool "230400 baud"
21 config ESPTOOLPY_BAUD_921600B
22         bool "921600 baud"
23 config ESPTOOLPY_BAUD_2MB
24         bool "2Mbaud"
25 config ESPTOOLPY_BAUD_OTHER
26     bool "Other baud rate"
27 endchoice
28
29 config ESPTOOLPY_BAUD_OTHER_VAL
30         int "Other baud rate value" if ESPTOOLPY_BAUD_OTHER
31         default 115200
32
33 config ESPTOOLPY_BAUD
34         int
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
40
41 config ESPTOOLPY_COMPRESSED
42         bool "Use compressed upload"
43         default "y"
44         help
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
47                 speed increase.
48
49 choice ESPTOOLPY_FLASHMODE
50         prompt "Flash SPI mode"
51         default ESPTOOLPY_FLASHMODE_DIO
52         help
53                 Mode the flash chip is flashed in, as well as the default mode for the
54                 binary to run in.
55
56 config ESPTOOLPY_FLASHMODE_QIO
57         bool "QIO"
58 config ESPTOOLPY_FLASHMODE_QOUT
59         bool "QOUT"
60 config ESPTOOLPY_FLASHMODE_DIO
61         bool "DIO"
62 config ESPTOOLPY_FLASHMODE_DOUT
63         bool "DOUT"
64 endchoice
65
66 config ESPTOOLPY_FLASHMODE
67         string
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
72
73
74 choice ESPTOOLPY_FLASHFREQ
75         prompt "Flash SPI speed"
76         default ESPTOOLPY_FLASHFREQ_40M
77         help
78                 The SPI flash frequency to be used.
79
80 config ESPTOOLPY_FLASHFREQ_80M
81         bool "80 MHz"
82 config ESPTOOLPY_FLASHFREQ_40M
83         bool "40 MHz"
84 config ESPTOOLPY_FLASHFREQ_26M
85         bool "26 MHz"
86 config ESPTOOLPY_FLASHFREQ_20M
87         bool "20 MHz"
88 endchoice
89
90 config ESPTOOLPY_FLASHFREQ
91         string
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
96
97
98 choice ESPTOOLPY_FLASHSIZE
99         prompt "Flash size"
100         default ESPTOOLPY_FLASHSIZE_2MB
101         help
102                 SPI flash size, in megabytes
103
104 config ESPTOOLPY_FLASHSIZE_1MB
105         bool "1 MB"
106 config ESPTOOLPY_FLASHSIZE_2MB
107         bool "2 MB"
108 config ESPTOOLPY_FLASHSIZE_4MB
109         bool "4 MB"
110 config ESPTOOLPY_FLASHSIZE_8MB
111         bool "8 MB"
112 config ESPTOOLPY_FLASHSIZE_16MB
113         bool "16 MB"
114 endchoice
115
116 config ESPTOOLPY_FLASHSIZE
117         string
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
123
124 config ESPTOOLPY_FLASHSIZE_DETECT
125     bool "Detect flash size when flashing bootloader"
126     default y
127     help
128         If this option is set, 'make flash' targets will automatically detect
129         the flash size and update the bootloader image when flashing.
130
131 choice ESPTOOLPY_BEFORE
132     prompt "Before flashing"
133     default ESPTOOLPY_BEFORE_RESET
134     help
135         Configure whether esptool.py should reset the ESP32 before flashing.
136
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.
140
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.
145
146 config ESPTOOLPY_BEFORE_RESET
147     bool "Reset to bootloader"
148 config ESPTOOLPY_BEFORE_NORESET
149     bool "No reset"
150 config ESPTOOLPY_BEFORE_ESP32R0
151     bool "Reset with ESP32R0 Windows workaround"
152 endchoice
153
154 config ESPTOOLPY_BEFORE
155     string
156     default "default_reset" if ESPTOOLPY_BEFORE_RESET
157     default "no_reset" if ESPTOOLPY_BEFORE_NORESET
158     default "esp32r0" if ESPTOOLPY_BEFORE_ESP32R0
159
160 choice ESPTOOLPY_AFTER
161     prompt "After flashing"
162     default ESPTOOLPY_AFTER_RESET
163     help
164         Configure whether esptool.py should reset the ESP32 after flashing.
165
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.
169
170 config ESPTOOLPY_AFTER_RESET
171     bool "Reset after flashing"
172 config ESPTOOLPY_AFTER_NORESET
173     bool "Stay in bootloader"
174 endchoice
175
176 config ESPTOOLPY_AFTER
177     string
178     default "hard_reset" if ESPTOOLPY_AFTER_RESET
179     default "no_reset" if ESPTOOLPY_AFTER_NORESET
180
181 choice MONITOR_BAUD
182     prompt "'make monitor' baud rate"
183     default MONITOR_BAUD_115200B
184     help
185         Baud rate to use when running 'make monitor' to view serial output
186         from a running chip.
187
188         Can override by setting the MONITORBAUD environment variable.
189
190 config MONITOR_BAUD_9600B
191     bool "9600 bps"
192 config MONITOR_BAUD_57600B
193     bool "57600 bps"
194 config MONITOR_BAUD_115200B
195     bool "115200 bps"
196 config MONITOR_BAUD_230400B
197     bool "230400 bps"
198 config MONITOR_BAUD_921600B
199     bool "921600 bps"
200 config MONITOR_BAUD_2MB
201     bool "2 Mbps"
202 config MONITOR_BAUD_OTHER
203     bool "Custom baud rate"
204
205 endchoice
206
207 config MONITOR_BAUD_OTHER_VAL
208     int "Custom baud rate value" if MONITOR_BAUD_OTHER
209     default 115200
210
211 config MONITOR_BAUD
212     int
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
220
221 endmenu