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?