Help with correct platform

I am trying to use a project shared as a Github link, Csontikka/esp32-tailscale-subnet-router

The .ini file is as below. the original ini file used the two settings below and that file would not build at all and kept on looping looking for a toolchain mirror.

;platform = espressif32@^6.4.0
;board = esp32s3box

so, i tried changing to the pioarduino platform and a board = esp32-s3-devkitc1-n16r8 which is the correct board

; PlatformIO build configuration.
;
; The canonical target is esp32-s3 with octal PSRAM (N16R8 reference
; board). Other variants are kept around so the codebase doesn’t drift
; into S3-only surprises, but they are not regression-tested.
[platformio]
default_envs = esp32-s3
; PlatformIO defaults to looking for project sources in src/, but ESP-IDF
; expects them in main/. Tell PIO to look there.
src_dir = main

[env]
framework = espidf
monitor_speed = 115200
upload_speed = 921600
build_flags =
  -Wall
  -Wno-unused-function
[env:esp32-s3]
;platform = espressif32@^6.4.0
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
;board = esp32s3box
board = esp32-s3-devkitc1-n16r8
board_build.partitions = partitions.csv
board_build.flash_mode = qio
board_upload.flash_size = 4MB
; Pre-build hooks:
;  - regen_embed.py forces a CMake reconfigure when main/index.html is
;    newer than main/index_html_data.c. Without this PIO caches the
;    configure step and the device serves a stale SPA blob.
;  - force_rebuild_app_desc.py removes the cached esp_app_desc.c object
;    so \_*DATE*\_/\_*TIME*\_ inside esp_app_desc_t refresh on every build.
;    Telemetry’s “V..” build label reads from there;
;    without the hook the label freezes at the cold-build timestamp
;    and stays frozen across every incremental rebuild after that.
extra_scripts =
  pre:tools/regen_embed.py
  pre:tools/force_rebuild_app_desc.py
build_flags =
  ${env.build_flags}
  -DBOARD_ESP32S3

upload_port=COM10

This ini allows the project to build and upload without issue but the ESP doesn’t seem to be working properly and all I see in the serial terminal is,

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce2820,len:0x1060
load:0x403c8700,len:0xb30
load:0x403cb700,len:0x2d64
entry 0x403c88a4
I (827) esp_core_dump_flash: Init core dump to flash
I (827) esp_core_dump_flash: Found partition ‘coredump’ @ 3e0000 65536 bytes
W (838) rst_hist: === reset reason: POWERON ===
E (888) sdmmc_common: sdmmc_init_ocr: send_op_cond (1) returned 0x107
E (888) vfs_fat_sdmmc: sdmmc_card_init failed (0x107).
W (888) sdlog: no microSD (ESP_ERR_TIMEOUT) — recorder dark
.\[5nType ‘help’ to get the list of commands.Use UP/DOWN arrows to navigate through command history.Press TAB when typing command name to auto-complete.Your terminal application does not support escape sequences.

Line editing and history features are disabled.
On Windows, try using Windows Terminal or Putty instead.tsr>  
E (20968) esp-tls: couldn’t get hostname for :api.github.com: getaddrinfo() returns 202, addrinfo=0x0
E (20968) esp-tls: Failed to open new connection
E (20978) transport_base: Failed to open a new connection
E (20978) HTTP_CLIENT: Connection failed, sock < 0

I haven’t used espidf before and this morning I noticed this message ‘Bad CMake executable: “”. Check to make sure it is installed or the value of the “cmake.cmakePath” setting contains the correct path’

However, with the ini above, ie using the pioarduino platform the project built / compiled and loaded to the device without issue.

Can anyone help please?

Log output seems pretty normal to me? It just can’t connect to the internet yet and there’s no SD card, which was marked optional anyway. Does the ESP32 open a new WiFi access point like https://github.com/Csontikka/esp32-tailscale-subnet-router#2-first-time-setup says?

Hi Max, I have done some more work and based on that I agree the log seems ok. There is an access point that appears on my phone titled “myssid” with a box to enter a password, but there is no indication, that I can find, to indicate what that password may be. I have determined that it must be at least 8 chars because if, say, 12345678 is entered then an arrow appears to allow the password to be entered. I have tried to guess that password but so far to no avail. That is where I am now stuck. I have reached out to the project author to seek their help.
Thank you for looking into this problem for me. I ended up setting the platform back to espressif32@^6.4.0 and the board = esp32-s3-devkitc-1 which took a long time to build / compile the project and in fact used version 6.12.0. The project did eventually build successfully and upload to the ESSP32. That leads me to another question, “Can the pioarduino platform be used to build espidf projects? Co-Pilot said it couldn’t be used.

You’re supposed to configure the firmware using KConfig. Otherwise you will get the defaults. The defaults are as you can see in the Kconfig, a WiFi access point called “myssid” with password “mypassword”.

As documented, you can open a PlatformIO Core CLI and get into the configuration menu with pio run -t menuconfig.

You absolutely can build ESP-IDF projects with both the PIOArduino platform and the official espressif32 platform. They will just be using different ESP-IDF versions internally. You’ve already built this firmware with PlatformIO, proving that it works. The AI is wrong.