Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ESP32

Checkout

git clone git@github.com:78/xiaozhi-esp32.git

Install ESP IDF

https://docs.espressif.com/projects/esp-idf/zh_CN/v5.5.2/esp32/get-started/linux-macos-setup.html

Development

Setup enviroment and flash device

  • esp32-s3
. $HOME/esp/esp-idf/export.sh
idf.py set-target esp32-s3
idf.py menuconfig
idf.py build
idf.py -p PORT flash
# macos
idf.py -p /dev/cu.usbserial-14410 flash
# linux
sudo chmod 777 /dev/ttyACM0
idf.py -p /dev/ttyACM0 flash

Other useful command

  • Get PORT
ls /dev/cu.*
  • Debug monitor
idf.py monitor
idf.py -p PORT flash monitor