Getting Started with ESP-IDF

From Embedded Workshop
Revision as of 13:19, 12 November 2022 by JMerkle (talk | contribs)
Jump to navigation Jump to search

ESP-IDF is a development environment for ESP32 processors to build larger projects
By default, an ESP-IDF project will utilize FreeRTOS to manage multiple components to build a system.

Hardware

All development boards utilize a "board on board" process
The ESP32 board is mounted to a development board
The ESP32 board has WiFi circuitry and external SPI Flash

FreeRTOS

Each "component" may create its own thread / task
Priorities are used to define/manage what's important
By default, heap memory is used to create a thread / task as well as its stack space

Logging System

A logging system is already implemented into each component, and is expected to be used to build the project.
Message levels:
* Verbose
* Debug
* Informational
* Warning
* Error

ESP-IDF Installation

Visual Studio Code works well, with an ESP-IDF extension, to setup, build, flash, monitor, and debug a project.
https://docs.espressif.com/projects/esp-idf/en/v4.4.3/esp32/get-started/vscode-setup.html

I'll try to make this install as painless as possible, but many parts and steps are involved...
* ESP-IDF from github - The latest release is 4.4.3, which is a bugfix patch.
* Python - Used to script many features/functions
* Visual Studio Code
* Visual Studio Code Extension for ESP-IDF