-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esp32-led-strip-sdk unable to build in VS Code using PlatformIO #17
Comments
I have a similar problem.
@kubamracek Could you please help us to solve the issue? |
I think these might be separate problems. If you can, post full logs and also details about your OS, configuration, environment, etc. If swiftc is not getting called at all, my best guess would be that CMake is too old. The Swift support in CMake is only available in CMake 3.29+ and it's conceivable that in a terminal your PATH is pointing to a different CMake than from VSCode. Full build logs, maybe even screenshots, would be helpful. Also, what is your declared minimum CMake version in your CMakeListst.txt?
Right, this is probably a common issue. You can force a Swift compiler path with
What's your ESP IDF version? And are you getting this error just by building the |
The system is Ubuntu 24.04.
Looks like the problem belongs to my version of Cmake (3.28.3-1build7)
ESP-IDF v5.4-dev-826-g8760e6d2a7-dirty. However, I'm going to compile the example with the latest stable SDK (5.2.2).
Yes. |
SDKs, tools, languages...
I've successfully built the example, but a new problem has arrived. See below. The example calls abort on random number generation. The exception itself. abort() was called at PC 0x420069b7 on core 0 Stack dump detected TP : 0x408071f8 T0 : 0x37363534 T1 : 0x7271706f T2 : 0x33323130 S0/FP : 0x00000004 S1 : 0x40811934 A0 : 0x408118fc A1 : 0x40811932 MHARTID : 0x00000000 Backtrace: panic_abort (details=details@entry=0x408118fc "abort() was called at PC 0x420069b7 on core 0") at /home/andy/Projects/MCU/ESP/esp-idf/components/esp_system/panic.c:466 Rebooting... |
I'm reproducing |
@avkghost You can apply the attached patch to fix newlib getentropy error. |
@erhankur Thanks. It's help. Maybe you could help with the problem with ESP-IDF v5.4-dev-826-g8760e6d2a7-dirty
|
As a temporary solution you can comment out 2 assertions from
|
@erhankur Thank you so much. |
The current locations of
This patch also fixes that errors. |
The solution works for C6.
|
|
@erhankur Is this an issue that will be fixed in https://github.com/espressif/esp-idf ? |
@PaulSolt try using the idf master branch. You shouldn't need to apply a patch. |
@erhankur What release will have the fixes from The previous patches didn't work for me, so I had to manually apply the changes. Attached are the patches based on your patches that worked for me.
|
@PaulSolt Please stay in the master (v5.4) branch. Don't checkout to the release v5.2 or v5.3 As a summary;
|
Thank you @erhankur for the details. I'll switch to the master (v5.4) branch and recommend others do the same. I appreciate your help. |
I'm configuring CMakeLists same as described in Example, it successfully works from Terminal using idf.py build BUT doesn't work from in VSCode using PlatformIO (idf 5.2.1)
Looks like custom command/custom target never gets called, so _swiftcode.o never generated and build fails due to undefined symbols for app_main function which is implemented in Main.swift.
I see command and target configuration in build.ninja but they are not called, I've tried to replace swiftc command with custom test command but it's not getting executed.
I've either filed an issue in PlatformIO repo: platformio/platform-espressif32#1401
Please advice.
The text was updated successfully, but these errors were encountered: