Kconfig.projbuild 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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_NO_STUB
  49. bool "Disable download stub"
  50. default "n"
  51. help
  52. The flasher tool sends a precompiled download stub first by default. That stub allows things
  53. like compressed downloads and more. Usually you should not need to disable that feature
  54. choice ESPTOOLPY_FLASHMODE
  55. prompt "Flash SPI mode"
  56. default ESPTOOLPY_FLASHMODE_DIO
  57. help
  58. Mode the flash chip is flashed in, as well as the default mode for the
  59. binary to run in.
  60. config ESPTOOLPY_FLASHMODE_QIO
  61. bool "QIO"
  62. config ESPTOOLPY_FLASHMODE_QOUT
  63. bool "QOUT"
  64. config ESPTOOLPY_FLASHMODE_DIO
  65. bool "DIO"
  66. config ESPTOOLPY_FLASHMODE_DOUT
  67. bool "DOUT"
  68. endchoice
  69. # Note: we use esptool.py to flash bootloader in
  70. # dio mode for QIO/QOUT, bootloader then upgrades
  71. # itself to quad mode during initialisation
  72. config ESPTOOLPY_FLASHMODE
  73. string
  74. default "dio" if ESPTOOLPY_FLASHMODE_QIO
  75. default "dio" if ESPTOOLPY_FLASHMODE_QOUT
  76. default "dio" if ESPTOOLPY_FLASHMODE_DIO
  77. default "dout" if ESPTOOLPY_FLASHMODE_DOUT
  78. choice ESPTOOLPY_FLASHFREQ
  79. prompt "Flash SPI speed"
  80. default ESPTOOLPY_FLASHFREQ_40M if IDF_TARGET_ESP32
  81. default ESPTOOLPY_FLASHFREQ_80M
  82. help
  83. The SPI flash frequency to be used.
  84. config ESPTOOLPY_FLASHFREQ_80M
  85. bool "80 MHz"
  86. config ESPTOOLPY_FLASHFREQ_40M
  87. bool "40 MHz"
  88. config ESPTOOLPY_FLASHFREQ_26M
  89. bool "26 MHz"
  90. config ESPTOOLPY_FLASHFREQ_20M
  91. bool "20 MHz"
  92. endchoice
  93. config ESPTOOLPY_FLASHFREQ
  94. string
  95. default "80m" if ESPTOOLPY_FLASHFREQ_80M
  96. default "40m" if ESPTOOLPY_FLASHFREQ_40M
  97. default "26m" if ESPTOOLPY_FLASHFREQ_26M
  98. default "20m" if ESPTOOLPY_FLASHFREQ_20M
  99. choice ESPTOOLPY_FLASHSIZE
  100. prompt "Flash size"
  101. default ESPTOOLPY_FLASHSIZE_2MB
  102. help
  103. SPI flash size, in megabytes
  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. config ESPTOOLPY_FLASHSIZE
  116. string
  117. default "1MB" if ESPTOOLPY_FLASHSIZE_1MB
  118. default "2MB" if ESPTOOLPY_FLASHSIZE_2MB
  119. default "4MB" if ESPTOOLPY_FLASHSIZE_4MB
  120. default "8MB" if ESPTOOLPY_FLASHSIZE_8MB
  121. default "16MB" if ESPTOOLPY_FLASHSIZE_16MB
  122. config ESPTOOLPY_FLASHSIZE_DETECT
  123. bool "Detect flash size when flashing bootloader"
  124. default y
  125. help
  126. If this option is set, flashing the project will automatically detect
  127. the flash size of the target chip and update the bootloader image
  128. before it is flashed.
  129. choice ESPTOOLPY_BEFORE
  130. prompt "Before flashing"
  131. default ESPTOOLPY_BEFORE_RESET
  132. help
  133. Configure whether esptool.py should reset the ESP32 before flashing.
  134. Automatic resetting depends on the RTS & DTR signals being
  135. wired from the serial port to the ESP32. Most USB development
  136. boards do this internally.
  137. config ESPTOOLPY_BEFORE_RESET
  138. bool "Reset to bootloader"
  139. config ESPTOOLPY_BEFORE_NORESET
  140. bool "No reset"
  141. endchoice
  142. config ESPTOOLPY_BEFORE
  143. string
  144. default "default_reset" if ESPTOOLPY_BEFORE_RESET
  145. default "no_reset" if ESPTOOLPY_BEFORE_NORESET
  146. choice ESPTOOLPY_AFTER
  147. prompt "After flashing"
  148. default ESPTOOLPY_AFTER_RESET
  149. help
  150. Configure whether esptool.py should reset the ESP32 after flashing.
  151. Automatic resetting depends on the RTS & DTR signals being
  152. wired from the serial port to the ESP32. Most USB development
  153. boards do this internally.
  154. config ESPTOOLPY_AFTER_RESET
  155. bool "Reset after flashing"
  156. config ESPTOOLPY_AFTER_NORESET
  157. bool "Stay in bootloader"
  158. endchoice
  159. config ESPTOOLPY_AFTER
  160. string
  161. default "hard_reset" if ESPTOOLPY_AFTER_RESET
  162. default "no_reset" if ESPTOOLPY_AFTER_NORESET
  163. choice ESPTOOLPY_MONITOR_BAUD
  164. prompt "'idf.py monitor' baud rate"
  165. default ESPTOOLPY_MONITOR_BAUD_115200B
  166. help
  167. Baud rate to use when running 'idf.py monitor' or 'make monitor'
  168. to view serial output from a running chip.
  169. If "Same as UART Console baud rate" is chosen then the value will
  170. follow the "UART Console baud rate" config item.
  171. Can override by setting the MONITORBAUD environment variable.
  172. config ESPTOOLPY_MONITOR_BAUD_CONSOLE
  173. bool "Same as UART console baud rate"
  174. config ESPTOOLPY_MONITOR_BAUD_9600B
  175. bool "9600 bps"
  176. config ESPTOOLPY_MONITOR_BAUD_57600B
  177. bool "57600 bps"
  178. config ESPTOOLPY_MONITOR_BAUD_115200B
  179. bool "115200 bps"
  180. config ESPTOOLPY_MONITOR_BAUD_230400B
  181. bool "230400 bps"
  182. config ESPTOOLPY_MONITOR_BAUD_921600B
  183. bool "921600 bps"
  184. config ESPTOOLPY_MONITOR_BAUD_2MB
  185. bool "2 Mbps"
  186. config ESPTOOLPY_MONITOR_BAUD_OTHER
  187. bool "Custom baud rate"
  188. endchoice
  189. config ESPTOOLPY_MONITOR_BAUD_OTHER_VAL
  190. int "Custom baud rate value" if ESPTOOLPY_MONITOR_BAUD_OTHER
  191. default 115200
  192. config ESPTOOLPY_MONITOR_BAUD
  193. int
  194. default ESP_CONSOLE_UART_BAUDRATE if ESPTOOLPY_MONITOR_BAUD_CONSOLE
  195. default 9600 if ESPTOOLPY_MONITOR_BAUD_9600B
  196. default 57600 if ESPTOOLPY_MONITOR_BAUD_57600B
  197. default 115200 if ESPTOOLPY_MONITOR_BAUD_115200B
  198. default 230400 if ESPTOOLPY_MONITOR_BAUD_230400B
  199. default 921600 if ESPTOOLPY_MONITOR_BAUD_921600B
  200. default 2000000 if ESPTOOLPY_MONITOR_BAUD_2MB
  201. default ESPTOOLPY_MONITOR_BAUD_OTHER_VAL if ESPTOOLPY_MONITOR_BAUD_OTHER
  202. endmenu