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

在PlatformIO中应为NodeMcu ESP32-S选择哪款开发板?

解决PlatformIO中找不到对应ESP32 Dev Module的问题

Arduino IDE里的ESP32 Dev Module在PlatformIO中对应的是官方板ID esp32dev,这是Espressif提供的通用ESP32开发板配置,参数和Arduino IDE里的选项完全匹配。

你只需要在项目的platformio.ini配置文件中添加以下内容即可:

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

如果需要自定义上传端口、Flash大小等参数,可以补充配置项,比如:

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
upload_port = /dev/ttyUSB0  # 替换为你的实际串口端口
board_build.flash_size = 4MB
board_build.f_flash = 40000000L

这个配置会自动加载和Arduino IDE中ESP32 Dev Module一致的编译、上传参数,无需额外适配其他开发板型号。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.08.25 21:48:20