I've been programming in Pascal and Delphi for 40 years and am now trying to do something in Arduino.cc. I can find many things in Google, but unfortunately Google doesn't help me now.
I had written a nice program but got a compiler error message:
xtensa-esp32s3-elf-g++: error: CreateProcess: No such file or directory
Exit status 1
Compilation error: exit status 1
Now I have thrown everything out of the program to see where the error occurs.
I get the error message when compiling the program below.
#include <Adafruit_GFX.h> // TFT Display Tools
#include <Adafruit_ILI9341.h> // TFT Display Tools
#include <Preferences.h>
Preferences Flash;
void setup() {
// put your setup code here, to run once:
}
void loop() {
}
I work on a Windows 10 computer and use IDE 2.3.3.
You might have a corrupt installation of the ESP32 board package. My attempt to solve it would be to downgrade the ESP32 board package (using the boards manager) to a previous version and next upgrade again to the version that you want to use.
Okay,
I'm using the Nano ESP32 board with the ESP32-53 chip.
I uninstalled the Arduino ESP32 Boards version 2.0.18 and installed the version 2.0.13. Except for a few warnings, the program compiles correctly.
C:\Users\Gerrie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.13\cores\esp32\esp32-hal-uart.c: In function 'uartSetPins':
C:\Users\Gerrie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.13\cores\esp32\esp32-hal-uart.c:153:9: warning: 'return' with no value, in function returning non-void
return;
^~~~~~
C:\Users\Gerrie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.13\cores\esp32\esp32-hal-uart.c:149:6: note: declared here
bool uartSetPins(uint8_t uart_num, int8_t rxPin, int8_t txPin, int8_t ctsPin, int8_t rtsPin)
^~~~~~~~~~~
Sketch uses 295169 bytes (9%) of program storage space. Maximum is 3145728 bytes.
Global variables use 31092 bytes (9%) of dynamic memory, leaving 296588 bytes for local variables. Maximum is 327680 bytes.
But if I then install version 2.0.18 again, the same error message appears again.
Tool arduino:dfu-util@0.11.0-arduino5 already installed
Tool esp32:esptool_py@4.5.1 already installed
Tool esp32:mklittlefs@3.0.0-gnu12-dc7f933 already installed
Tool esp32:mkspiffs@0.2.3 already installed
Tool esp32:xtensa-esp-elf-gdb@11.2_20220823 already installed
Tool esp32:xtensa-esp32s3-elf-gcc@esp-2021r2-patch5-8.4.0 already installed
Downloading packages
esp32:openocd-esp32@v0.12.0-esp32-20230921
arduino:esp32@2.0.18-20240930.arduino3
Installing esp32:openocd-esp32@v0.12.0-esp32-20230921
Configuring tool.
esp32:openocd-esp32@v0.12.0-esp32-20230921 installed
Replacing platform arduino:esp32@2.0.13 with arduino:esp32@2.0.18-20240930.arduino3
Uninstalling arduino:esp32@2.0.13
Running pre_uninstall script.
Platform arduino:esp32@2.0.13 uninstalled
Uninstalling arduino:dfu-util@0.11.0-arduino5, tool is no more required
Uninstalling esp32:esptool_py@4.5.1, tool is no more required
Uninstalling esp32:mklittlefs@3.0.0-gnu12-dc7f933, tool is no more required
Uninstalling esp32:mkspiffs@0.2.3, tool is no more required
Uninstalling esp32:openocd-esp32@v0.11.0-esp32-20221026, tool is no more required
Running pre_uninstall script.
Tool esp32:openocd-esp32@v0.11.0-esp32-20221026 uninstalled
Uninstalling esp32:xtensa-esp-elf-gdb@11.2_20220823, tool is no more required
Uninstalling esp32:xtensa-esp32s3-elf-gcc@esp-2021r2-patch5-8.4.0, tool is no more required
Configuring platform.
Platform arduino:esp32@2.0.18-20240930.arduino3 installed
Compiler output
xtensa-esp32s3-elf-g++: error: CreateProcess: No such file or directory
xtensa-esp32s3-elf-g++: error: CreateProcess: No such file or directory
exit status 1
Compilation error: exit status 1
I did as you described. But unfortunately that didn't work.
After updating the ESP32 board it did not work again.
Now I have installed the version 2.0.18 and get a folder "2.0.18-20240930.arduino3". I will rename this to "2.0.18".
And then the program is compiled without any error message.
Next update
I have uninstalled the complete Arduino IDE in windows.
In the appdata folder, manually delete the Arduino15 folder.
Then search the registers for invalid registers with a registry cleaner.
Restarted the computer and reinstalled the Arduino IDE via the website.
After starting the IDE, install the new ESP board version 2.0.18 automatically.
Program compiled but gives the same error message.
xtensa-esp32s3-elf-g++: error: CreateProcess: No such file or directory
exit status 1
Compilation error: exit status 1
Then installed the ESP board version 2.0.13. And the compiler gives no errors and the program works perfectly on the board
I would stick to 2.0.13 as everything works if I understand you correctly. Any specific reason why you want to upgrade to 2.0.18? Keeping the IDE quiet about upgrades is not a valid reason
Have you verified that the file xtensa-esp32s3-elf-g++ indeed exists?
For me it doesn't matter much whether I use driver version 13 or 18.
I'm much more of a Pascal programmer than a C programmer. And I just started with the Arduino and still have a lot to learn.
You buy a board and install the necessary software. And then you find out that one and adder doesn't work for whatever reason.
I can continue with this version. Although when I start the IDE it indicates that there are new drivers and updates. If I click on automatic update, I first have to restore the ESP32 version. Difficult but of course doable.
But anyway, thanks for the help