1.. _esp32s2_lolin_mini: 2 3ESP32-S2 Lolin Mini 4################### 5 6Overview 7******** 8 9ESP32-S2 is a highly integrated, low-power, single-core Wi-Fi Microcontroller SoC, designed to be secure and 10cost-effective, with a high performance and a rich set of IO capabilities. [1]_ 11 12The features include the following: 13 14- RSA-3072-based secure boot 15- AES-XTS-256-based flash encryption 16- Protected private key and device secrets from software access 17- Cryptographic accelerators for enhanced performance 18- Protection against physical fault injection attacks 19- Various peripherals: 20 21 - 43x programmable GPIOs 22 - 14x configurable capacitive touch GPIOs 23 - USB OTG 24 - LCD interface 25 - camera interface 26 - SPI 27 - I2S 28 - UART 29 - ADC 30 - DAC 31 - LED PWM with up to 8 channels 32 33.. figure:: img/esp32_s2_lolin_mini.jpg 34 :align: center 35 :alt: ESP32-S2 LOLIN MINI 36 37System requirements 38******************* 39 40Prerequisites 41------------- 42 43Espressif HAL requires WiFi and Bluetooth binary blobs in order work. Run the command 44below to retrieve those files. 45 46.. code-block:: console 47 48 west blobs fetch hal_espressif 49 50.. note:: 51 52 It is recommended running the command above after :file:`west update`. 53 54Building & Flashing 55------------------- 56 57Build and flash applications as usual (see :ref:`build_an_application` and 58:ref:`application_run` for more details). 59 60.. zephyr-app-commands:: 61 :zephyr-app: samples/hello_world 62 :board: esp32s2_lolin_mini 63 :goals: build 64 65The usual ``flash`` target will work with the ``esp32s2_lolin_mini`` board 66configuration after putting the board into bootloader mode by holding the '0' 67button then pressing 'RST' and releasing the 'RST' button. 68 69Here is an example for the :ref:`hello_world` 70application. 71 72.. zephyr-app-commands:: 73 :zephyr-app: samples/hello_world 74 :board: esp32s2_lolin_mini 75 :goals: flash 76 77Open a serial port using e.g. screen 78 79.. code-block:: shell 80 81 screen /dev/ttyUSB0 115200 82 83After the board has been manually reset and booted, you should see the following 84message in the monitor: 85 86.. code-block:: console 87 88 ***** Booting Zephyr OS vx.x.x-xxx-gxxxxxxxxxxxx ***** 89 Hello World! esp32s2_lolin_mini 90 91References 92********** 93 94.. [1] https://www.espressif.com/en/products/socs/esp32-s2 95.. _`ESP32S2 Technical Reference Manual`: https://espressif.com/sites/default/files/documentation/esp32-s2_technical_reference_manual_en.pdf 96.. _`ESP32S2 Datasheet`: https://www.espressif.com/sites/default/files/documentation/esp32-s2_datasheet_en.pdf 97