Jan Beran

View on GitHub

Lecture: ESP-IDF introduction

The ESP-IDF (Espressif IoT Development Framework) is the official operating system and development framework for the ESP32 series of microcontrollers by Espressif Systems. It provides a comprehensive environment for building IoT applications with robust networking, security, and reliability features.

ESP-IDF framework includes FreeRTOS that allows developers to create real-time, multitasking applications. With extensive libraries, components, protocols, tools, and documentation, ESP-IDF simplifies the development process enabling seamless integration with hardware peripherals, such as Wi-Fi, Bluetooth, Thread, ZigBee, and cloud services.

ESP-IDF includes almost 400 examples, covering a wide range of use cases and helping developers quickly get started on their projects.

Architecture

The ESP-IDF platform architecture is mainly divided into 3 layers:

ESP-IDF high-level architecture

All the necessary blocks for building your application will be included on the ESP-IDF platform.

Frameworks

Several other frameworks use ESP-IDF as a base, including:

To see all the supported frameworks, please visit our GitHub organization page.

Current supported versions

Visit the ESP-IDF project on GitHub to get the updated list of supported versions and the maintenance period.

espressif/esp-idf on GitHub

Introduction to the ESP32-C6

The ESP32-C6 is a Ultra-low-power SoC with RISC-V single-core microprocessor, 2.4 GHz Wi-Fi 6 (802.11ax), Bluetooth® 5 (LE), Zigbee and Thread (802.15.4). It has an optional 4 MB flash in the chip’s package, 30 or 22 GPIOs, rich set of peripherals including:

ESP32-C6 block diagram

For more details, please see the product ESP32-C6 Datasheet.

Wi-Fi 6 (IEEE 802.11ax)

Wi-Fi 6, also known as IEEE 802.11ax, represents the latest generation of Wi-Fi technology, designed to improve efficiency, capacity, and performance in various environments. Key features of Wi-Fi 6, as seen in devices like the ESP32-C6, include:

Wi-Fi MAC support for the 802.11ax:

Resources

Introduction to the ESP32-C6-DevKit-C

The ESP32-C6-DevKitC-1 is a beginner-friendly development board featuring the ESP32-C6-WROOM-1(U) module, which includes an 8 MB SPI flash. This board offers comprehensive Wi-Fi, Bluetooth LE, Zigbee, and Thread capabilities.

To facilitate easy interfacing, most of the I/O pins are accessible through pin headers on both sides. Developers can connect peripherals using jumper wires or mount the ESP32-C6-DevKitC-1 on a breadboard.

Features

Here is the development board feature list:

Board description

ESP32-C6-DevKitC-1 annotated photo

ESP32-C6-DevKitC-1 block diagram

Board pin-layout

ESP32-C6-DevKitC-1 pin layout

J1 connector

No. Name Type Function
1 3V3 P 3.3 V power supply
2 RST I High: enables the chip; Low: disables the chip.
3 4 I/O/T MTMS (strapping pin), GPIO4, LP_GPIO4, LP_UART_RXD, ADC1_CH4, FSPIHD
4 5 I/O/T MTDI (strapping pin), GPIO5, LP_GPIO5, LP_UART_TXD, ADC1_CH5, FSPIWP
5 6 I/O/T MTCK, GPIO6, LP_GPIO6, LP_I2C_SDA, ADC1_CH6, FSPICLK
6 7 I/O/T MTDO, GPIO7, LP_GPIO7, LP_I2C_SCL, FSPID
7 0 I/O/T GPIO0, XTAL_32K_P, LP_GPIO0, LP_UART_DTRN, ADC1_CH0
8 1 I/O/T GPIO1, XTAL_32K_N, LP_GPIO1, LP_UART_DSRN, ADC1_CH1
9 8 I/O/T GPIO8 (strapping pin, drives the RGB LED)
10 10 I/O/T GPIO10
11 11 I/O/T GPIO11
12 2 I/O/T GPIO2, LP_GPIO2, LP_UART_RTSN, ADC1_CH2, FSPIQ
13 3 I/O/T GPIO3, LP_GPIO3, LP_UART_CTSN, ADC1_CH3
14 5V P 5 V power supply
15 G G Ground
16 NC – No connection

J3 connector

No. Name Type Function
1 G G Ground
2 TX I/O/T U0TXD, GPIO16, FSPICS0
3 RX I/O/T U0RXD, GPIO17, FSPICS1
4 15 I/O/T GPIO15 (strapping pin)
5 23 I/O/T GPIO23, SDIO_DATA3
6 22 I/O/T GPIO22, SDIO_DATA2
7 21 I/O/T GPIO21, SDIO_DATA1, FSPICS5
8 20 I/O/T GPIO20, SDIO_DATA0, FSPICS4
9 19 I/O/T GPIO19, SDIO_CLK, FSPICS3
10 18 I/O/T GPIO18, SDIO_CMD, FSPICS2
11 9 I/O/T GPIO9 (strapping pin)
12 G G Ground
13 13 I/O/T GPIO13, USB_D+
14 12 I/O/T GPIO12, USB_D-
15 G G Ground
16 NC – No connection

Next step

After this introduction, it’s time to get started and install the development environment.

Assignment 1: Install ESP-IDF