-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Description
Board
ESP32-S3
Device Description
I use a custom board, but it has been tested previously and worked perfectly fine.
Hardware Configuration
Just using the USB port to connect with my laptop
Version
latest development Release Candidate (RC-X)
IDE Name
VSCode
Operating System
Windows 10
Flash frequency
40Mhz
PSRAM enabled
yes
Upload speed
115200
Description
After i tried to merge a branch i worked on on my master branch, my code suddently stop building, and some libraries that were used in the previous branch started being unable to open.
i can't build my code because some libraries aren't found by vscode. Even when i define the includepath in the c_pp_properties.json for each of them.
Not only the merged project didn't built, i picked up the previous version of my code from the commit just before the merge, and this one wasn't building anympore too
So i tried to come back to a very simple project like the hello_world template from ESP-IDF, to see if it was only coming from my program, but turns out the same kind of problem occurs. i followed the "Arduino as a ESP-IDF component" tutorial on the espressif website (https://docs.espressif.com/projects/arduino-esp32/en/latest/esp-idf_component.html) to be sure i made things correctly but still
currently the file that cannot be open is "portmacro.h" but it wasn't the same on the previous program (can't remember the name) and it changed several times.
i tried to run both of the code on ESP-IDF v5.2.2, v5.1.2, v5.1.3, v4.4.7 but it didn't worked.
Also i don't know if it's related but i'm putting it here just in case, in the IntelliSense configurations page, one of my include path isn't found even though it's not in the include path section of the c_cpp_properties.json.
Sketch
'''
/*
* SPDX-FileCopyrightText: 2010-2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: CC0-1.0
*/
#include "Arduino.h"
extern "C"
{
// #include <stdio.h>
// #include <inttypes.h>
// #include "sdkconfig.h"
// #include "freertos/FreeRTOS.h"
// #include "freertos/task.h"
// #include "esp_chip_info.h"
// #include "esp_flash.h"
// #include "esp_system.h"
}
extern "C"
{
void app_main(void);
}
void app_main(void)
{
printf("Hello world!\n");
}
'''
Debug Message
Here is the message i got after trying to build the code
'''
-- Found Git: C:/Users/victor.stella/.espressif/tools/idf-git/2.39.2/cmd/git.exe (found version "2.39.2.windows.1")
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/victor.stella/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/victor.stella/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Users/victor.stella/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/xtensa-esp32-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- git rev-parse returned 'fatal: not a git repository (or any of the parent directories): .git'
-- Could not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32
NOTICE: Skipping optional dependency: espressif/esp-sr
IDF version changed from 5.1.2 to 5.2.2, solving dependencies.
..............................................................HINT: Please check manifest file of the following component(s): arduino
CMake Error at C:/Users/victor.stella/esp/v5.2/esp-idf/tools/cmake/build.cmake:552 (message):
WARNING: Component "idf" not found
ERROR: Because project depends on idf (>=5.1,<5.2) which doesn't match any
versions, version solving failed.
Call Stack (most recent call first):
C:/Users/victor.stella/esp/v5.2/esp-idf/tools/cmake/project.cmake:605 (idf_build_process)
CMakeLists.txt:6 (project)
-- Configuring incomplete, errors occurred!
See also "C:/Users/victor.stella/Documents/HUPI/project-debug-tuto/build/CMakeFiles/CMakeOutput.log".
* The terminal process "c:\Users\victor.stella\.espressif\tools\cmake\3.24.0\bin\cmake.exe '-G=Ninja', '-DPYTHON_DEPS_CHECKED=1', '-DESP_PLATFORM=1', '-B=c:\Users\victor.stella\Documents\HUPI\project-debug-tuto\build', '-S=c:\Users\victor.stella\Documents\HUPI\project-debug-tuto'" terminated with exit code: 1.
'''
Other Steps to Reproduce
-tried to build the program on several version of ESP-IDF(v4.4.7, v5.1.2, v5.1.3, v5.2.2) non of them worked
-tried to add the includePath suggested by the quick fix (see next screenshot) but didn't worked
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.