Chapter 1: Environment Setup
Chapter goal: Set up the firmware flashing environment and the server environment, preparing for all the hands-on chapters that follow.
1.1 Firmware Flashing Environment
Method A: No Development Environment Needed (Recommended for Beginners)
Install the CH340K serial driver
Open esptool-js in your browser
Connect the NanoCam, select the serial port, and select the firmware .bin file
Click Program to flash
Method B: Command Line
pip install esptool
esptool.py --chip esp32s3 --port COM_x write_flash 0x0 nanocam_xxx.binMethod C: ESP-IDF Development Environment (Advanced)
Install VSCode + the ESP-IDF extension
F1 →
ESP-IDF: Configure ESP-IDF ExtensionSelect or install ESP-IDF v5.4+
Build:
idf.py build flash monitor
Method D: ESP-EIM-GUI Installation
Download from the official website https://dl.espressif.cn/dl/eim/
Download and double-click to enter the EIM page; the top-right corner lets you switch to the Chinese version
Click Start Installation
Next, choose Custom Installation
Before that, you need
gitandpython3.12.xinstalled (git download mirror for China: CNPM Binaries Mirror)Select esp32s3 as the target device
For the ESP-IDF version, check "Show old stable versions" and scroll down to select v5.4.1
Leave the download mirror unchanged, then click Next
Select ESP-IDF features — selecting all is recommended — then continue to the next step
Select the tools, click Next, then choose the installation location you want and install; wait for the installation to complete After the installation completes, this version has an unzip issue: locate C:\Espressif\dist\xtensa-esp-elf-14.2.0_20241119-x86_64-w64-mingw32.zip, copy the archive to C:\Espressif\tools\xtensa-esp-elf, unzip it, find the xtensa-esp-elf folder, and replace the folders under C:\Espressif\tools\xtensa-esp-elf\esp-14.2.0_20241119; compilation will then succeed
1.2 Server Environment
xiaozhi.me Official Service (Free)
Visit xiaozhi.me and register an account
Enter the console
Once the module connects to the network, it announces a 6-digit verification code
Click Add Device on the right side of the "Agents" section
Enter the announced 6-digit verification code
After the device is bound, you can start chatting
Next chapter: Chapter 2: Quick Start

