Kconfig.projbuild 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. menu "Serial flasher config"
  2. config ESPTOOLPY_PORT
  3. string "Default serial port"
  4. depends on !IDF_CMAKE
  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. This value is ignored when using the CMake-based build system or idf.py.
  10. choice ESPTOOLPY_BAUD
  11. prompt "Default baud rate"
  12. depends on !IDF_CMAKE
  13. default ESPTOOLPY_BAUD_115200B
  14. help
  15. Default baud rate to use while communicating with the ESP chip. Can be overridden by
  16. setting the ESPBAUD variable.
  17. This value is ignored when using the CMake-based build system or idf.py.
  18. config ESPTOOLPY_BAUD_115200B
  19. bool "115200 baud"
  20. config ESPTOOLPY_BAUD_230400B
  21. bool "230400 baud"
  22. config ESPTOOLPY_BAUD_921600B
  23. bool "921600 baud"
  24. config ESPTOOLPY_BAUD_2MB
  25. bool "2Mbaud"
  26. config ESPTOOLPY_BAUD_OTHER
  27. bool "Other baud rate"
  28. endchoice
  29. config ESPTOOLPY_BAUD_OTHER_VAL
  30. int "Other baud rate value" if ESPTOOLPY_BAUD_OTHER
  31. default 115200
  32. config ESPTOOLPY_BAUD
  33. int
  34. depends on !IDF_CMAKE
  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. config ESPTOOLPY_COMPRESSED
  41. bool "Use compressed upload"
  42. depends on !IDF_CMAKE
  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. config ESPTOOLPY_WITH_STUB
  49. # Only real reason to disable this is when ESP32-S2 Secure Download Mode is set
  50. bool
  51. default "y"
  52. depends on !SECURE_ENABLE_SECURE_ROM_DL_MODE
  53. choice ESPTOOLPY_FLASHMODE
  54. prompt "Flash SPI mode"
  55. default ESPTOOLPY_FLASHMODE_DIO
  56. help
  57. Mode the flash chip is flashed in, as well as the default mode for the
  58. binary to run in.
  59. config ESPTOOLPY_FLASHMODE_QIO
  60. bool "QIO"
  61. config ESPTOOLPY_FLASHMODE_QOUT
  62. bool "QOUT"
  63. config ESPTOOLPY_FLASHMODE_DIO
  64. bool "DIO"
  65. config ESPTOOLPY_FLASHMODE_DOUT
  66. bool "DOUT"
  67. endchoice
  68. # Note: we use esptool.py to flash bootloader in
  69. # dio mode for QIO/QOUT, bootloader then upgrades
  70. # itself to quad mode during initialisation
  71. config ESPTOOLPY_FLASHMODE
  72. string
  73. default "dio" if ESPTOOLPY_FLASHMODE_QIO
  74. default "dio" if ESPTOOLPY_FLASHMODE_QOUT
  75. default "dio" if ESPTOOLPY_FLASHMODE_DIO
  76. default "dout" if ESPTOOLPY_FLASHMODE_DOUT
  77. choice ESPTOOLPY_FLASHFREQ
  78. prompt "Flash SPI speed"
  79. default ESPTOOLPY_FLASHFREQ_40M if IDF_TARGET_ESP32
  80. default ESPTOOLPY_FLASHFREQ_80M
  81. help
  82. The SPI flash frequency to be used.
  83. config ESPTOOLPY_FLASHFREQ_80M
  84. bool "80 MHz"
  85. config ESPTOOLPY_FLASHFREQ_40M
  86. bool "40 MHz"
  87. config ESPTOOLPY_FLASHFREQ_26M
  88. bool "26 MHz"
  89. config ESPTOOLPY_FLASHFREQ_20M
  90. bool "20 MHz"
  91. endchoice
  92. config ESPTOOLPY_FLASHFREQ
  93. string
  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
  98. choice ESPTOOLPY_FLASHSIZE
  99. prompt "Flash size"
  100. default ESPTOOLPY_FLASHSIZE_2MB
  101. help
  102. SPI flash size, in megabytes
  103. config ESPTOOLPY_FLASHSIZE_1MB
  104. bool "1 MB"
  105. config ESPTOOLPY_FLASHSIZE_2MB
  106. bool "2 MB"
  107. config ESPTOOLPY_FLASHSIZE_4MB
  108. bool "4 MB"
  109. config ESPTOOLPY_FLASHSIZE_8MB
  110. bool "8 MB"
  111. config ESPTOOLPY_FLASHSIZE_16MB
  112. bool "16 MB"
  113. endchoice
  114. config ESPTOOLPY_FLASHSIZE
  115. string
  116. default "1MB" if ESPTOOLPY_FLASHSIZE_1MB
  117. default "2MB" if ESPTOOLPY_FLASHSIZE_2MB
  118. default "4MB" if ESPTOOLPY_FLASHSIZE_4MB
  119. default "8MB" if ESPTOOLPY_FLASHSIZE_8MB
  120. default "16MB" if ESPTOOLPY_FLASHSIZE_16MB
  121. config ESPTOOLPY_FLASHSIZE_DETECT
  122. bool "Detect flash size when flashing bootloader"
  123. default y
  124. help
  125. If this option is set, flashing the project will automatically detect
  126. the flash size of the target chip and update the bootloader image
  127. before it is flashed.
  128. choice ESPTOOLPY_BEFORE
  129. prompt "Before flashing"
  130. default ESPTOOLPY_BEFORE_RESET
  131. help
  132. Configure whether esptool.py should reset the ESP32 before flashing.
  133. Automatic resetting depends on the RTS & DTR signals being
  134. wired from the serial port to the ESP32. Most USB development
  135. boards do this internally.
  136. config ESPTOOLPY_BEFORE_RESET
  137. bool "Reset to bootloader"
  138. config ESPTOOLPY_BEFORE_NORESET
  139. bool "No reset"
  140. endchoice
  141. config ESPTOOLPY_BEFORE
  142. string
  143. default "default_reset" if ESPTOOLPY_BEFORE_RESET
  144. default "no_reset" if ESPTOOLPY_BEFORE_NORESET
  145. choice ESPTOOLPY_AFTER
  146. prompt "After flashing"
  147. default ESPTOOLPY_AFTER_RESET
  148. help
  149. Configure whether esptool.py should reset the ESP32 after flashing.
  150. Automatic resetting depends on the RTS & DTR signals being
  151. wired from the serial port to the ESP32. Most USB development
  152. boards do this internally.
  153. config ESPTOOLPY_AFTER_RESET
  154. bool "Reset after flashing"
  155. config ESPTOOLPY_AFTER_NORESET
  156. bool "Stay in bootloader"
  157. endchoice
  158. config ESPTOOLPY_AFTER
  159. string
  160. default "hard_reset" if ESPTOOLPY_AFTER_RESET
  161. default "no_reset" if ESPTOOLPY_AFTER_NORESET
  162. choice ESPTOOLPY_MONITOR_BAUD
  163. prompt "'idf.py monitor' baud rate"
  164. default ESPTOOLPY_MONITOR_BAUD_115200B
  165. help
  166. Baud rate to use when running 'idf.py monitor' or 'make monitor'
  167. to view serial output from a running chip.
  168. Can override by setting the MONITORBAUD environment variable.
  169. config ESPTOOLPY_MONITOR_BAUD_9600B
  170. bool "9600 bps"
  171. config ESPTOOLPY_MONITOR_BAUD_57600B
  172. bool "57600 bps"
  173. config ESPTOOLPY_MONITOR_BAUD_115200B
  174. bool "115200 bps"
  175. config ESPTOOLPY_MONITOR_BAUD_230400B
  176. bool "230400 bps"
  177. config ESPTOOLPY_MONITOR_BAUD_921600B
  178. bool "921600 bps"
  179. config ESPTOOLPY_MONITOR_BAUD_2MB
  180. bool "2 Mbps"
  181. config ESPTOOLPY_MONITOR_BAUD_OTHER
  182. bool "Custom baud rate"
  183. endchoice
  184. config ESPTOOLPY_MONITOR_BAUD_OTHER_VAL
  185. int "Custom baud rate value" if ESPTOOLPY_MONITOR_BAUD_OTHER
  186. default 115200
  187. config ESPTOOLPY_MONITOR_BAUD
  188. int
  189. default 9600 if ESPTOOLPY_MONITOR_BAUD_9600B
  190. default 57600 if ESPTOOLPY_MONITOR_BAUD_57600B
  191. default 115200 if ESPTOOLPY_MONITOR_BAUD_115200B
  192. default 230400 if ESPTOOLPY_MONITOR_BAUD_230400B
  193. default 921600 if ESPTOOLPY_MONITOR_BAUD_921600B
  194. default 2000000 if ESPTOOLPY_MONITOR_BAUD_2MB
  195. default ESPTOOLPY_MONITOR_BAUD_OTHER_VAL if ESPTOOLPY_MONITOR_BAUD_OTHER
  196. endmenu