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