juechafun/01-项目/2605-MicroPythonESP32S3/操作说明-ESP32S3-示例代码.md

79 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
#领域/未知
#复盘/0 #临时/备忘 #状态/待处理
## 一句话描述
[________]
---
样例程序260603-拆卸款ESP32S3-SD卡示例程序.zip
```bash
# 1. 激活 ESP-IDF 环境
source /opt/esp/idf/export.sh
# 2. 进入项目目录
cd /workspace/output/sdmmc/sdmmc
# 3. 构建项目
idf.py build
esptool.py --chip esp32s3 merge_bin -o merged.bin 0x0 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/xr-ai-cam.bin
# 下载 merged.bin
```
![[Pasted image 20260603101137.png]]
```bash
cat > sdkconfig.defaults << 'EOF'
# PSRAM Configuration
CONFIG_SPIRAM=y
CONFIG_SPIRAM_MODE_OCT=y
CONFIG_SPIRAM_USE_MALLOC=y
# Camera Configuration (if needed)
CONFIG_CAMERA_ENABLED=y
# SD Card Configuration (if needed)
CONFIG_ESP32S3_SPIRAM_SUPPORT=y
EOF
```
```bash
cd /workspace/output/esp32-s3-cam && \
source /opt/esp/idf/export.sh && \
idf.py fullclean && \
idf.py set-target esp32s3 && \
idf.py build
cd /workspace/output/esp32-s3-cam/build
esptool.py --chip esp32s3 merge_bin -o ../merged.bin @flash_args
```
```bash
cd /workspace/output/esp32_video/spi_lcd_touch && source /opt/esp/idf/export.sh && idf.py fullclean && idf.py set-target esp32s3 && idf.py build
```