platformio-home icon indicating copy to clipboard operation
platformio-home copied to clipboard

Error creating new project esp32-s3-devkitm-1 Could not initialize project

Open mcexmltv opened this issue 1 year ago • 1 comments

PIO Core Call Error: "Resolving esp32-s3-devkitm-1 dependencies...\r\n\n\nUnknownBoard: Unknown board ID 'esp32-s3-devkitm-1'"

mcexmltv avatar Mar 14 '24 13:03 mcexmltv

Worked for me: pio project init -b esp32-s3-devkitm-1 The following files/directories have been created in /private/tmp/booger2 include - Put project header files here lib - Put project specific (private) libraries here src - Put project source files here platformio.ini - Project Configuration File Resolving esp32-s3-devkitm-1 dependencies... Already up-to-date. Project has been successfully initialized!

$ echo "void setup(void){} void loop(void){} " > src/main.cc $ pio run [ ... ]

Linking .pio/build/esp32-s3-devkitm-1/firmware.elf Retrieving maximum program size .pio/build/esp32-s3-devkitm-1/firmware.elf Checking size .pio/build/esp32-s3-devkitm-1/firmware.elf Advanced Memory Usage is available via "PlatformIO Home > Project Inspect" RAM: [= ] 5.6% (used 18244 bytes from 327680 bytes) Flash: [= ] 7.0% (used 234081 bytes from 3342336 bytes) Building .pio/build/esp32-s3-devkitm-1/firmware.bin esptool.py v4.5.1 Creating esp32s3 image... Merged 2 ELF sections Successfully created esp32s3 image. ================================== [SUCCESS] Took 11.35 seconds ==================

Perhaps you have an oudated PlatformIO?

pio --version PlatformIO Core, version 6.1.14

Do you perhaps have a case difference in your filesystem and the board? My OS (MacOS) doesn't care about case sensitivity matches, but since you didn't include the command you issued, we can't tell.

$ find ~/.platformio -name esp32-s3-devkitm-1* -print ~/.platformio/platforms/espressif32/boards/esp32-s3-devkitm-1.json

Edit: well, it seems to care - even on MacOS: $ pio project init -b eSp32-S3-dEvKitM-1 Usage: pio project init [OPTIONS] Try 'pio project init -h' for help.

Error: Invalid value for '-b' / '--board': eSp32-S3-dEvKitM-1. Please search for board ID using platformio boards command

So pio project init -b esp32-s3-devkitm-1 seems to be the winning ticket for:

$ pio project config Computed project configuration for /private/tmp/booger2 env:esp32-s3-devkitm-1

platform = espressif32 board = esp32-s3-devkitm-1 framework = arduino

➜ booger2 pio upgrade You're up-to-date! PlatformIO 6.1.14 is currently the newest version available.

If it's not working for you, please include more a reproducible, failing test case.

robertlipe avatar Apr 02 '24 07:04 robertlipe