Skip to content

Lolin S2 Mini board download page updates, features & TinyUF2 flashing instructions #750

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 55 additions & 9 deletions _board/lolin_s2_mini.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,77 @@
layout: download
board_id: "lolin_s2_mini"
title: "LOLIN S2 Mini Download"
name: "LOLIN S2 Mini "
name: "LOLIN S2 Mini"
manufacturer: "LOLIN"
board_url: "https://www.wemos.cc/en/latest/s2/s2_mini.html"
board_image: "lolin_s2_mini.jpg"
date_added: 2021-9-3
features:
- Wi-Fi
- USB-C
---

### Features

- based ESP32-S2FN4R2 WIFI IC
- Type-C USB
- 4MB Flash
- 2MB PSRAM
- 27x IO
- ADC, DAC, I2C, SPI, UART, USB OTG
- Compatible with LOLIN D1 mini shields
- Compatible with MicroPython, Arduino and ESP-IDF
- ESP32-S2FN4R2 WiFi SoC
- Xtensa® single-core 32-bit LX7 microprocessor, up to 240 MHz
- 320 KB SRAM
- 4 MB Flash
- 2 MB PSRAM
- 2 × 13-bit SAR ADCs, up to 20 channels (2 channels not available on ADC2 due to USB)
- 2 × 8-bit DAC
- 14 × touch sensing IOs
- 4 × SPI (2 useable due to embedded flash & psram)
- 1 × I2S
- 2 × I2C
- 2 × UART
- 1 × DVP 8/16 camera interface, implemented using the hardware resources of I2S
- 1 × LCD interface (8-bit serial RGB/8080/6800), implemented using the hardware resources of SPI2
- 1 × LCD interface (8/16/24-bit parallel), implemented using the hardware resources of I2S
- 1 × TWAI® controller compatible with ISO 11898-1 (CAN Specification 2.0)
- LED PWM controller, up to 8 channels
- USB OTG 1.1 controller and PHY, with host and device support
- USB Type-C connector, for built-in ROM USB bootloader, serial port debugging, and USB device mode
- 27 × GPIO pins, outer 16 pins compatible with LOLIN D1 mini shields
- Compatible with CircuitPython, MicroPython, Arduino and ESP-IDF
- Default firmware: MicroPython

## Purchase

* [AliExpress](https://www.aliexpress.com/item/1005003145192016.html)

## Learn More

* [Manufacturer Specifications](https://www.wemos.cc/en/latest/s2/s2_mini.html)

### Flashing UF2 Bootloader

***Important***: *this will erase previously flashed firmware & sketches from the board, but needs to be perfomed only once.*

- Download the latest `tinyuf2-lolin_s2_mini-......zip` from [TinyUF2 releases](https://github.com/adafruit/tinyuf2/releases),
- Unzip to find the file `combined.bin`.
- Place board in bootloader mode:
- Plug board into a USB port on your computer using a data/sync cable. Make sure it is the only board plugged in, and that a charge-only cable is not being used.
- Press and hold the `0` button down. Don't let go of it yet!
- Press and release the `RST` button. You should have the `0` button pressed while you do this.
- Release the `0` button.
- Use the Adafruit WebSerial ESPTool to upload `combined.bin` (Google Chrome 89 or newer):
- Open a new web browser window or tab to the [Adafruit WebSerial ESPTool](https://adafruit.github.io/Adafruit_WebSerial_ESPTool/).
- Select `460800 Baud` from the pull-down menu at the top-right of the page.
- Click the `Connect` button at the top-right of the page.
- Select the COM or Serial port from the pop-up window.
- After successful connection, click the `Erase` button.
- After successful erase, click the first `Choose a file...` button, locate the `combined.bin` file unzipped earlier, click `Ok`.
- After successfully choosing the `combined.bin` file, click the `Program` button.
- After the TinyUF2 firmware update is complete, press the `RST` button on the board. A new drive `S2MINIBOOT` should be visible in your file browser.

### Flashing CircuitPython

- Flash the UF2 bootloader using the instructions above.
- Download the `.UF2` file from this page.
- In your file browser, Drag & Drop the `.UF2` file to the `S2MINIBOOT` drive.
- Your board should reboot automatically into CircuitPython. The `S2MINIBOOT` drive should disappear and be replaced with a new drive `CIRCUITPY`.

## Contribute

Have some info to add for this board? Edit the source for this page [here](https://github.com/adafruit/circuitpython-org/edit/master/_board/{{ page.board_id }}.md).