Page 1 of 1

ESP32-S3生成MICROPYTHON固件一直失敗!?

Posted: Wed Aug 07, 2024 1:52 pm
by Kinny_2139
各位工程,小哥大哥,大家好
最近接觸這款ESP-32-S3
閱讀了官方的入門文件燒入ESP-IDF與MICROPYTHON網站上的固件都沒問題
但是想自己編譯固件生成MICROPYTHON固件卻屢次失敗
我使用的方式為
安裝好ESP-IDF V5.0-V5.3(都試過了都失敗)
執行intall.bat與export.bat後
在WINDOWS11底下開啟CMD
CMD輸入
git clone https://github.com/micropython/micropython.git
cd micropython 再輸入git submodule update --init #更新子模塊
cd micropython/ports/esp32
idf.py set-targer esp32s3
idf.py menuconfig # 設置clock與flash spped
接下來
idf.py build #一直失敗錯誤訊息如下(詳細內容如插件)
Generated C:/micropython/ports/esp32/build/bootloader/bootloader.bin
[109/109] cmd.exe /C "cd /D C:\micropython\ports\esp32\bui...:/micropython/ports/esp32/build/bootloader/bootloader.bin"Bootloader binary size 0x4470 bytes. 0x3b90 bytes (47%) free.
[985/1290] cmd.exe /C "cd /D C:\micropython\ports\esp32\bu...dr.py C:/micropython/ports/esp32/build/genhdr/mpversion.h"GEN C:/micropython/ports/esp32/build/genhdr/mpversion.h
[989/1290] Generating ../../genhdr/qstr.i.lastFAILED: genhdr/qstr.i.last C:/micropython/ports/esp32/build/genhdr/qstr.i.last
esp-idf\main_esp32s3\CMakeFiles\qstr.i.last-417609e.bat 409aad0b09196caa
tεLkw{C
Batch file failed at line 3 with errorcode 1
[992/1290] Generating C:/micropython/mpy-cross/build/mpy-crossFAILED: C:/micropython/mpy-cross/build/mpy-cross
cmd.exe /C "cd /D C:\micropython\ports\esp32\build\esp-idf\main_esp32s3 && make -C C:/micropython/mpy-cross"
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
make: Entering directory `C:/micropython/mpy-cross'
mkdir -p build/genhdr

原本想要從C的模塊MINIMP3移植到micropython上import但屢次失敗
後來嘗試使用ESP-IDF工具框架來生成micropython固件也是失敗
請求高人不吝嗇指點 :)