Skip to content

Commit 7efd133

Browse files
authored
Merge pull request #750 from durapensa/lolin_s2_mini
Lolin S2 Mini board download page updates, features & TinyUF2 flashing instructions
2 parents ffaa905 + 5b8bb1e commit 7efd133

File tree

1 file changed

+55
-9
lines changed

1 file changed

+55
-9
lines changed

_board/lolin_s2_mini.md

Lines changed: 55 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,77 @@
22
layout: download
33
board_id: "lolin_s2_mini"
44
title: "LOLIN S2 Mini Download"
5-
name: "LOLIN S2 Mini "
5+
name: "LOLIN S2 Mini"
66
manufacturer: "LOLIN"
77
board_url: "https://www.wemos.cc/en/latest/s2/s2_mini.html"
88
board_image: "lolin_s2_mini.jpg"
99
date_added: 2021-9-3
1010
features:
1111
- Wi-Fi
12+
- USB-C
1213
---
1314

1415
### Features
1516

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

2640
## Purchase
2741

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

44+
## Learn More
45+
46+
* [Manufacturer Specifications](https://www.wemos.cc/en/latest/s2/s2_mini.html)
47+
48+
### Flashing UF2 Bootloader
49+
50+
***Important***: *this will erase previously flashed firmware & sketches from the board, but needs to be perfomed only once.*
51+
52+
- Download the latest `tinyuf2-lolin_s2_mini-......zip` from [TinyUF2 releases](https://github.com/adafruit/tinyuf2/releases),
53+
- Unzip to find the file `combined.bin`.
54+
- Place board in bootloader mode:
55+
- 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.
56+
- Press and hold the `0` button down. Don't let go of it yet!
57+
- Press and release the `RST` button. You should have the `0` button pressed while you do this.
58+
- Release the `0` button.
59+
- Use the Adafruit WebSerial ESPTool to upload `combined.bin` (Google Chrome 89 or newer):
60+
- Open a new web browser window or tab to the [Adafruit WebSerial ESPTool](https://adafruit.github.io/Adafruit_WebSerial_ESPTool/).
61+
- Select `460800 Baud` from the pull-down menu at the top-right of the page.
62+
- Click the `Connect` button at the top-right of the page.
63+
- Select the COM or Serial port from the pop-up window.
64+
- After successful connection, click the `Erase` button.
65+
- After successful erase, click the first `Choose a file...` button, locate the `combined.bin` file unzipped earlier, click `Ok`.
66+
- After successfully choosing the `combined.bin` file, click the `Program` button.
67+
- 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.
68+
69+
### Flashing CircuitPython
70+
71+
- Flash the UF2 bootloader using the instructions above.
72+
- Download the `.UF2` file from this page.
73+
- In your file browser, Drag & Drop the `.UF2` file to the `S2MINIBOOT` drive.
74+
- Your board should reboot automatically into CircuitPython. The `S2MINIBOOT` drive should disappear and be replaced with a new drive `CIRCUITPY`.
75+
3076
## Contribute
3177

3278
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).

0 commit comments

Comments
 (0)