user-guide-devkitm-1-v1.rst 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. ==================
  2. ESP32-S2-DevKitM-1
  3. ==================
  4. :link_to_translation:`zh_CN:[中文]`
  5. This user guide provides information on Espressif's small-sized development board ESP32-S2-DevKitM-1.
  6. ESP32-S2-DevKitM-1 is entry-level development board. Most of the I/O pins on the module are broken out to the pin headers on both sides for easy interfacing. Developers can either connect peripherals with jumper wires or mount ESP32-S2-DevKitM-1 on a breadboard.
  7. +----------------------+-----------------------+
  8. | |ESP32-S2-DevKitM-1| | |ESP32-S2-DevKitM-1U| |
  9. +----------------------+-----------------------+
  10. | ESP32-S2-DevKitM-1 | ESP32-S2-DevKitM-1U |
  11. +----------------------+-----------------------+
  12. .. |ESP32-S2-DevKitM-1| image:: ../../../_static/esp32-s2-devkitm-1-v1-isometric.png
  13. .. |ESP32-S2-DevKitM-1U| image:: ../../../_static/esp32-s2-devkitm-1u-v1-isometric.png
  14. The document consists of the following major sections:
  15. - `Getting started`_: Provides an overview of the ESP32-S2-DevKitM-1 and hardware/software setup instructions to get started.
  16. - `Hardware reference`_: Provides more detailed information about the ESP32-S2-DevKitM-1's hardware.
  17. - `Hardware Revision Details`_: Revision history, known issues, and links to user guides for previous versions (if any) of ESP32-S2-DevKitM-1.
  18. - `Related Documents`_: Gives links to related documentation.
  19. Getting Started
  20. ===============
  21. This section describes how to get started with ESP32-S2-DevKitM-1. It begins with a few introductory sections about the ESP32-S2-DevKitM-1, then Section `Start Application Development`_ provides instructions on how to get the ESP32-S2-DevKitM-1 ready and flash firmware into it.
  22. Contents and Packaging
  23. ----------------------
  24. .. _user-guide-s2-devkitm-1-v1-ordering-info:
  25. Ordering Information
  26. ^^^^^^^^^^^^^^^^^^^^
  27. The development board has a variety of variants to choose from, as shown in the table below.
  28. .. list-table::
  29. :header-rows: 1
  30. :widths: 41 24 9 8 18
  31. * - Ordering Code
  32. - On-board Module [#]_
  33. - Flash
  34. - PSRAM
  35. - Antenna
  36. * - ESP32-S2-DevKitM-1-N4R2
  37. - ESP32-S2-MINI-2
  38. (Recommended)
  39. - 4 MB
  40. - 2 MB
  41. - PCB on-board antenna
  42. * - ESP32-S2-DevKitM-1U-N4R2
  43. - ESP32-S2-MINI-2U
  44. (Recommended)
  45. - 4 MB
  46. - 2 MB
  47. - External antenna connector
  48. * - ESP32-S2-DevKitM-1
  49. - ESP32-S2-MINI-1
  50. - 4 MB
  51. - ---
  52. - PCB on-board antenna
  53. * - ESP32-S2-DevKitM-1U
  54. - ESP32-S2-MINI-1U
  55. - 4 MB
  56. - ---
  57. - External antenna connector
  58. * - ESP32-S2-DevKitM-1R
  59. - ESP32-S2-MINI-1
  60. - 4 MB
  61. - 2 MB
  62. - PCB on-board antenna
  63. * - ESP32-S2-DevKitM-1RU
  64. - ESP32-S2-MINI-1U
  65. - 4 MB
  66. - 2 MB
  67. - External antenna connector
  68. .. [#] The ESP32-S2-MINI-2 and ESP32-S2-MINI-2U modules use chip revision v1.0, and the rest use chip revision v0.0. For more information about chip revisions, please refer to `ESP32-S2 Series SoC Errata`_.
  69. Retail Orders
  70. ^^^^^^^^^^^^^
  71. If you order a few samples, each ESP32-S2-DevKitM-1 comes in an individual package in either antistatic bag or any packaging depending on your retailer.
  72. For retail orders, please go to https://www.espressif.com/en/contact-us/get-samples.
  73. Wholesale Orders
  74. ^^^^^^^^^^^^^^^^
  75. If you order in bulk, the boards come in large cardboard boxes.
  76. For wholesale orders, please go to https://www.espressif.com/en/contact-us/sales-questions.
  77. Description of Components
  78. -------------------------
  79. .. _user-guide-devkitm-1-v1-board-front:
  80. .. figure:: ../../../_static/esp32-s2-devkitm-1-v1-annotated-photo.png
  81. :align: center
  82. :alt: ESP32-S2-DevKitM-1 - front
  83. :figclass: align-center
  84. ESP32-S2-DevKitM-1 - front
  85. .. figure:: ../../../_static/esp32-s2-devkitm-1u-v1-annotated-photo.png
  86. :align: center
  87. :alt: ESP32-S2-DevKitM-1U - front
  88. :figclass: align-center
  89. ESP32-S2-DevKitM-1U - front
  90. The key components of the board are described in a clockwise direction.
  91. .. list-table::
  92. :widths: 30 70
  93. :header-rows: 1
  94. * - Key Component
  95. - Description
  96. * - On-board module (ESP32-S2-MINI-1 or ESP32-S2-MINI-1U in figures above)
  97. - ESP32-S2-MINI series modules with an on-board PCB antenna or a connector for an external antenna. This series of modules, known for its small size, have a flash and/or a PSRAM integrated in the chip package. For more information, please refer to :ref:`user-guide-s2-devkitm-1-v1-ordering-info`.
  98. * - Pin Headers
  99. - All available GPIO pins (except for the SPI bus for flash) are broken out to the pin headers on the board. Users can program ESP32-S2FH4 chip to enable multiple functions such as SPI, I2S, UART, I2C, touch sensors, PWM etc. For details, please see :ref:`user-guide-devkitm-1-v1-header-blocks`.
  100. * - 3.3 V Power On LED
  101. - Turns on when the USB power is connected to the board.
  102. * - USB to UART Bridge
  103. - Single USB-UART bridge chip provides transfer rates up to 3 Mbps.
  104. * - Reset Button
  105. - Reset button.
  106. * - Micro-USB Port
  107. - USB interface. Power supply for the board as well as the communication interface between a computer and the ESP32-S2FH4 chip.
  108. * - Boot Button
  109. - Download button. Holding down **Boot** and then pressing **Reset** initiates Firmware Download mode for downloading firmware through the serial port.
  110. * - RGB LED
  111. - Addressable RGB LED, driven by GPIO18.
  112. * - 5 V to 3.3 V LDO
  113. - Power regulator that converts a 5 V supply into a 3.3 V output.
  114. * - External Antenna Connector
  115. - On **ESP32-S2-MINI-2U** and **ESP32-S2-MINI-1U** module only. For connector dimensions, please refer to Section External Antenna Connector Dimensions in module datasheet.
  116. Start Application Development
  117. -----------------------------
  118. Before powering up your ESP32-S2-DevKitM-1, please make sure that it is in good condition with no obvious signs of damage.
  119. Required Hardware
  120. ^^^^^^^^^^^^^^^^^
  121. - ESP32-S2-DevKitM-1
  122. - USB 2.0 cable (Standard-A to Micro-B)
  123. - Computer running Windows, Linux, or macOS
  124. .. note::
  125. Be sure to use an appropriate USB cable. Some cables are for charging only and do not provide the needed data lines nor work for programming the boards.
  126. Software Setup
  127. ^^^^^^^^^^^^^^
  128. Please proceed to :doc:`../../get-started/index`, where Section :ref:`get-started-step-by-step` will quickly help you set up the development environment and then flash an application example into your ESP32-S2-DevKitM-1.
  129. .. note::
  130. ESP32-S2 series of chips only is only supported in ESP-IDF master or version v4.2 and higher.
  131. Hardware Reference
  132. ==================
  133. Block Diagram
  134. -------------
  135. A block diagram below shows the components of ESP32-S2-DevKitM-1 and their interconnections.
  136. .. figure:: ../../../_static/esp32-s2-devkitm-1-v1-block-diagram.png
  137. :align: center
  138. :scale: 70%
  139. :alt: ESP32-S2-DevKitM-1 (click to enlarge)
  140. :figclass: align-center
  141. ESP32-S2-DevKitM-1 (click to enlarge)
  142. Power Supply Options
  143. ^^^^^^^^^^^^^^^^^^^^
  144. There are three mutually exclusive ways to provide power to the board:
  145. - Micro-USB Port, default power supply
  146. - 5V and GND pin headers
  147. - 3V3 and GND pin headers
  148. It is recommended to use the first option: micro USB Port.
  149. .. _user-guide-devkitm-1-v1-header-blocks:
  150. Header Block
  151. ------------
  152. The two tables below provide the **Name** and **Function** of the pin headers on both sides of the board (J1 and J3). The pin header names are shown in :ref:`user-guide-devkitm-1-v1-board-front`. The numbering is the same as in the `ESP32-S2-DevKitM-1 Schematics <https://dl.espressif.com/dl/schematics/ESP32-S2-DevKitM-1_V1_Schematics.pdf>`_ (PDF).
  153. J1
  154. ^^^
  155. === ==== ========== =============================================================
  156. No. Name Type [#]_ Function
  157. === ==== ========== =============================================================
  158. 1 3V3 P 3.3 V power supply
  159. 2 0 I/O/T RTC_GPIO0, GPIO0
  160. 3 1 I/O/T RTC_GPIO1, GPIO1, TOUCH1, ADC1_CH0
  161. 4 2 I/O/T RTC_GPIO2, GPIO2, TOUCH2, ADC1_CH1
  162. 5 3 I/O/T RTC_GPIO3, GPIO3, TOUCH3, ADC1_CH2
  163. 6 4 I/O/T RTC_GPIO4, GPIO4, TOUCH4, ADC1_CH3
  164. 7 5 I/O/T RTC_GPIO5, GPIO5, TOUCH5, ADC1_CH4
  165. 8 6 I/O/T RTC_GPIO6, GPIO6, TOUCH6, ADC1_CH5
  166. 9 7 I/O/T RTC_GPIO7, GPIO7, TOUCH7, ADC1_CH6
  167. 10 8 I/O/T RTC_GPIO8, GPIO8, TOUCH8, ADC1_CH7
  168. 11 9 I/O/T RTC_GPIO9, GPIO9, TOUCH9, ADC1_CH8, FSPIHD
  169. 12 10 I/O/T RTC_GPIO10, GPIO10, TOUCH10, ADC1_CH9, FSPICS0, FSPIIO4
  170. 13 11 I/O/T RTC_GPIO11, GPIO11, TOUCH11, ADC2_CH0, FSPID, FSPIIO5
  171. 14 12 I/O/T RTC_GPIO12, GPIO12, TOUCH12, ADC2_CH1, FSPICLK, FSPIIO6
  172. 15 13 I/O/T RTC_GPIO13, GPIO13, TOUCH13, ADC2_CH2, FSPIQ, FSPIIO7
  173. 16 14 I/O/T RTC_GPIO14, GPIO14, TOUCH14, ADC2_CH3, FSPIWP, FSPIDQS
  174. 17 15 I/O/T RTC_GPIO15, GPIO15, U0RTS, ADC2_CH4, XTAL_32K_P
  175. 18 16 I/O/T RTC_GPIO16, GPIO16, U0CTS, ADC2_CH5, XTAL_32K_N
  176. 19 17 I/O/T RTC_GPIO17, GPIO17, U1TXD, ADC2_CH6, DAC_1
  177. 20 5V P 5 V power supply
  178. 21 G G Ground
  179. === ==== ========== =============================================================
  180. J3
  181. ^^^
  182. === ==== ===== ========================================================
  183. No. Name Type Function
  184. === ==== ===== ========================================================
  185. 1 G G Ground
  186. 2 RST I CHIP_PU
  187. 3 46 I GPIO46
  188. 4 45 I/O/T GPIO45
  189. 5 RX I/O/T U0RXD, GPIO44, CLK_OUT2
  190. 6 TX I/O/T U0TXD, GPIO43, CLK_OUT1
  191. 7 42 I/O/T MTMS, GPIO42
  192. 8 41 I/O/T MTDI, GPIO41, CLK_OUT1
  193. 9 40 I/O/T MTDO, GPIO40, CLK_OUT2
  194. 10 39 I/O/T MTCK, GPIO39, CLK_OUT3
  195. 11 38 I/O/T GPIO38, FSPIWP
  196. 12 37 I/O/T SPIDQS, GPIO37, FSPIQ
  197. 13 36 I/O/T SPIIO7, GPIO36, FSPICLK
  198. 14 35 I/O/T SPIIO6, GPIO35, FSPID
  199. 15 34 I/O/T SPIIO5, GPIO34, FSPICS0
  200. 16 33 I/O/T SPIIO4, GPIO33, FSPIHD
  201. 17 26 I/O/T SPICS1, GPIO26
  202. 18 21 I/O/T RTC_GPIO21, GPIO21
  203. 19 20 I/O/T RTC_GPIO20, GPIO20, U1CTS, ADC2_CH9, CLK_OUT1, USB_D+
  204. 20 19 I/O/T RTC_GPIO19, GPIO19, U1RTS, ADC2_CH8, CLK_OUT2, USB_D-
  205. 21 18 I/O/T RTC_GPIO18, GPIO18, U1RXD, ADC2_CH7, DAC_2, CLK_OUT3, RGB LED
  206. === ==== ===== ========================================================
  207. .. [#] P: Power supply; I: Input; O: Output; T: High impedance.
  208. Pin Layout
  209. ^^^^^^^^^^^
  210. .. figure:: ../../../_static/esp32-s2-devkitm-1-v1-pin-layout.png
  211. :align: center
  212. :scale: 15%
  213. :alt: ESP32-S2-DevKitM-1 (click to enlarge)
  214. :figclass: align-center
  215. ESP32-S2-DevKitM-1 Pin Layout (click to enlarge)
  216. Hardware Revision Details
  217. =========================
  218. This is the first revision of this board released.
  219. Related Documents
  220. =================
  221. * `ESP32-S2 Series Chip Revision v1.0 Datasheet`_ (PDF)
  222. * `ESP32-S2 Series Chip Revision v0.0 Datasheet <https://www.espressif.com/sites/default/files/documentation/esp32-s2_datasheet_en.pdf>`_ (PDF)
  223. * `ESP32-S2 Series SoC Errata`_ (PDF)
  224. * `ESP32-S2-MINI-2 & ESP32-S2-MINI-2U Module Datasheet <https://www.espressif.com/sites/default/files/documentation/esp32-s2-mini-2_esp32-s2-mini-2u_datasheet_en.pdf>`_ (PDF)
  225. * `ESP32-S2-MINI-1 & ESP32-S2-MINI-1U Module Datasheet <https://www.espressif.com/sites/default/files/documentation/esp32-s2-mini-1_esp32-s2-mini-1u_datasheet_en.pdf>`_ (PDF)
  226. * `ESP32-S2-DevKitM-1 Schematics <https://dl.espressif.com/dl/schematics/ESP32-S2-DevKitM-1_V1_Schematics.pdf>`_ (PDF)
  227. * `ESP32-S2-DevKitM-1 PCB Layout <https://dl.espressif.com/dl/schematics/ESP32-S2-DevKitM-1_V1_PCB_Layout.pdf>`_ (PDF)
  228. * `ESP32-S2-DevKitM-1 Dimensions <https://dl.espressif.com/dl/schematics/ESP32-S2-DevKitM-1_V1_Dimensions.pdf>`_ (PDF)
  229. * `ESP Product Selector <https://products.espressif.com/#/product-selector?names=>`_
  230. For other design documentation for the board, please contact us at `sales@espressif.com <sales@espressif.com>`_.
  231. .. _NRND: https://www.espressif.com/en/products/longevity-commitment?id=nrnd
  232. .. _ESP32-S2 Series Chip Revision v1.0 Datasheet: https://www.espressif.com/sites/default/files/documentation/esp32-s2-v1.0_datasheet_en.pdf
  233. .. _ESP32-S2 Series SoC Errata: https://espressif.com/sites/default/files/documentation/esp32-s2_errata_en.pdf