Kconfig.projbuild 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. menu "Serial flasher config"
  2. config ESPTOOLPY_PORT
  3. string "Default serial port"
  4. default "/dev/ttyUSB0"
  5. help
  6. The serial port that's connected to the ESP chip. This can be overridden by setting the ESPPORT
  7. environment variable.
  8. choice ESPTOOLPY_BAUD
  9. prompt "Default baud rate"
  10. default ESPTOOLPY_BAUD_115200B
  11. help
  12. Default baud rate to use while communicating with the ESP chip. Can be overridden by
  13. setting the ESPBAUD variable.
  14. config ESPTOOLPY_BAUD_115200B
  15. bool "115200 baud"
  16. config ESPTOOLPY_BAUD_230400B
  17. bool "230400 baud"
  18. config ESPTOOLPY_BAUD_921600B
  19. bool "921600 baud"
  20. config ESPTOOLPY_BAUD_2MB
  21. bool "2Mbaud"
  22. config ESPTOOLPY_BAUD_OTHER
  23. bool "Other baud rate"
  24. endchoice
  25. config ESPTOOLPY_BAUD_OTHER_VAL
  26. int "Other baud rate value" if ESPTOOLPY_BAUD_OTHER
  27. default 115200
  28. config ESPTOOLPY_BAUD
  29. int
  30. default 115200 if ESPTOOLPY_BAUD_115200B
  31. default 230400 if ESPTOOLPY_BAUD_230400B
  32. default 921600 if ESPTOOLPY_BAUD_921600B
  33. default 2000000 if ESPTOOLPY_BAUD_2MB
  34. default ESPTOOLPY_BAUD_OTHER_VAL if ESPTOOLPY_BAUD_OTHER
  35. config ESPTOOLPY_COMPRESSED
  36. bool "Use compressed upload"
  37. default "y"
  38. help
  39. The flasher tool can send data compressed using zlib, letting the ROM on the ESP chip
  40. decompress it on the fly before flashing it. For most payloads, this should result in a
  41. speed increase.
  42. choice FLASHMODE
  43. prompt "Flash SPI mode"
  44. default FLASHMODE_DIO
  45. help
  46. Mode the flash chip is flashed in, as well as the default mode for the
  47. binary to run in.
  48. config FLASHMODE_QIO
  49. bool "QIO"
  50. config FLASHMODE_QOUT
  51. bool "QOUT"
  52. config FLASHMODE_DIO
  53. bool "DIO"
  54. config FLASHMODE_DOUT
  55. bool "DOUT"
  56. endchoice
  57. # Note: we use esptool.py to flash bootloader in
  58. # dio mode for QIO/QOUT, bootloader then upgrades
  59. # itself to quad mode during initialisation
  60. config ESPTOOLPY_FLASHMODE
  61. string
  62. default "dio" if FLASHMODE_QIO
  63. default "dio" if FLASHMODE_QOUT
  64. default "dio" if FLASHMODE_DIO
  65. default "dout" if FLASHMODE_DOUT
  66. choice ESPTOOLPY_FLASHFREQ
  67. prompt "Flash SPI speed"
  68. default ESPTOOLPY_FLASHFREQ_40M
  69. help
  70. The SPI flash frequency to be used.
  71. config ESPTOOLPY_FLASHFREQ_80M
  72. bool "80 MHz"
  73. config ESPTOOLPY_FLASHFREQ_40M
  74. bool "40 MHz"
  75. config ESPTOOLPY_FLASHFREQ_26M
  76. bool "26 MHz"
  77. config ESPTOOLPY_FLASHFREQ_20M
  78. bool "20 MHz"
  79. endchoice
  80. config ESPTOOLPY_FLASHFREQ
  81. string
  82. default "80m" if ESPTOOLPY_FLASHFREQ_80M
  83. default "40m" if ESPTOOLPY_FLASHFREQ_40M
  84. default "26m" if ESPTOOLPY_FLASHFREQ_26M
  85. default "20m" if ESPTOOLPY_FLASHFREQ_20M
  86. choice ESPTOOLPY_FLASHSIZE
  87. prompt "Flash size"
  88. default ESPTOOLPY_FLASHSIZE_2MB
  89. help
  90. SPI flash size, in megabytes
  91. config ESPTOOLPY_FLASHSIZE_1MB
  92. bool "1 MB"
  93. config ESPTOOLPY_FLASHSIZE_2MB
  94. bool "2 MB"
  95. config ESPTOOLPY_FLASHSIZE_4MB
  96. bool "4 MB"
  97. config ESPTOOLPY_FLASHSIZE_8MB
  98. bool "8 MB"
  99. config ESPTOOLPY_FLASHSIZE_16MB
  100. bool "16 MB"
  101. endchoice
  102. config ESPTOOLPY_FLASHSIZE
  103. string
  104. default "1MB" if ESPTOOLPY_FLASHSIZE_1MB
  105. default "2MB" if ESPTOOLPY_FLASHSIZE_2MB
  106. default "4MB" if ESPTOOLPY_FLASHSIZE_4MB
  107. default "8MB" if ESPTOOLPY_FLASHSIZE_8MB
  108. default "16MB" if ESPTOOLPY_FLASHSIZE_16MB
  109. config ESPTOOLPY_FLASHSIZE_DETECT
  110. bool "Detect flash size when flashing bootloader"
  111. default y
  112. help
  113. If this option is set, 'make flash' targets will automatically detect
  114. the flash size and update the bootloader image when flashing.
  115. choice ESPTOOLPY_BEFORE
  116. prompt "Before flashing"
  117. default ESPTOOLPY_BEFORE_RESET
  118. help
  119. Configure whether esptool.py should reset the ESP32 before flashing.
  120. Automatic resetting depends on the RTS & DTR signals being
  121. wired from the serial port to the ESP32. Most USB development
  122. boards do this internally.
  123. config ESPTOOLPY_BEFORE_RESET
  124. bool "Reset to bootloader"
  125. config ESPTOOLPY_BEFORE_NORESET
  126. bool "No reset"
  127. endchoice
  128. config ESPTOOLPY_BEFORE
  129. string
  130. default "default_reset" if ESPTOOLPY_BEFORE_RESET
  131. default "no_reset" if ESPTOOLPY_BEFORE_NORESET
  132. choice ESPTOOLPY_AFTER
  133. prompt "After flashing"
  134. default ESPTOOLPY_AFTER_RESET
  135. help
  136. Configure whether esptool.py should reset the ESP32 after flashing.
  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. config ESPTOOLPY_AFTER_RESET
  141. bool "Reset after flashing"
  142. config ESPTOOLPY_AFTER_NORESET
  143. bool "Stay in bootloader"
  144. endchoice
  145. config ESPTOOLPY_AFTER
  146. string
  147. default "hard_reset" if ESPTOOLPY_AFTER_RESET
  148. default "no_reset" if ESPTOOLPY_AFTER_NORESET
  149. choice MONITOR_BAUD
  150. prompt "'make monitor' baud rate"
  151. default MONITOR_BAUD_115200B
  152. help
  153. Baud rate to use when running 'make monitor' to view serial output
  154. from a running chip.
  155. Can override by setting the MONITORBAUD environment variable.
  156. config MONITOR_BAUD_9600B
  157. bool "9600 bps"
  158. config MONITOR_BAUD_57600B
  159. bool "57600 bps"
  160. config MONITOR_BAUD_115200B
  161. bool "115200 bps"
  162. config MONITOR_BAUD_230400B
  163. bool "230400 bps"
  164. config MONITOR_BAUD_921600B
  165. bool "921600 bps"
  166. config MONITOR_BAUD_2MB
  167. bool "2 Mbps"
  168. config MONITOR_BAUD_OTHER
  169. bool "Custom baud rate"
  170. endchoice
  171. config MONITOR_BAUD_OTHER_VAL
  172. int "Custom baud rate value" if MONITOR_BAUD_OTHER
  173. default 115200
  174. config MONITOR_BAUD
  175. int
  176. default 9600 if MONITOR_BAUD_9600B
  177. default 57600 if MONITOR_BAUD_57600B
  178. default 115200 if MONITOR_BAUD_115200B
  179. default 230400 if MONITOR_BAUD_230400B
  180. default 921600 if MONITOR_BAUD_921600B
  181. default 2000000 if MONITOR_BAUD_2MB
  182. default MONITOR_BAUD_OTHER_VAL if MONITOR_BAUD_OTHER
  183. endmenu