Bring-up

Hello World UART heartbeat

Tells you in one page whether the toolchain, flash path and serial monitor work.

Bring-up Serial log ESP32 family

Official path: examples/get-started/hello_world

01 Overview

The official Hello World prints a counter. It validates IDF, UART and the chip clock — not a product feature.

  • Use when: new PC setup, new module lot, factory flash station.
  • Skip when: firmware already downloads reliably.
  • Official proves: app_main runs and UART logs appear.
  • Official does not: log-level policy or sealing the debug port for production.

02 Hardware

  • Chip: any IDF target.
  • Minimum parts: USB-UART (on-board or external). Do not rely only on USB-Serial-JTAG if you will debug sleep.
  • Pins: UART0 by default (often GPIO1/3). If the custom board moves the port, the dongle must follow.
  • Power: flashing draws more than idle; weak USB cables fail here.

03 Software flow

1. idf.py set-target.

2. Build, flash, monitor.

3. app_main loops printf + delay.

4. Leave the monitor with Ctrl+].

5. Products should use ESP_LOGx and drop verbose for release.

04 Core points

  • This is a fixture, not a feature.
  • Baud, port and chip target must match.
  • Plan how the board is programmed after the enclosure is closed — that leads to OTA.
  • Custom work: programming header, UART map, factory log format.

中文

点亮与上电

Hello World 串口心跳

工具链、烧录、串口监控是否通,这一页就能判断。

点亮与上电 串口日志 ESP32 family

官方路径: examples/get-started/hello_world

01 项目概述

官方 Hello World 周期性打印计数。用来确认 IDF、串口和芯片时钟,不是产品功能。

  • 适用: 新电脑环境、新模组批次、产线烧录工位。
  • 不适用: 已经能稳定下载固件的项目。
  • 官方能证明: app_main 在跑,UART 日志能出来。
  • 官方没做的: 日志等级策略、关闭 ROM 打印、量产关掉调试口。

02 项目硬件描述

  • 芯片: 任意支持 ESP-IDF 的目标。
  • 最小物料: USB-UART(板载芯片或外部)。深睡调试不要用芯片自带 USB-Serial-JTAG 当唯一日志口。
  • 引脚: 默认 UART0(常见 GPIO1/3)。定制板若改口,下载器要跟着改。
  • 供电: 下载时电流比空转高,USB 线要能供足。

03 项目软件流程描述

1. idf.py set-target 选芯片。

2. 编译、烧录、monitor。

3. app_main 里循环 printf + delay。

4. 退出监视器 Ctrl+] 。

5. 产品里应换成 ESP_LOGx,并按量产关闭 verbose。

04 项目核心点

  • 这是工装,不是功能。 客户问「产品做什么」时不要停在这一页。
  • 波特率、口线、芯片目标三者必须一致。 否则「没日志」其实是下错芯片。
  • 量产要规划下载口是否引出。 外壳封死后如何升级,要和下一个 OTA 案例一起想。
  • 可定制: 下载座、UART 分配、产测打印格式。