2016-08-17 11:08:22 -04:00
|
|
|
menu "Serial flasher config"
|
|
|
|
|
2019-01-25 11:10:53 -05:00
|
|
|
config ESPTOOLPY_PORT
|
|
|
|
string "Default serial port"
|
|
|
|
depends on !IDF_CMAKE
|
|
|
|
default "/dev/ttyUSB0"
|
|
|
|
help
|
|
|
|
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.
|
|
|
|
|
|
|
|
choice ESPTOOLPY_BAUD
|
|
|
|
prompt "Default baud rate"
|
|
|
|
depends on !IDF_CMAKE
|
|
|
|
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.
|
|
|
|
|
|
|
|
config ESPTOOLPY_BAUD_115200B
|
|
|
|
bool "115200 baud"
|
|
|
|
config ESPTOOLPY_BAUD_230400B
|
|
|
|
bool "230400 baud"
|
|
|
|
config ESPTOOLPY_BAUD_921600B
|
|
|
|
bool "921600 baud"
|
|
|
|
config ESPTOOLPY_BAUD_2MB
|
|
|
|
bool "2Mbaud"
|
|
|
|
config ESPTOOLPY_BAUD_OTHER
|
|
|
|
bool "Other baud rate"
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config ESPTOOLPY_BAUD_OTHER_VAL
|
|
|
|
int "Other baud rate value" if ESPTOOLPY_BAUD_OTHER
|
|
|
|
default 115200
|
|
|
|
|
|
|
|
config ESPTOOLPY_BAUD
|
|
|
|
int
|
|
|
|
depends on !IDF_CMAKE
|
|
|
|
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
|
|
|
|
|
|
|
|
config ESPTOOLPY_COMPRESSED
|
|
|
|
bool "Use compressed upload"
|
|
|
|
depends on !IDF_CMAKE
|
|
|
|
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.
|
|
|
|
|
2020-08-20 21:28:05 -04:00
|
|
|
config ESPTOOLPY_NO_STUB
|
|
|
|
bool "Disable download stub"
|
|
|
|
default "n"
|
|
|
|
help
|
|
|
|
The flasher tool sends a precompiled download stub first by default. That stub allows things
|
|
|
|
like compressed downloads and more. Usually you should not need to disable that feature
|
2020-04-25 02:44:27 -04:00
|
|
|
|
2021-04-15 05:13:48 -04:00
|
|
|
config ESPTOOLPY_OCT_FLASH
|
|
|
|
depends on IDF_TARGET_ESP32S3
|
|
|
|
bool "Enable Octal Flash"
|
|
|
|
default n
|
|
|
|
|
2019-05-09 07:39:30 -04:00
|
|
|
choice ESPTOOLPY_FLASHMODE
|
2019-01-25 11:10:53 -05:00
|
|
|
prompt "Flash SPI mode"
|
2019-05-09 07:39:30 -04:00
|
|
|
default ESPTOOLPY_FLASHMODE_DIO
|
2021-09-01 03:58:15 -04:00
|
|
|
default ESPTOOLPY_FLASHMODE_OPI if ESPTOOLPY_OCT_FLASH
|
2019-01-25 11:10:53 -05:00
|
|
|
help
|
|
|
|
Mode the flash chip is flashed in, as well as the default mode for the
|
|
|
|
binary to run in.
|
|
|
|
|
2019-05-09 07:39:30 -04:00
|
|
|
config ESPTOOLPY_FLASHMODE_QIO
|
2021-09-01 03:58:15 -04:00
|
|
|
depends on !ESPTOOLPY_OCT_FLASH
|
2019-01-25 11:10:53 -05:00
|
|
|
bool "QIO"
|
2019-05-09 07:39:30 -04:00
|
|
|
config ESPTOOLPY_FLASHMODE_QOUT
|
2021-09-01 03:58:15 -04:00
|
|
|
depends on !ESPTOOLPY_OCT_FLASH
|
2019-01-25 11:10:53 -05:00
|
|
|
bool "QOUT"
|
2019-05-09 07:39:30 -04:00
|
|
|
config ESPTOOLPY_FLASHMODE_DIO
|
2021-09-01 03:58:15 -04:00
|
|
|
depends on !ESPTOOLPY_OCT_FLASH
|
2019-01-25 11:10:53 -05:00
|
|
|
bool "DIO"
|
2019-05-09 07:39:30 -04:00
|
|
|
config ESPTOOLPY_FLASHMODE_DOUT
|
2021-09-01 03:58:15 -04:00
|
|
|
depends on !ESPTOOLPY_OCT_FLASH
|
2019-01-25 11:10:53 -05:00
|
|
|
bool "DOUT"
|
2021-09-01 03:58:15 -04:00
|
|
|
config ESPTOOLPY_FLASHMODE_OPI
|
|
|
|
depends on ESPTOOLPY_OCT_FLASH
|
|
|
|
bool "OPI"
|
|
|
|
endchoice
|
|
|
|
|
2021-09-09 03:34:42 -04:00
|
|
|
choice ESPTOOLPY_FLASH_SAMPLE_MODE
|
|
|
|
prompt "Flash Sampling Mode"
|
|
|
|
default ESPTOOLPY_FLASH_SAMPLE_MODE_DTR if ESPTOOLPY_OCT_FLASH
|
|
|
|
default ESPTOOLPY_FLASH_SAMPLE_MODE_STR if !ESPTOOLPY_OCT_FLASH
|
|
|
|
|
|
|
|
config ESPTOOLPY_FLASH_SAMPLE_MODE_STR
|
|
|
|
bool "STR Mode"
|
|
|
|
config ESPTOOLPY_FLASH_SAMPLE_MODE_DTR
|
|
|
|
depends on ESPTOOLPY_OCT_FLASH
|
|
|
|
bool "DTR Mode"
|
2019-01-25 11:10:53 -05:00
|
|
|
endchoice
|
|
|
|
|
|
|
|
# Note: we use esptool.py to flash bootloader in
|
|
|
|
# dio mode for QIO/QOUT, bootloader then upgrades
|
|
|
|
# itself to quad mode during initialisation
|
|
|
|
config ESPTOOLPY_FLASHMODE
|
|
|
|
string
|
2019-05-09 07:39:30 -04:00
|
|
|
default "dio" if ESPTOOLPY_FLASHMODE_QIO
|
|
|
|
default "dio" if ESPTOOLPY_FLASHMODE_QOUT
|
|
|
|
default "dio" if ESPTOOLPY_FLASHMODE_DIO
|
|
|
|
default "dout" if ESPTOOLPY_FLASHMODE_DOUT
|
2021-09-01 03:58:15 -04:00
|
|
|
# The 1st and 2nd bootloader doesn't support opi mode,
|
|
|
|
# using fastrd instead. For now the ESPTOOL doesn't support
|
|
|
|
# fasted (see ESPTOOL-274), using dout instead. In ROM the flash mode
|
|
|
|
# information get from efuse, so don't care this dout choice.
|
|
|
|
default "dout" if ESPTOOLPY_FLASHMODE_OPI
|
2019-01-25 11:10:53 -05:00
|
|
|
|
2023-06-24 08:38:53 -04:00
|
|
|
config ESPTOOLPY_S3_STR
|
|
|
|
bool
|
|
|
|
default y if IDF_TARGET_ESP32S3 && ESPTOOLPY_FLASH_SAMPLE_MODE_STR
|
|
|
|
|
2019-01-25 11:10:53 -05:00
|
|
|
choice ESPTOOLPY_FLASHFREQ
|
|
|
|
prompt "Flash SPI speed"
|
2021-06-08 04:11:35 -04:00
|
|
|
default ESPTOOLPY_FLASHFREQ_40M if IDF_TARGET_ESP32 || IDF_TARGET_ESP32H2
|
2020-05-14 00:44:17 -04:00
|
|
|
default ESPTOOLPY_FLASHFREQ_80M
|
2019-01-25 11:10:53 -05:00
|
|
|
help
|
|
|
|
The SPI flash frequency to be used.
|
|
|
|
|
2021-08-04 23:40:22 -04:00
|
|
|
config ESPTOOLPY_FLASHFREQ_120M
|
2023-06-24 08:38:53 -04:00
|
|
|
bool "120 MHz (READ DOCS FIRST)"
|
|
|
|
depends on ESPTOOLPY_S3_STR && (SPI_FLASH_HPM_ON || ESPTOOLPY_OCT_FLASH)
|
|
|
|
help
|
|
|
|
- Optional feature for QSPI Flash. Read docs and enable `CONFIG_SPI_FLASH_HPM_ENA` first!
|
|
|
|
|
2019-01-25 11:10:53 -05:00
|
|
|
config ESPTOOLPY_FLASHFREQ_80M
|
|
|
|
bool "80 MHz"
|
|
|
|
config ESPTOOLPY_FLASHFREQ_40M
|
|
|
|
bool "40 MHz"
|
|
|
|
config ESPTOOLPY_FLASHFREQ_26M
|
|
|
|
bool "26 MHz"
|
2021-04-15 05:13:48 -04:00
|
|
|
depends on IDF_TARGET_ESP32 || IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C3
|
2019-01-25 11:10:53 -05:00
|
|
|
config ESPTOOLPY_FLASHFREQ_20M
|
|
|
|
bool "20 MHz"
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config ESPTOOLPY_FLASHFREQ
|
|
|
|
string
|
2021-08-04 23:40:22 -04:00
|
|
|
# On some of the ESP chips, max boot frequency would be equal to (or even lower than) 80m.
|
|
|
|
# We currently define this to `80m`.
|
|
|
|
default "80m" if ESPTOOLPY_FLASHFREQ_120M
|
2022-04-08 06:48:45 -04:00
|
|
|
# Temporarily support h2, because not consistent with esptool, will be cleaned up in IDF-4474
|
|
|
|
default "80m" if ESPTOOLPY_FLASHFREQ_80M && !IDF_TARGET_ESP32H2
|
|
|
|
default "40m" if ESPTOOLPY_FLASHFREQ_40M && !IDF_TARGET_ESP32H2
|
|
|
|
default "26m" if ESPTOOLPY_FLASHFREQ_26M && !IDF_TARGET_ESP32H2
|
|
|
|
default "20m" if ESPTOOLPY_FLASHFREQ_20M && !IDF_TARGET_ESP32H2
|
|
|
|
default "48m" if ESPTOOLPY_FLASHFREQ_80M && IDF_TARGET_ESP32H2
|
|
|
|
default "24m" if ESPTOOLPY_FLASHFREQ_40M && IDF_TARGET_ESP32H2
|
|
|
|
default "12m" if ESPTOOLPY_FLASHFREQ_20M && IDF_TARGET_ESP32H2
|
2019-01-25 11:10:53 -05:00
|
|
|
|
|
|
|
|
|
|
|
choice ESPTOOLPY_FLASHSIZE
|
|
|
|
prompt "Flash size"
|
|
|
|
default ESPTOOLPY_FLASHSIZE_2MB
|
|
|
|
help
|
|
|
|
SPI flash size, in megabytes
|
|
|
|
|
|
|
|
config ESPTOOLPY_FLASHSIZE_1MB
|
|
|
|
bool "1 MB"
|
|
|
|
config ESPTOOLPY_FLASHSIZE_2MB
|
|
|
|
bool "2 MB"
|
|
|
|
config ESPTOOLPY_FLASHSIZE_4MB
|
|
|
|
bool "4 MB"
|
|
|
|
config ESPTOOLPY_FLASHSIZE_8MB
|
|
|
|
bool "8 MB"
|
|
|
|
config ESPTOOLPY_FLASHSIZE_16MB
|
|
|
|
bool "16 MB"
|
2021-10-13 16:37:10 -04:00
|
|
|
config ESPTOOLPY_FLASHSIZE_32MB
|
|
|
|
bool "32 MB"
|
|
|
|
config ESPTOOLPY_FLASHSIZE_64MB
|
|
|
|
bool "64 MB"
|
|
|
|
config ESPTOOLPY_FLASHSIZE_128MB
|
|
|
|
bool "128 MB"
|
2019-01-25 11:10:53 -05:00
|
|
|
endchoice
|
|
|
|
|
|
|
|
config ESPTOOLPY_FLASHSIZE
|
|
|
|
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
|
2021-10-13 16:37:10 -04:00
|
|
|
default "32MB" if ESPTOOLPY_FLASHSIZE_32MB
|
|
|
|
default "64MB" if ESPTOOLPY_FLASHSIZE_64MB
|
|
|
|
default "128MB" if ESPTOOLPY_FLASHSIZE_128MB
|
2019-01-25 11:10:53 -05:00
|
|
|
|
|
|
|
config ESPTOOLPY_FLASHSIZE_DETECT
|
|
|
|
bool "Detect flash size when flashing bootloader"
|
|
|
|
default y
|
|
|
|
help
|
2019-06-22 21:54:31 -04:00
|
|
|
If this option is set, flashing the project will automatically detect
|
|
|
|
the flash size of the target chip and update the bootloader image
|
|
|
|
before it is flashed.
|
2019-01-25 11:10:53 -05:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-05-09 07:39:30 -04:00
|
|
|
choice ESPTOOLPY_MONITOR_BAUD
|
2019-06-22 21:54:31 -04:00
|
|
|
prompt "'idf.py monitor' baud rate"
|
2019-05-09 07:39:30 -04:00
|
|
|
default ESPTOOLPY_MONITOR_BAUD_115200B
|
2019-01-25 11:10:53 -05:00
|
|
|
help
|
2019-06-22 21:54:31 -04:00
|
|
|
Baud rate to use when running 'idf.py monitor' or 'make monitor'
|
|
|
|
to view serial output from a running chip.
|
2019-01-25 11:10:53 -05:00
|
|
|
|
2020-06-23 19:27:26 -04:00
|
|
|
If "Same as UART Console baud rate" is chosen then the value will
|
|
|
|
follow the "UART Console baud rate" config item.
|
|
|
|
|
2019-01-25 11:10:53 -05:00
|
|
|
Can override by setting the MONITORBAUD environment variable.
|
|
|
|
|
2020-06-23 19:27:26 -04:00
|
|
|
config ESPTOOLPY_MONITOR_BAUD_CONSOLE
|
|
|
|
bool "Same as UART console baud rate"
|
2019-05-09 07:39:30 -04:00
|
|
|
config ESPTOOLPY_MONITOR_BAUD_9600B
|
2019-01-25 11:10:53 -05:00
|
|
|
bool "9600 bps"
|
2019-05-09 07:39:30 -04:00
|
|
|
config ESPTOOLPY_MONITOR_BAUD_57600B
|
2019-01-25 11:10:53 -05:00
|
|
|
bool "57600 bps"
|
2019-05-09 07:39:30 -04:00
|
|
|
config ESPTOOLPY_MONITOR_BAUD_115200B
|
2019-01-25 11:10:53 -05:00
|
|
|
bool "115200 bps"
|
2019-05-09 07:39:30 -04:00
|
|
|
config ESPTOOLPY_MONITOR_BAUD_230400B
|
2019-01-25 11:10:53 -05:00
|
|
|
bool "230400 bps"
|
2019-05-09 07:39:30 -04:00
|
|
|
config ESPTOOLPY_MONITOR_BAUD_921600B
|
2019-01-25 11:10:53 -05:00
|
|
|
bool "921600 bps"
|
2019-05-09 07:39:30 -04:00
|
|
|
config ESPTOOLPY_MONITOR_BAUD_2MB
|
2019-01-25 11:10:53 -05:00
|
|
|
bool "2 Mbps"
|
2019-05-09 07:39:30 -04:00
|
|
|
config ESPTOOLPY_MONITOR_BAUD_OTHER
|
2019-01-25 11:10:53 -05:00
|
|
|
bool "Custom baud rate"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2019-05-09 07:39:30 -04:00
|
|
|
config ESPTOOLPY_MONITOR_BAUD_OTHER_VAL
|
|
|
|
int "Custom baud rate value" if ESPTOOLPY_MONITOR_BAUD_OTHER
|
2019-01-25 11:10:53 -05:00
|
|
|
default 115200
|
|
|
|
|
2019-05-09 07:39:30 -04:00
|
|
|
config ESPTOOLPY_MONITOR_BAUD
|
2019-01-25 11:10:53 -05:00
|
|
|
int
|
2020-06-23 19:27:26 -04:00
|
|
|
default ESP_CONSOLE_UART_BAUDRATE if ESPTOOLPY_MONITOR_BAUD_CONSOLE
|
2019-05-09 07:39:30 -04:00
|
|
|
default 9600 if ESPTOOLPY_MONITOR_BAUD_9600B
|
|
|
|
default 57600 if ESPTOOLPY_MONITOR_BAUD_57600B
|
|
|
|
default 115200 if ESPTOOLPY_MONITOR_BAUD_115200B
|
|
|
|
default 230400 if ESPTOOLPY_MONITOR_BAUD_230400B
|
|
|
|
default 921600 if ESPTOOLPY_MONITOR_BAUD_921600B
|
|
|
|
default 2000000 if ESPTOOLPY_MONITOR_BAUD_2MB
|
|
|
|
default ESPTOOLPY_MONITOR_BAUD_OTHER_VAL if ESPTOOLPY_MONITOR_BAUD_OTHER
|
2016-12-29 20:19:02 -05:00
|
|
|
|
2016-08-17 11:08:22 -04:00
|
|
|
endmenu
|