# ESP-IDF 目标构建(esp32s3)。用法(PowerShell,在 firmware/ 下): # .\build_idf.ps1 # # 钉死 ESP-IDF v5.4:IDF 小版本之间 CMake / menuconfig 有差异,换版本要先改这里 # 并写进 HANDOFF.md。机器上还装着 v5.3.1 / v5.5 / v5.5.1 / v6.0-rc1,别混。 # # 关掉 ccache:开着 ccache 时 xtensa-esp32s3-elf-gcc 14.2.0 编 esp_lcd_panel_rgb.c # 出过一次 "internal compiler error: Segmentation fault",同样的代码关掉就过。 # 慢几十秒换一个不会假失败的验收命令,值。 # # 注意:export.ps1 里的 python 会往 stderr 写正常信息,PowerShell 5.1 下 # $ErrorActionPreference="Stop" 会把它当成终止错误,所以 export 期间不能开。 $idf = "D:\Users\35138\esp\v5.4\esp-idf" Set-Location $PSScriptRoot if (-not $env:IDF_PATH) { . "$idf\export.ps1" | Out-Null } $env:IDF_CCACHE_ENABLE = 0 idf.py build exit $LASTEXITCODE