
Serve a Web Page From ESP32 With esp_http_server
Run a web server on an ESP32 with esp_http_server in ESP-IDF v5.4: register GET and POST handlers, embed an HTML file and return JSON.
Bare-metal firmware on STM32, ESP32, RP2040, AVR, nRF and RISC-V: GPIO, UART, SPI, I2C, DMA, interrupts, timers, low power and over-the-air updates.

Run a web server on an ESP32 with esp_http_server in ESP-IDF v5.4: register GET and POST handlers, embed an HTML file and return JSON.

Package ESP-IDF code as a reusable component: folder layout, idf_component_register, idf_component.yml dependencies and sharing it.

Connect an ESP32 to Wi-Fi in station mode with ESP-IDF v5.4: set up netif and the event loop, handle STA events, retry and wait for an IP.

Use idf.py menuconfig, sdkconfig and sdkconfig.defaults to set ESP-IDF options, add your own Kconfig.projbuild entries and read them as CONFIG_ macros in C.

Compare ESP32, ESP32-S3, ESP32-C3 and ESP32-C6 on CPU, radios, memory, USB and peripherals, with a decision table for picking one for a new design.

Install ESP-IDF v5.4 on Linux or macOS, source export.sh, build the hello_world example with idf.py and flash it to an ESP32 board over USB.

Use avr-libc set_sleep_mode, sleep_enable and sleep_cpu to power down an ATmega328P and wake on a pin change interrupt, with the race-free sequence.

Cut RP2040 current by gating unused clocks with the CLOCKS sleep-enable registers and entering dormant mode, then wake on a GPIO edge with pico-extras.

Enter ESP32 deep sleep with esp_deep_sleep_start, wake on a timer and an ext0 GPIO, keep a counter in RTC memory, and read the wake-up cause on boot.

Put an STM32F4 into Stop mode with HAL_PWR_EnterSTOPMode, wake it with an RTC alarm every minute, and restore the clocks that Stop switches off.

Replace a busy main loop with __WFI so a Cortex-M sleeps until the next interrupt, and close the lost-wakeup race with a PRIMASK guard.

Sleep, Stop and Standby are the three usual low-power modes on a Cortex-M microcontroller. Learn what each one turns off, what it keeps and how it wakes.
We send one email when a new post is published. No spam.