Closed plystdr closed 4 months ago
cc @Jason2866
Official Platformio does not support Arduino v3. There are other ways to get this going with PlatformIO supported by the community
@plystdr You can use the community version which supports https://github.com/pioarduino/platform-espressif32 See examples folders to see how Arduino as component setup has to be done
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.03/platform-espressif32.zip
board = ...
...
PlatfromIO issue, solution is proposed above. Marking as wontfix at our end.
Can I consider this as answered @plystdr? thanks!
@plystdr You can use the community version which supports https://github.com/pioarduino/platform-espressif32 See examples folders to see how Arduino as component setup has to be done
platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.03/platform-espressif32.zip board = ... ...
@Jason2866 You're a hero. Got myself stuck up a tree with no way down after finding an issue deep in ESP-IDF (using Arduino-ESP32), only to find actually trying to use ESP-IDF a very probable-cause reason that so many programmers are completely bald...
Your repo and suggestions actually WORK, thank you!
Now I just need to figure out how to get a modified repository (based on the proper ESP-IDF version) linked into PlatformIO with my corrections in it to verify that the issue is fixed...
(yes, the corrections DO work...now I'll have to PR the two lines of changed code deeeeeep in the Bluedroid libraries...)
@WebDust21 To use your own IDF version is easy. Fork https://github.com/pioarduino/esp-idf/tree/release/v5.1 Do your changes there. Create a zip including the git submodules. Easiest to do is via this github actions https://github.com/webdust21/esp-idf/blob/release/v5.1/.github/workflows/release_zips.yml It will create the zip and does a release in your fork. Fork https://github.com/pioarduino/platform-espressif32 and change this entry pointing to your IDF https://github.com/pioarduino/platform-espressif32/blob/18cb216bea0ffb63390d035d76451af9d8c0435d/platform.json#L48 Use your platform with
platform = https://github.com/webdust21/platform-espressif32.git#develop
Board
Custom esp32-s3 board
Device Description
Custom board.
Hardware Configuration
Multiple sensors.
Version
latest master (checkout manually)
IDE Name
PlatformIO VSCode
Operating System
Windows 11
Flash frequency
80Mhz
PSRAM enabled
yes
Upload speed
115200
Description
Cannot make platformio build the project. I even tried skip version checking but nothing works...
; PlatformIO Project Configuration File ; ; Build options: build flags, source filter ; Upload options: custom upload port, speed and extra flags ; Library options: dependencies, extra library storages ; Advanced options: extra scripting ; ; Please visit documentation for the other options and examples ; https://docs.platformio.org/page/projectconf.html
[common] lib_deps = https://github.com/joltwallet/esp_littlefs.git ayushsharma82/ElegantOTA@^3.1.2
[env:test-project] platform = https://github.com/platformio/platform-espressif32.git platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32#master framework = espidf, arduino board = test-board board_build.mcu = esp32s3 upload_protocol = esptool monitor_speed = 115200 board_build.f_cpu = 240000000L board_build.f_flash = 80000000L board_build.flash_mode = qio board_build.partitions = partition_scheme.csv board_build.filesystem = littlefs board_upload.offset_address = 0x670000 lib_deps = ${common.lib_deps} extra_scripts = tasks.py build_flags = -DCORE_DEBUG_LEVEL=5 -DBOARD_HAS_PSRAM -DARDUINO_ESP32S3_DEV -DCONFIG_SPIRAM_USE -mfix-esp32-psram-cache-issue -w -Wno-unused-variable -Wno-unused-function -DELEGANTOTA_USE_ASYNC_WEBSERVER=1 -DARDUINO_SKIP_IDF_VERSION_CHECK=1
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide