Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ESP32 updating problems (Read 265 times)
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
ESP32 updating problems
Apr 8th, 2025 at 12:13pm
Print Post  
Hi,
I have been using V3.0.7 of the ESP32 code for a while. I have a (not VM related) problem so I'm updating to see if it is fixed.

I tried updating directly to the latest 3.1.3 but when I build I get various failures - it seems sdkconfig doesn´t exist ? (log attached). 


I installed V3.1.0 and when I built it threw an error.
I have a library #include <HeartBeat.h> from https://github.com/RobTillaart/Arduino/tree/master/libraries/HeartBeat
The compiler threw an error as it was picking up a BLE header called heartbeat.h - I have Local files override library files enabled.
I recreated it in my project and then it compiled.

I then updated to 3.1.1, this is ok and compiles.

I then updated to 3.1.2 and get the same errors as per the upgrade to 3.1.3 (as in the attached file but here for reference).

So I'm back to 3.1.1 at the moment.

Code
Select All
C:\Users\nigel\AppData\Local\Temp\VMBuilds\Webbie\esp32_esp32\Release>COPY /y idf-release_v5.3-489d7a2b-v1\esp32\sdkconfig" "
The system cannot find the file specified.
Error running platform build action hooks.prebuild

		Pre-build discovered additional source: uild_opt.h'

Deep search for libraries ...
ensa-esp32-elf-g++" -c \idf-release_v5.3-489d7a2b-v1\esp32/flags/cpp_flags" -w -Os -Werror=return-type -w -x c++ -E -CC   -DF_CPU=240000000L -DARDUINO=108010 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" "-DARDUINO_VARIANT=\"esp32\"" -DARDUINO_PARTITION_min_spiffs "-DARDUINO_HOST_OS=\"windows\"" ault,fsupload=littlefs\"" -DESP32=ESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=0 -DARDUINO_USB_CDC_ON_BOOT=0 \idf-release_v5.3-489d7a2b-v1\esp32/flags/defines" "-IC:\Arduino\Avionics\Webbie" -iprefix idf-release_v5.3-489d7a2b-v1\esp32/include/" \idf-release_v5.3-489d7a2b-v1\esp32/flags/includes" s\idf-release_v5.3-489d7a2b-v1\esp32/dio_qspi/include" res\esp32" riants\esp32" t.h" s" p" -o "nul"
ensa-esp32-elf-g++" -c \idf-release_v5.3-489d7a2b-v1\esp32/flags/cpp_flags" -w -Os -Werror=return-type -w -x c++ -E -CC   -DF_CPU=240000000L -DARDUINO=108010 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" "-DARDUINO_VARIANT=\"esp32\"" -DARDUINO_PARTITION_min_spiffs "-DARDUINO_HOST_OS=\"windows\"" ault,fsupload=littlefs\"" -DESP32=ESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=0 -DARDUINO_USB_CDC_ON_BOOT=0 \idf-release_v5.3-489d7a2b-v1\esp32/flags/defines" "-IC:\Arduino\Avionics\Webbie" -iprefix idf-release_v5.3-489d7a2b-v1\esp32/include/" \idf-release_v5.3-489d7a2b-v1\esp32/flags/includes" s\idf-release_v5.3-489d7a2b-v1\esp32/dio_qspi/include" res\esp32" riants\esp32" t.h" s" p" -o "nul"

xtensa-esp-elf-g++.exe*: fatal error: cannot specify -o with -c, -S or -E with multiple files


	An error was encountered during the 'Deep Search' library discovery process.
Library Include Paths (9)
Include Path aries\SD\src'
 

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: ESP32 updating problems
Reply #1 - Apr 8th, 2025 at 12:50pm
Print Post  
General ESP32 Compiler Error:
Quote:
it seems sdkconfig doesn´t exist

The version of the esp-arduino-libs is consistent between v3.1.1 and v3.1.2, but is then updated with v3.1.3.

When you have the v3.1.3 board package installed do the files referenced in the attached text file exist on disk?

HeartBeat Compiler Error:
Quote:
I installed V3.1.0 and when I built it threw an error.
I have a library #include <HeartBeat.h> from https://github.com/RobTillaart/Arduino/tree/master/libraries/HeartBeat
The compiler threw an error as it was picking up a BLE header called heartbeat.h - I have Local files override library files enabled.
I recreated it in my project and then it compiled.


Assuming it was installed into Sketchbook\libraries (and not a Shared Project or clone), this should have worked as expected.  The ESP32 core contains "heartbeat.h" as part of the BLE_Mesh code which is being prioritised over the Sketchbook Library which we will look into as the Sketchbook Library should take priority in this scenario from memory.
  

Please Register or Login to the Forum to see File Attachments
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: ESP32 updating problems
Reply #2 - Apr 8th, 2025 at 2:03pm
Print Post  
HeartBeat Compiler Error:
Investigating this further the issue is down to how Deep Search works in both vMicro and Arduino IDE coupled with Windows case-insensitivity.

The "heartbeat.h" from the ESP32 core will be found by the compiler when it scans the INO file as the core include path is already on the command, therefore it does not try to resolve the library which contains "Heartbeat.h".  If Windows was case sensitive the different casing would differentiate these files, however it is not by default (and causes other issues if applied).

This file was added in the ESP32 core v3.1.0 (as part of the esp32-arduino-libs version idf-release_v5.3-083aad99-v2) and onwards, and the only solutions are to have the file present in the project as you have (so the Local Files Override Library Files applies), or to use an older board package.

  
Back to top
IP Logged
 
Acuario
Senior Member
****
Offline


Posts: 256
Location: Spain
Joined: Aug 28th, 2015
Re: ESP32 updating problems
Reply #3 - Apr 8th, 2025 at 3:42pm
Print Post  
Simon@Visual Micro wrote on Apr 8th, 2025 at 12:50pm:

When you have the v3.1.3 board package installed do the files referenced in the attached text file exist on disk?


No they do not exist in any of the V3.1.X versions. 

I am also now having problems re installing V3.1.0

After installing all the -083aad99-v2\esp32 directories only have the include folder 

Re-installing V3.0.7 works correctly.

Now checking I see that when installing a different version the hardware\esp32 folder is correctly installing the selected version but the esp32-arduino-libs release folder is not always being deleted. I have manually deleted the V3.1.X folders, now trying updates:

From 3.0.7 to 3.1.0 it works correctly
From 3.1.0 to 3.1.1 folders not deleted and only include folder
Going back from 3.1.1 to 3.1.0  folder deleted but new folders only have include

Hope this helps.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: ESP32 updating problems
Reply #4 - Apr 8th, 2025 at 4:33pm
Print Post  
Thanks for the detail, we will continue testing through this and update when we have a concrete root cause.

I suspect it may be a "path too long" type issue, however need to ensure this is the case and investigate further.
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: ESP32 updating problems
Reply #5 - Apr 10th, 2025 at 10:53am
Print Post  
The latest release (25.0314.3) will resolve this moving forwards.

If you clear the c:\Users\<Your User>\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs folder it will give a clean starting point so it should not re-occur once the new release is installed.

The 25.0314.3 release can be downloaded from the top of the below board:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint