小智快速编译烧录教程
IDF 编译工具下载安装
我们以 MacOS 下安装命令为例
brew install libgcrypt glib pixman sdl2 libslirp dfu-util cmake python
brew tap espressif/eim
brew install eim
eim install -i v5.5.1
包括Windows、Linux和MacOS系统。
编译
安装完工具之后,每次使用之前先激活一下:
source ~/.espressif/tools/activate_idf_v5.5.1.sh
然后就能够用 idf.py 命令了。
cd main/xiaozhi-hardware
idf.py clean
idf.py set-target esp32s3 # 比如我是Espresssif ESP-BOX-3,那就是esp32s3,如果是虾哥的C3板子,那就是esp32c3,其他类推。
idf.py menuconfig # 进去后选择合适的板子Board Type ---> Espresssif ESP-BOX-3 (这是我的板子)
idf.py build
芯片和板子型号对应关系:
- ESP-BOX-3: esp32s3
- Xmini-C3-V3: esp32c3
烧录
将电脑的USB口连接到esp32板子的Type-C 接口上。
然后根据build步骤提示的结果,用下面的命令烧录到板子里面。
idf.py flash
如果上面的不行,用下面更详细的。
python -m esptool --chip esp32s3 -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 16MB --flash_freq 80m 0x0 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0xd000 build/ota_data_initial.bin 0x20000 build/xiaozhi.bin 0x800000 build/generated_assets.bin
如果要看运行的状态,可以用monitor监控:
idf.py monitor
Very well presented. Every quote was awesome and thanks for sharing the content. Keep sharing and keep motivating others.
Nice post. I learn something totally new and challenging on websites
This is really interesting, You’re a very skilled blogger. I’ve joined your feed and look forward to seeking more of your magnificent post. Also, I’ve shared your site in my social networks!
Konular mükemmel olduğu gibi site teması da içeriğe müthiş uyum sağlamış. Tebrikler
You’re so awesome! I don’t believe I have read a single thing like that before. So great to find someone with some original thoughts on this topic. Really.. thank you for starting this up. This website is something that is needed on the internet, someone with a little originality!
I just like the helpful information you provide in your articles
This was beautiful Admin. Thank you for your reflections.
Hi,how are you
I am truly thankful to the owner of this web site who has shared this fantastic piece of writing at at this place.