You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

ESP32-S3-WROOM-1U在PlatformIO中应选择哪个开发板配置?

ESP32-S3-WROOM-1U在PlatformIO中的正确board参数配置

问题描述

我有一块ESP32-S3-WROOM-1U,希望通过VSCode搭配PlatformIO对其进行编程,请问需要在platformio.ini文件中设置哪个开发板参数?

我曾尝试以下两种配置均失败:

第一种配置

[env:esp32s3box]
platform = espressif32
board = esp32s3box
framework = arduino
monitor_speed = 115200

串口监视器输出错误信息:

ELF file SHA256: ad858c055791c095

E (153) esp_core_dump_flash: Core dump flash config is corrupted! CRC=0x7bd5c66f instead of 0x0
Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40376d60
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x44c
load:0x403c9700,len:0xbe4
load:0x403cc700,len:0x2a68
entry 0x403c98d4
E (84) spi_flash: Detected size(8192k) smaller than the size in the binary image header(16384k). Probe failed.

assert failed: do_core_init startup.c:328 (flash_ret == ESP_OK)


Backtrace: 0x40377152:0x3fceb180 0x4037a779:0x3fceb1a0 0x40380081:0x3fceb1c0 0x42006a00:0x3fceb2f0 0x40376ac3:0x3fceb320 0x403cd823:0x3fceb350 0x403cdae2:0x3fceb380 0x403c9929:0x3fceb4b0 0x40045c01:0x3fceb570 |<-CORRUPTED

第二种配置

[env:esp32s3]
platform = espressif32
board = esp32s3
framework = arduino
monitor_speed = 115200

出现错误提示:

Resolving esp32s3 dependencies...
UnknownBoard: Unknown board ID 'esp32s3'

正确配置

使用esp32-s3-devkitc-1作为board参数即可正常运行,对应的platformio.ini配置如下:

[env:esp32-s3-devkitc-1]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
monitor_speed = 115200

错误原因说明

  • 选择esp32s3box失败:该板型默认配置的Flash容量为16MB,而ESP32-S3-WROOM-1U的Flash容量通常为8MB,镜像头中指定的Flash大小与硬件实际容量不匹配,导致启动时Flash探测失败。
  • 选择esp32s3失败:PlatformIO的espressif32平台中并没有这个板型ID,属于无效参数,因此无法识别。

内容的提问来源于stack exchange,提问作者stdcerr

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.06 06:47:09