Espressif · ESP32-S3-DevKitC-1

ESP32-S3-DevKitC-1

Espressif ESP32-S3-DevKitC-1: an ESP32-S3-WROOM-1 module (two Xtensa LX7 cores, Wi-Fi, BLE, USB OTG) with a USB-UART port and a native USB port.

EmbassyZephyrEspressif
ESP32-S3-DevKitC-1Espressif · ESP32-S3 · 2 × Xtensa LX7 · 240 MHz · 512 KB · bare metalESP32-S3ESP32-S3-DevKitC-1123456781can0 CANTWAI0 (add a transceiver) · tx GPIO4, rx GPIO52uart0 UARTUART0 (USB bridge) · tx GPIO43, rx GPIO443usb USBUSB OTG4radio RadioWi-Fi / BLE5pwr Power5 V USB6v3v3 Power3V3 pin7v5 Power5V pin (from USB)8button GPIOBOOT Button (low when pressed) · io GPIO0

In short

ESP32-S3 development board: two 240 MHz Xtensa LX7 cores, 512 KB SRAM, Wi-Fi and Bluetooth LE, native USB. The TWAI (CAN) controller can be routed to any GPIO and needs an external transceiver.

Clock240 MHz
Flash8 MB
RAM512 KB
GPIO36
Logic3.3 V

Specs

From the board’s model in the store.

Processor
ESP32-S3 · 2× Xtensa LX7 · chip "esp32s3"
Clock
240 MHz
Flash
8 MB
RAM
512 KB
GPIO pins
36
ADC
ADC1 10 ch 12-bit, ADC2 10 ch 12-bit
Logic level
3.3 V
Power
5 V USB (in); 3V3 pin: 3.3 V; 5V pin (from USB): 5 V
Current per pin
not in the board’s model yet
Buses
UART ×3, I²C ×2, SPI ×2, CAN ×1, USB ×1
On any pin
UART, I²C, SPI, CAN, PWM
Runs
bare metal (no OS)

Pin map

Each pin by what it does. Hover or tap a pin to see what else it can be.

  • Power 3
  • Digital 13
  • Analog 18
  • Bus 4
  • Control 1
  • GPIO0GPIO0
  • GPIO1GPIO1
  • GPIO2GPIO2
  • GPIO3GPIO3
  • GPIO4GPIO4
  • GPIO5GPIO5
  • GPIO6GPIO6
  • GPIO7GPIO7
  • GPIO8GPIO8
  • GPIO9GPIO9
  • GPIO10GPIO10
  • GPIO11GPIO11
  • GPIO12GPIO12
  • GPIO13GPIO13
  • GPIO14GPIO14
  • GPIO15GPIO15
  • GPIO16GPIO16
  • GPIO17GPIO17
  • GPIO18GPIO18
  • GPIO19GPIO19
  • GPIO20GPIO20
  • GPIO21GPIO21
  • GPIO35GPIO35
  • GPIO36GPIO36
  • GPIO37GPIO37
  • GPIO38GPIO38
  • GPIO39GPIO39
  • GPIO40GPIO40
  • GPIO41GPIO41
  • GPIO42GPIO42
  • GPIO43GPIO43
  • GPIO44GPIO44
  • GPIO45GPIO45
  • GPIO46GPIO46
  • GPIO47GPIO47
  • GPIO48GPIO48
  • pwr5 V USB
  • v3v33V3 pin
  • v55V pin (from USB)

Watch out

What archec checks for this board, from its data. Each one names the check that catches it.

  • Its pins work at 3.3 V. A 5 V sensor’s output on one of them needs a level shifter between them.

    check pin-level

  • The board already uses GPIO0 (BOOT Button (low when pressed)). Something else wired there fights with it.

    check pin-conflict

  • It gives 3.3 V (3V3 pin), 5 V (5V pin (from USB)). Power each part from a rail at its own voltage.

    check board-supply

  • It has 3 UART, 2 I²C, 2 SPI, 1 CAN. One more bus of a kind than that is an error.

    check board-peripheral

First model

A blink for this board: the board, an LED and a part that turns it over every 500 ms. archec checks it, then writes the code on the right.

main.archeOpen in the playground
project Blink "Blink" {
  version "0.1.0"
  edition "1.0"
  uses arche-hw-store "^0.1"
}

include "arche-hw-store/boards/esp32-s3-devkitc-1/esp32-s3-devkitc-1.arche"
include "arche-hw-store/devices/led/led.arche"

/// Turns the LED over at each step.
component Blinker "Blinker" {
  out led: requires Led
  fn blink "Blink" {
    ```arche
    led.toggle()
    ```
    wcet 50us
  }
}

/// The board, an LED on pin GPIO21, and the blinker.
system Hw "Blink" {
  part board:   Esp32S3DevKitC1
  part led:     GpioLed { in pin { pins { pin GPIO21 } } }
  part blinker: Blinker
  blinker.led -> led.led
}

/// The firmware: the blinker every 500 ms.
deployment OnBoard "On the board" {
  system Hw
  platform Hw
  binary blink on board {
    thread main "Blink" { runs blinker; period 500ms; step blink }
  }
}
archec gen --target embassyblink/src/app/blinker.rs
//! Your code: the state and behaviour of this part. Write it between the USER CODE markers:
//! when the model changes, `archec gen` writes this file again around them (a new function, a
//! new input) and keeps them. Edit outside them and the file is yours: it is left as it is,
//! and the compiler says what to add (a new trait method).

#[allow(unused_imports)]
use crate::arche::*;

// @arche blinker main.arche:25 part
/// blinker
#[derive(Default)]
pub struct Blinker {}

impl BlinkerBehaviour for Blinker {
    // @arche blinker.blink main.arche:13 fn
    async fn blink(&mut self, _out: &BlinkerOut) {
        // Blink: from the model (```arche)
        _out.call_led_toggle().await;
    }
}

blink/src/app/blinker.rs, one of the 14 files archec writes.

Open in the playground

Compare every board