linux 在PlatformIO中为ESP 32-S3-WROOM选择哪块板?

7rfyedvj  于 2023-11-17  发布在  Linux
关注(0)|答案(1)|浏览(240)

我有一个ESP32-S3-WROOM-1U,想使用PlatformIO和vscode来编程,我需要在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


但我得到:``解决esp32s3依赖. UnknownBoard:Unknown board ID 'esp32s3'

What `board` do I need to select to make this work?

sdnqo3pr

sdnqo3pr1#

在PlatformIO中从未有过确切的消息,但听起来你的板有8mb或闪存,而esp32s3box有16mb,所以PlatformIO无法正确写入二进制文件。
您在platformio.ini中指定的板类型只是指向platformio配置中的.h文件的指针,该文件包含引脚Map和一些预设信息,如CPU速度,闪存大小等
大多数时候,如果你的电路板是相当通用的(没有花哨的东西,如内置屏幕,电池充电器,相机等),你可以简单地使用一些其他通用的电路板类型,如
这个是8mb flash

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

; try enabling or disabling this line
board_build.mcu = esp32s3

字符串
我经常使用这个,但我认为它是4mb闪存

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

相关问题