2016-08-17 11:08:22 -04:00
|
|
|
menu "Serial flasher config"
|
|
|
|
|
|
|
|
config ESPTOOLPY_PORT
|
2018-05-25 02:24:29 -04:00
|
|
|
string "Default serial port"
|
2018-05-06 22:01:16 -04:00
|
|
|
depends on !IDF_CMAKE
|
2018-05-25 02:24:29 -04:00
|
|
|
default "/dev/ttyUSB0"
|
|
|
|
help
|
2018-04-05 03:32:22 -04:00
|
|
|
The serial port that's connected to the ESP chip. This can be overridden by setting the ESPPORT
|
|
|
|
environment variable.
|
|
|
|
|
|
|
|
This value is ignored when using the CMake-based build system or idf.py.
|
2016-08-17 11:08:22 -04:00
|
|
|
|
|
|
|
choice ESPTOOLPY_BAUD
|
2018-04-05 03:32:22 -04:00
|
|
|
prompt "Default baud rate"
|
2018-05-06 22:01:16 -04:00
|
|
|
depends on !IDF_CMAKE
|
2018-04-05 03:32:22 -04:00
|
|
|
default ESPTOOLPY_BAUD_115200B
|
|
|
|
help
|
|
|
|
Default baud rate to use while communicating with the ESP chip. Can be overridden by
|
|
|
|
setting the ESPBAUD variable.
|
|
|
|
|
|
|
|
This value is ignored when using the CMake-based build system or idf.py.
|
2016-08-17 11:08:22 -04:00
|
|
|
|
|
|
|
config ESPTOOLPY_BAUD_115200B
|
2018-05-25 02:24:29 -04:00
|
|
|
bool "115200 baud"
|
2016-08-17 11:08:22 -04:00
|
|
|
config ESPTOOLPY_BAUD_230400B
|
2018-05-25 02:24:29 -04:00
|
|
|
bool "230400 baud"
|
2016-08-17 11:08:22 -04:00
|
|
|
config ESPTOOLPY_BAUD_921600B
|
2018-05-25 02:24:29 -04:00
|
|
|
bool "921600 baud"
|
2016-08-17 11:08:22 -04:00
|
|
|
config ESPTOOLPY_BAUD_2MB
|
2018-05-25 02:24:29 -04:00
|
|
|
bool "2Mbaud"
|
2016-08-17 11:08:22 -04:00
|
|
|
config ESPTOOLPY_BAUD_OTHER
|
|
|
|
bool "Other baud rate"
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config ESPTOOLPY_BAUD_OTHER_VAL
|
2018-05-25 02:24:29 -04:00
|
|
|
int "Other baud rate value" if ESPTOOLPY_BAUD_OTHER
|
|
|
|
default 115200
|
2016-08-17 11:08:22 -04:00
|
|
|
|
|
|
|
config ESPTOOLPY_BAUD
|
2018-05-25 02:24:29 -04:00
|
|
|
int
|
2018-05-06 22:01:16 -04:00
|
|
|
depends on !IDF_CMAKE
|
2018-05-25 02:24:29 -04:00
|
|
|
default 115200 if ESPTOOLPY_BAUD_115200B
|
|
|
|
default 230400 if ESPTOOLPY_BAUD_230400B
|
|
|
|
default 921600 if ESPTOOLPY_BAUD_921600B
|
|
|
|
default 2000000 if ESPTOOLPY_BAUD_2MB
|
|
|
|
default ESPTOOLPY_BAUD_OTHER_VAL if ESPTOOLPY_BAUD_OTHER
|
2016-08-17 11:08:22 -04:00
|
|
|
|
|
|
|
config ESPTOOLPY_COMPRESSED
|
2018-05-25 02:24:29 -04:00
|
|
|
bool "Use compressed upload"
|
2018-05-06 22:01:16 -04:00
|
|
|
depends on !IDF_CMAKE
|
2018-05-25 02:24:29 -04:00
|
|
|
default "y"
|
|
|
|
help
|
|
|
|
The flasher tool can send data compressed using zlib, letting the ROM on the ESP chip
|
|
|
|
decompress it on the fly before flashing it. For most payloads, this should result in a
|
|
|
|
speed increase.
|
2016-08-17 11:08:22 -04:00
|
|
|
|
2017-01-29 22:29:50 -05:00
|
|
|
choice FLASHMODE
|
2018-05-25 02:24:29 -04:00
|
|
|
prompt "Flash SPI mode"
|
|
|
|
default FLASHMODE_DIO
|
|
|
|
help
|
|
|
|
Mode the flash chip is flashed in, as well as the default mode for the
|
|
|
|
binary to run in.
|
2016-09-01 03:47:09 -04:00
|
|
|
|
2017-01-29 22:29:50 -05:00
|
|
|
config FLASHMODE_QIO
|
2018-05-25 02:24:29 -04:00
|
|
|
bool "QIO"
|
2017-01-29 22:29:50 -05:00
|
|
|
config FLASHMODE_QOUT
|
2018-05-25 02:24:29 -04:00
|
|
|
bool "QOUT"
|
2017-01-29 22:29:50 -05:00
|
|
|
config FLASHMODE_DIO
|
2018-05-25 02:24:29 -04:00
|
|
|
bool "DIO"
|
2017-01-29 22:29:50 -05:00
|
|
|
config FLASHMODE_DOUT
|
2018-05-25 02:24:29 -04:00
|
|
|
bool "DOUT"
|
2016-09-01 03:47:09 -04:00
|
|
|
endchoice
|
|
|
|
|
2017-01-29 22:29:50 -05:00
|
|
|
# Note: we use esptool.py to flash bootloader in
|
|
|
|
# dio mode for QIO/QOUT, bootloader then upgrades
|
|
|
|
# itself to quad mode during initialisation
|
2016-09-01 03:47:09 -04:00
|
|
|
config ESPTOOLPY_FLASHMODE
|
2018-05-25 02:24:29 -04:00
|
|
|
string
|
|
|
|
default "dio" if FLASHMODE_QIO
|
|
|
|
default "dio" if FLASHMODE_QOUT
|
|
|
|
default "dio" if FLASHMODE_DIO
|
|
|
|
default "dout" if FLASHMODE_DOUT
|
2016-09-02 00:29:01 -04:00
|
|
|
|
|
|
|
choice ESPTOOLPY_FLASHFREQ
|
2018-05-25 02:24:29 -04:00
|
|
|
prompt "Flash SPI speed"
|
|
|
|
default ESPTOOLPY_FLASHFREQ_40M
|
|
|
|
help
|
|
|
|
The SPI flash frequency to be used.
|
2016-09-02 00:29:01 -04:00
|
|
|
|
|
|
|
config ESPTOOLPY_FLASHFREQ_80M
|
2018-05-25 02:24:29 -04:00
|
|
|
bool "80 MHz"
|
2016-09-02 00:29:01 -04:00
|
|
|
config ESPTOOLPY_FLASHFREQ_40M
|
2018-05-25 02:24:29 -04:00
|
|
|
bool "40 MHz"
|
2016-09-02 00:29:01 -04:00
|
|
|
config ESPTOOLPY_FLASHFREQ_26M
|
2018-05-25 02:24:29 -04:00
|
|
|
bool "26 MHz"
|
2016-09-02 00:29:01 -04:00
|
|
|
config ESPTOOLPY_FLASHFREQ_20M
|
2018-05-25 02:24:29 -04:00
|
|
|
bool "20 MHz"
|
2016-09-02 00:29:01 -04:00
|
|
|
endchoice
|
|
|
|
|
|
|
|
config ESPTOOLPY_FLASHFREQ
|
2018-05-25 02:24:29 -04:00
|
|
|
string
|
|
|
|
default "80m" if ESPTOOLPY_FLASHFREQ_80M
|
|
|
|
default "40m" if ESPTOOLPY_FLASHFREQ_40M
|
|
|
|
default "26m" if ESPTOOLPY_FLASHFREQ_26M
|
|
|
|
default "20m" if ESPTOOLPY_FLASHFREQ_20M
|
2016-09-02 00:29:01 -04:00
|
|
|
|
2016-10-18 07:03:59 -04:00
|
|
|
|
|
|
|
choice ESPTOOLPY_FLASHSIZE
|
2018-05-25 02:24:29 -04:00
|
|
|
prompt "Flash size"
|
|
|
|
default ESPTOOLPY_FLASHSIZE_2MB
|
|
|
|
help
|
|
|
|
SPI flash size, in megabytes
|
2016-10-18 07:03:59 -04:00
|
|
|
|
|
|
|
config ESPTOOLPY_FLASHSIZE_1MB
|
2018-05-25 02:24:29 -04:00
|
|
|
bool "1 MB"
|
2016-10-18 07:03:59 -04:00
|
|
|
config ESPTOOLPY_FLASHSIZE_2MB
|
2018-05-25 02:24:29 -04:00
|
|
|
bool "2 MB"
|
2016-10-18 07:03:59 -04:00
|
|
|
config ESPTOOLPY_FLASHSIZE_4MB
|
2018-05-25 02:24:29 -04:00
|
|
|
bool "4 MB"
|
2016-10-18 07:03:59 -04:00
|
|
|
config ESPTOOLPY_FLASHSIZE_8MB
|
2018-05-25 02:24:29 -04:00
|
|
|
bool "8 MB"
|
2016-10-18 07:03:59 -04:00
|
|
|
config ESPTOOLPY_FLASHSIZE_16MB
|
2018-05-25 02:24:29 -04:00
|
|
|
bool "16 MB"
|
2016-10-18 07:03:59 -04:00
|
|
|
endchoice
|
|
|
|
|
|
|
|
config ESPTOOLPY_FLASHSIZE
|
2018-05-25 02:24:29 -04:00
|
|
|
string
|
|
|
|
default "1MB" if ESPTOOLPY_FLASHSIZE_1MB
|
|
|
|
default "2MB" if ESPTOOLPY_FLASHSIZE_2MB
|
|
|
|
default "4MB" if ESPTOOLPY_FLASHSIZE_4MB
|
|
|
|
default "8MB" if ESPTOOLPY_FLASHSIZE_8MB
|
|
|
|
default "16MB" if ESPTOOLPY_FLASHSIZE_16MB
|
2016-10-18 07:03:59 -04:00
|
|
|
|
2016-12-20 02:02:47 -05:00
|
|
|
config ESPTOOLPY_FLASHSIZE_DETECT
|
|
|
|
bool "Detect flash size when flashing bootloader"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
If this option is set, 'make flash' targets will automatically detect
|
|
|
|
the flash size and update the bootloader image when flashing.
|
|
|
|
|
|
|
|
choice ESPTOOLPY_BEFORE
|
|
|
|
prompt "Before flashing"
|
|
|
|
default ESPTOOLPY_BEFORE_RESET
|
|
|
|
help
|
|
|
|
Configure whether esptool.py should reset the ESP32 before flashing.
|
|
|
|
|
|
|
|
Automatic resetting depends on the RTS & DTR signals being
|
|
|
|
wired from the serial port to the ESP32. Most USB development
|
|
|
|
boards do this internally.
|
|
|
|
|
|
|
|
config ESPTOOLPY_BEFORE_RESET
|
|
|
|
bool "Reset to bootloader"
|
|
|
|
config ESPTOOLPY_BEFORE_NORESET
|
|
|
|
bool "No reset"
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config ESPTOOLPY_BEFORE
|
|
|
|
string
|
|
|
|
default "default_reset" if ESPTOOLPY_BEFORE_RESET
|
|
|
|
default "no_reset" if ESPTOOLPY_BEFORE_NORESET
|
|
|
|
|
|
|
|
choice ESPTOOLPY_AFTER
|
|
|
|
prompt "After flashing"
|
|
|
|
default ESPTOOLPY_AFTER_RESET
|
|
|
|
help
|
|
|
|
Configure whether esptool.py should reset the ESP32 after flashing.
|
|
|
|
|
|
|
|
Automatic resetting depends on the RTS & DTR signals being
|
|
|
|
wired from the serial port to the ESP32. Most USB development
|
|
|
|
boards do this internally.
|
|
|
|
|
|
|
|
config ESPTOOLPY_AFTER_RESET
|
|
|
|
bool "Reset after flashing"
|
|
|
|
config ESPTOOLPY_AFTER_NORESET
|
|
|
|
bool "Stay in bootloader"
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config ESPTOOLPY_AFTER
|
|
|
|
string
|
|
|
|
default "hard_reset" if ESPTOOLPY_AFTER_RESET
|
|
|
|
default "no_reset" if ESPTOOLPY_AFTER_NORESET
|
|
|
|
|
2016-12-29 20:19:02 -05:00
|
|
|
choice MONITOR_BAUD
|
|
|
|
prompt "'make monitor' baud rate"
|
|
|
|
default MONITOR_BAUD_115200B
|
|
|
|
help
|
|
|
|
Baud rate to use when running 'make monitor' to view serial output
|
|
|
|
from a running chip.
|
|
|
|
|
|
|
|
Can override by setting the MONITORBAUD environment variable.
|
|
|
|
|
|
|
|
config MONITOR_BAUD_9600B
|
|
|
|
bool "9600 bps"
|
|
|
|
config MONITOR_BAUD_57600B
|
|
|
|
bool "57600 bps"
|
|
|
|
config MONITOR_BAUD_115200B
|
|
|
|
bool "115200 bps"
|
|
|
|
config MONITOR_BAUD_230400B
|
|
|
|
bool "230400 bps"
|
|
|
|
config MONITOR_BAUD_921600B
|
|
|
|
bool "921600 bps"
|
|
|
|
config MONITOR_BAUD_2MB
|
|
|
|
bool "2 Mbps"
|
|
|
|
config MONITOR_BAUD_OTHER
|
|
|
|
bool "Custom baud rate"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config MONITOR_BAUD_OTHER_VAL
|
|
|
|
int "Custom baud rate value" if MONITOR_BAUD_OTHER
|
|
|
|
default 115200
|
|
|
|
|
|
|
|
config MONITOR_BAUD
|
|
|
|
int
|
|
|
|
default 9600 if MONITOR_BAUD_9600B
|
|
|
|
default 57600 if MONITOR_BAUD_57600B
|
|
|
|
default 115200 if MONITOR_BAUD_115200B
|
|
|
|
default 230400 if MONITOR_BAUD_230400B
|
|
|
|
default 921600 if MONITOR_BAUD_921600B
|
|
|
|
default 2000000 if MONITOR_BAUD_2MB
|
|
|
|
default MONITOR_BAUD_OTHER_VAL if MONITOR_BAUD_OTHER
|
|
|
|
|
2016-08-17 11:08:22 -04:00
|
|
|
endmenu
|