Sign In
Upload
Manuals
Brands
Espressif Manuals
Single board computers
ESP32-S2
Espressif ESP32-S2 Manuals
Manuals and User Guides for Espressif ESP32-S2. We have
2
Espressif ESP32-S2 manuals available for free PDF download: Programming Manual, User Manual
Espressif ESP32-S2 Programming Manual (1695 pages)
Brand:
Espressif
| Category:
Single board computers
| Size: 54 MB
Table of Contents
Table of Contents
2
Get Started
14
Introduction
14
What You Need
14
Development Board Overviews
15
ESP32-S2-Saola-1
15
ESP32-S2-Devkitm-1(U)
20
ESP32-S2-Devkitc-1
26
ESP32-S2-Kaluga-1 Kit V1.3
31
Installation Step by Step
65
Setting up Development Environment
65
Creating Your First Project
65
Step 1. Install Prerequisites
65
Standard Setup of Toolchain for Windows
65
Standard Setup of Toolchain for Linux
70
Standard Setup of Toolchain for Mac os
71
Step 2. Get ESP-IDF
73
Linux and Macos
73
Windows
73
Step 3. Set up the Tools
73
Alternative File Downloads
74
Customizing the Tools Installation Path
74
Step 4. Set up the Environment Variables
74
Windows
75
Linux and Macos
75
Step 5. Start a Project
75
Step 6. Connect Your Device
76
Step 7. Configure
76
Linux and Macos
76
Windows
76
Step 8. Build the Project
77
Step 9. Flash Onto the Device
77
Encountered Issues While Flashing
78
Normal Operation
78
Step 10. Monitor
79
Updating ESP-IDF
80
Related Documents
80
Establish Serial Connection with ESP32-S2
80
Build and Flash with Eclipse IDE
86
Getting Started with VS Code IDE
86
IDF Monitor
87
Customized Setup of Toolchain
91
API Reference
98
Networking Apis
98
Wi-Fi
98
ESP_OK: Succeed
104
ESP_ERR_WIFI_NOT_INIT: Wifi Is Not Initialized by Esp_Wifi_Init
104
ESP_ERR_WIFI_NOT_INIT: Wifi Is Not Initialized by Esp_Wifi_Init
107
ESP_ERR_WIFI_NOT_STARTED: Wifi Is Not Started by Esp_Wifi_Start
110
Esp_Err_T
110
ESP_OK: Succeed
110
ESP_ERR_WIFI_NOT_INIT: Wifi was Not Initialized by Esp_Wifi_Init
110
ESP_ERR_WIFI_NOT_INIT: Wifi Is Not Initialized by Esp_Wifi_Init
110
ESP_ERR_INVALID_ARG: Invalid Argument
112
Ethernet
180
Thread
203
IP Network Layer
208
Application Layer
225
Peripherals API
225
Analog to Digital Converter (ADC)
225
Digital to Analog Converter (DAC)
246
General Purpose Timer
250
Gpio & Rtc Gpio
260
Dedicated GPIO
278
Hash-Based Message Authentication Code (HMAC)
283
Digital Signature (DS)
287
Inter-Integrated Circuit (I2C)
291
Inter-IC Sound (I2S)
307
Lcd
317
LED Control (LEDC)
326
Pulse Counter (PCNT)
340
Remote Control (RMT)
349
SD SPI Host Driver
368
Sigma-Delta Modulation
372
SPI Master Driver
375
SPI Slave Driver
393
SPI Slave Half Duplex
399
Temperature Sensor
405
Touch Sensor
408
Touch Element
429
Two-Wire Automotive Interface (TWAI)
453
Universal Asynchronous Receiver/Transmitter (UART)
469
USB Device Driver
491
USB Host
498
Application Protocols
518
ASIO Port
518
Esp-Mqtt
519
Esp-Tls
530
Openssl-Apis
540
ESP HTTP Client
568
HTTP Server
582
HTTPS Server
604
ICMP Echo
606
ESP Local Control
611
Mdns Service
619
ESP-Modbus
632
ESP Websocket Client
653
ESP Serial Slave Link
660
ESP X509 Certificate Bundle
673
IP Network Layer
675
Provisioning API
675
Protocol Communication
675
Unified Provisioning
685
Wi-Fi Provisioning
689
Storage API
706
FAT Filesystem Support
706
Manufacturing Utility
711
Non-Volatile Storage Library
716
NVS Partition Generator Utility
736
SD/SDIO/MMC Driver
742
SPI Flash API
750
SPIFFS Filesystem
775
Virtual Filesystem Component
779
Wear Levelling API
792
System API
796
App Image Format
796
Application Level Tracing
801
The Async Memcpy API
805
Console
808
Efuse Manager
816
Error Codes and Helper Functions
836
Esp Https Ota
837
POSIX Threads Support
841
Event Loop Library
845
Freertos
861
Freertos Additions
966
Heap Memory Allocation
983
Heap Memory Debugging
994
High Resolution Timer
1004
Call Function with External Stack
1009
Interrupt Allocation
1011
Logging Library
1016
Miscellaneous System Apis
1022
Over the Air Updates (OTA)
1027
Performance Monitor
1039
Power Management
1041
Random Number Generation
1046
Sleep Modes
1049
Watchdogs
1058
System Time
1061
Internal and Unstable Apis
1065
API Conventions
1066
Error Handling
1066
Configuration Structures
1066
Private Apis
1067
Components in Example Projects
1067
API Stability
1068
Project Configuration
1069
Introduction
1069
Project Configuration Menu
1069
Using Sdkconfig.defaults
1069
Kconfig Formatting Rules
1069
Backward Compatibility of Kconfig Options
1070
Configuration Options Reference
1070
Customisations
1253
Error Codes Reference
1253
ESP32-S2 Hardware Reference
1260
Chip Series Comparison
1260
Related Documents
1262
API Guides
1264
Application Level Tracing Library
1264
Overview
1264
Modes of Operation
1264
Configuration Options and Dependencies
1265
How to Use this Library
1266
Application Startup Flow
1274
First Stage Bootloader
1274
Second Stage Bootloader
1275
Application Startup
1275
Bootloader
1277
Bootloader Compatibility
1277
Log Level
1277
Factory Reset
1277
Boot from Test Firmware
1278
Rollback
1278
Watchdog
1278
Bootloader Size
1279
Fast Boot from Deep Sleep
1279
Custom Bootloader
1279
Build System
1280
Overview
1280
Using the Build System
1281
Example Project
1284
Project Cmakelists File
1285
Component Cmakelists Files
1286
Component Configuration
1289
Preprocessor Definitions
1289
Component Requirements
1289
Overriding Parts of the Project
1293
Configuration-Only Components
1293
Debugging Cmake
1294
Example Component Cmakelists
1294
Custom Sdkconfig Defaults
1298
Flash Arguments
1298
Building the Bootloader
1299
Selecting the Target
1299
Writing Pure Cmake Components
1300
Using Third-Party Cmake Projects with Components
1300
Using Prebuilt Libraries with Components
1301
Using ESP-IDF in Custom Cmake Projects
1301
ESP-IDF Cmake Build System API
1302
File Globbing & Incremental Builds
1305
Build System Metadata
1306
Build System Internals
1306
Migrating from ESP-IDF GNU Make System
1308
Deep Sleep Wake Stubs
1310
Rules for Wake Stubs
1310
Implementing a Stub
1310
Loading Code into RTC Memory
1310
Loading Data into RTC Memory
1311
CRC Check for Wake Stubs
1312
Device Firmware Upgrade through USB
1312
Building the DFU Image
1312
Flashing the Chip with the DFU Image
1312
Error Handling
1314
Overview
1314
Error Codes
1314
Converting Error Codes to Error Messages
1314
ESP_ERROR_CHECK Macro
1315
ESP_ERROR_CHECK_WITHOUT_ABORT Macro
1315
ESP_RETURN_ON_ERROR Macro
1315
ESP_GOTO_ON_ERROR Macro
1315
ESP_RETURN_ON_FALSE Macro
1315
ESP_GOTO_ON_FALSE Macro
1316
CHECK MACROS Examples
1316
Error Handling Patterns
1316
C++ Exceptions
1317
Esp-Wifi-Mesh
1317
Overview
1317
Introduction
1318
ESP-WIFI-MESH Concepts
1319
Building a Network
1324
Managing a Network
1329
Data Transmission
1332
Channel Switching
1334
Performance
1337
Further Notes
1338
Core Dump
1338
Overview
1338
Configurations
1338
Save Core Dump to Flash
1339
Print Core Dump to UART
1339
ROM Functions in Backtraces
1339
Dumping Variables on Demand
1340
Running Espcoredump.py
1340
Event Handling
1341
Wi-Fi, Ethernet, and IP Events
1341
Mesh Events
1342
Bluetooth Events
1343
Support for External RAM
1343
Introduction
1343
Hardware
1343
Configuring External RAM
1344
Restrictions
1345
Failure to Initialize
1345
Encryption
1345
Fatal Errors
1345
Overview
1346
Panic Handler
1346
Register Dump and Backtrace
1348
GDB Stub
1349
Guru Meditation Errors
1349
Other Fatal Errors
1351
Flash Encryption
1353
Introduction
1353
Relevant Efuses
1354
Flash Encryption Process
1355
Flash Encryption Configuration
1355
Possible Failures
1362
ESP32-S2 Flash Encryption Status
1363
Reading and Writing Data in Encrypted Flash
1364
Updating Encrypted Flash
1365
Disabling Flash Encryption
1365
Key Points about Flash Encryption
1365
Limitations of Flash Encryption
1366
Flash Encryption and Secure Boot
1366
Advanced Features
1366
External RAM
1368
Technical Details
1368
ESP-IDF Freertos (SMP)
1368
Overview
1369
Symmetric Multiprocessing
1369
Tasks
1370
SMP Scheduler
1371
Critical Sections
1375
Misc
1376
Hardware Abstraction
1377
Architecture
1377
LL (Low Level) Layer
1378
HAL (Hardware Abstraction Layer)
1379
High-Level Interrupts
1380
Interrupt Levels
1380
Notes
1380
JTAG Debugging
1381
Introduction
1381
How It Works
1382
Selecting JTAG Adapter
1382
Setup of Openocd
1383
Configuring ESP32-S2 Target
1383
Launching Debugger
1388
Debugging Examples
1389
Building Openocd from Sources
1389
Tips and Quirks
1393
Related Documents
1397
Linker Script Generation
1422
Overview
1422
Quick Start
1422
Linker Script Generation Internals
1425
Memory Types
1432
DRAM (Data RAM)
1432
IRAM (Instruction RAM)
1432
IROM (Code Executed from Flash)
1433
RTC Fast Memory
1433
DROM (Data Stored in Flash)
1434
RTC Slow Memory
1434
DMA Capable Requirement
1434
DMA Buffer in the Stack
1435
Lwip
1435
Supported Apis
1435
BSD Sockets API
1435
Netconn API
1439
Lwip Freertos Task
1439
Ipv6 Support
1440
Esp-Lwip Custom Modifications
1440
Performance Optimization
1441
Openthread
1443
Mode of the Openthread Stack
1443
How to Write an Openthread Application
1444
The Openthread Border Router
1444
Partition Tables
1445
Overview
1445
Built-In Partition Tables
1445
Creating Custom Tables
1445
Generating Binary Partition Table
1448
Partition Size Checks
1448
Flashing the Partition Table
1448
Partition Tool (Parttool.py)
1449
Performance
1450
How to Optimize Performance
1450
Guides
1450
RF Calibration
1466
Partial Calibration
1466
Full Calibration
1466
No Calibration
1466
PHY Initialization Data
1466
Secure Boot V2
1467
Background
1467
Advantages
1467
Secure Boot V2 Process
1467
Signature Block Format
1468
Verifying a Signature Block
1468
Verifying an Image
1469
Bootloader Size
1469
Efuse Usage
1469
How to Enable Secure Boot V2
1469
Restrictions after Secure Boot Is Enabled
1470
Generating Secure Boot Signing Key
1470
Remote Signing of Images
1471
Secure Boot Best Practices
1471
Key Management
1471
Multiple Keys
1471
Key Revocation
1472
Technical Details
1472
Secure Boot & Flash Encryption
1473
Signed App Verification Without Hardware Secure Boot
1473
Advanced Features
1473
Thread Local Storage
1474
Overview
1474
Freertos Native API
1474
Pthread API
1474
C11 Standard
1474
Tools
1475
Downloadable Tools
1475
IDF Docker Image
1483
IDF Windows Installer
1485
IDF Component Manager
1486
ULP Coprocessor Programming
1487
ESP32-S2 ULP Coprocessor Instruction Set
1487
Programming ULP Coprocessor Using C Macros (Legacy)
1502
Installing the Toolchain
1507
Compiling the ULP Code
1507
Accessing the ULP Program Variables
1508
Starting the ULP Program
1509
ESP32-S2 ULP Program Flow
1510
ULP-RISC-V Coprocessor Programming
1511
Installing the ULP-RISC-V Toolchain
1511
Compiling the ULP-RISC-V Code
1511
Accessing the ULP-RISC-V Program Variables
1512
Starting the ULP-RISC-V Program
1512
ULP-RISC-V Program Flow
1513
Unit Testing in ESP32-S2
1513
Normal Test Cases
1514
Multi-Device Test Cases
1514
Multi-Stage Test Cases
1515
Tests for Different Targets
1516
Building Unit Test App
1517
Running Unit Tests
1517
Timing Code with Cache Compensated Timer
1518
Mocks
1519
Unit Testing on Linux
1521
Embedded Software Tests
1521
IDF Unit Tests on Linux Host
1521
USB OTG Console
1522
Hardware Requirements
1522
Software Configuration
1522
Uploading the Application
1523
Limitations
1523
Wi-Fi Driver
1524
ESP32-S2 Wi-Fi Feature List
1524
How to Write a Wi-Fi Application
1524
ESP32-S2 Wi-Fi API Error Code
1525
ESP32-S2 Wi-Fi API Parameter Initialization
1526
ESP32-S2 Wi-Fi Programming Model
1526
ESP32-S2 Wi-Fi Event Description
1526
ESP32-S2 Wi-Fi Station General Scenario
1529
ESP32-S2 Wi-Fi AP General Scenario
1532
ESP32-S2 Wi-Fi Scan
1532
ESP32-S2 Wi-Fi Station Connecting Scenario
1539
ESP32-S2 Wi-Fi Station Connecting When Multiple Aps Are Found
1543
Wi-Fi Reconnect
1543
Wi-Fi Beacon Timeout
1543
ESP32-S2 Wi-Fi Configuration
1543
Wi-Fi Easy Connect™ (DPP)
1549
Wireless Network Management
1549
Radio Resource Measurement
1549
Wi-Fi Location
1550
ESP32-S2 Wi-Fi Power-Saving Mode
1550
ESP32-S2 Wi-Fi Throughput
1551
Wi-Fi 80211 Packet Send
1551
Wi-Fi Sniffer Mode
1554
Wi-Fi Multiple Antennas
1554
Wi-Fi Channel State Information
1555
Wi-Fi Channel State Information Configure
1556
Wi-Fi HT20/40
1557
Wi-Fi Qos
1557
Wi-Fi AMSDU
1558
Wi-Fi Fragment
1558
WPS Enrollee
1558
Wi-Fi Buffer Usage
1558
How to Improve Wi-Fi Performance
1559
Wi-Fi Menuconfig
1562
Troubleshooting
1565
Wi-Fi Security
1569
ESP32-S2 Wi-Fi Security Features
1571
Protected Management Frames (PMF)
1571
WPA3-Personal
1572
Libraries and Frameworks
1574
Cloud Frameworks
1574
ESP Rainmaker
1574
AWS Iot
1574
Azure Iot
1574
Google Iot Core
1574
Aliyun Iot
1574
Joylink Iot
1574
Tencent Iot
1575
Tencentyun Iot
1575
Baidu Iot
1575
Espressif's Frameworks
1575
Espressif Audio Development Framework
1575
Esp-Csi
1575
Espressif DSP Library
1575
ESP-WIFI-MESH Development Framework
1576
Esp-Who
1576
ESP Rainmaker
1576
ESP-Iot-Solution
1576
Contributions Guide
1578
How to Contribute
1578
Before Contributing
1578
Pull Request Process
1578
Legal Part
1579
Related Documents
1579
Espressif Iot Development Framework Style Guide
1579
Install Pre-Commit Hook for ESP-IDF Project
1586
Documenting Code
1587
Creating Examples
1592
API Documentation Template
1593
Contributor Agreement
1595
ESP-IDF Versions
1598
Releases
1598
Which Version Should I Start with
1598
Versioning Scheme
1598
Support Periods
1599
Checking the Current Version
1600
Git Workflow
1601
Updating ESP-IDF
1601
Updating to Stable Release
1602
Updating to a Pre-Release Version
1602
Updating to Master Branch
1602
Updating to a Release Branch
1603
Resources
1604
Platformio
1604
What Is Platformio
1604
Installation
1604
Configuration
1605
Tutorials
1605
Project Examples
1605
Next Steps
1605
Useful Links
1605
Copyrights and Licenses
1606
Software Copyrights
1606
Firmware Components
1606
Build Tools
1607
Documentation
1607
ROM Source Code Copyrights
1607
Xtensa Libhal mit License
1608
Tinybasic Plus mit License
1608
Tjpgdec License
1608
Advertisement
Espressif ESP32-S2 User Manual (83 pages)
ESP Test Tools
Brand:
Espressif
| Category:
Test Equipment
| Size: 41 MB
Table of Contents
Table of Contents
2
Development Stage
3
RF Test Tool
3
RF Test Items
3
RF Certifications
4
Esprftesttool Toolkit
4
Esprftesttool
4
Downloadtool
8
Powerlimittool
10
RF Test Items
18
Wi-Fi Non-Signaling Test
18
Wi-Fi Signaling Test
23
Wi-Fi Adaptivity Test
26
Wi-Fi Blocking Test
32
RF Test Certification
36
CE Certification
36
FCC Certification
37
SRRC Certification
37
Production Stage
37
Flash Download Tool User Guide
37
Preparation
37
Tool Overview
38
Download Example
41
Espressif Production Testing Guide
45
Introduction
45
Environment Setup
52
Production Testing Tool
55
Appendix B: GPIO Conductivity Test Configuration
62
Appendix C: Firmware Version Verification Test
63
Certification
63
Test Fixture Manufacturing Instruction
63
About this Instruction
63
Overview
64
The Main Structure of a Typical Module Fixture
64
Fixture Testing
75
Appendix
79
Faq
79
RF Testing
80
WFA Certification Test
80
Flash Download Tool
81
Espressif Production Testing Guide
82
Related Documentation and Resources
82
Disclaimer and Copyright Notice
83
Advertisement
Related Products
Espressif ESP32--S3 Series
Espressif ESP32-S3-BOX-3
Espressif ESP32-S3-BOX-3B
Espressif ESP32-LyraTD-MSC
Espressif ESP32-LyraT
Espressif ESP32-Ethernet-Kit
Espressif ESP32-JCI-R
Espressif ESP32--MINI--1
Espressif ESP32-WROOM-DA
Espressif ESP32-C5
Espressif Categories
Microcontrollers
Motherboard
Control Unit
Single board computers
Industrial Electrical
More Espressif Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL