Compilation error: exit status 1, without further information while compiling basic script

Hello everyone.

I am using an Arduino Nano ESP32.

I have a weird problem. I hope this is not a double, but I couldn't find the exact same case on here.

Everything worked fine, but suddenly I can't compile anymore. I did not change anything.

I get:

exit status 1

Compilation error: exit status 1

Without any further explanations or other messages.

I've tried with the basic starting script and even that one gives me the same error above.

Is there somewhere i could look further into it?

What do you get if you scroll up in the output window - it's odd to get no error message.

There is no scrolling up.
I don't know what the grey line is supposed to mean, but there is nothing above the text given. Like I said, I have not found more information yet...

First step would be to clean the cache (after closing the IDE). If you don't know where it is, enable verbose output during compilation under file /preferences.

In that lengthy output you will find references to a temp directory (e.g. ....../temp/..../sketches/someHash); you can delete every directory under sketches.

There is also, if not mistaken, ....../temp/..../cores/.... You can also delete all subdirectories in there.

Sorry for being vague, I do not have IDE 2.x at this moment.

PS Under Linux/Mac it will probably be somewhere in /tmp

1 Like

Open the File Examples Basic Blink sketch and try again. At the moment you are trying to compile an empty sketch.

Hi @banone

welcome to the arduio-forum.
Please follow this tutorial to adjust the Arduino-IDE to print all details of the compiling process into the compiler-log
and then post the entire compiler-log as a code-section

1 Like

Thanks a lot, now I know how to enable verbose!

It did not help yet, but it brought me further. seems that it can't find the partitions.csv.

I'm gonna search a bit more and come back with more informations, if I get them!

Thanks and Sorry for not dopng that from the start. Here is the detailed compiler-log


FQBN: esp32:esp32:esp32_family
Using board 'esp32_family' from platform in folder: C:\Users\James\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.3
Using core 'arduino' from platform in folder: C:\Users\James\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.3

cmd /c if exist "C:\\Users\\James\\AppData\\Local\\Temp\\.arduinoIDE-unsaved2024623-3544-mkv8e2.jok7\\Blink\\partitions.csv" COPY /y "C:\\Users\\James\\AppData\\Local\\Temp\\.arduinoIDE-unsaved2024623-3544-mkv8e2.jok7\\Blink\\partitions.csv" "C:\\Users\\James\\AppData\\Local\\Temp\\arduino\\sketches\\270DD4F42E5B55298BAA509902A01DA1\\partitions.csv"
cmd /c if not exist "C:\\Users\\James\\AppData\\Local\\Temp\\arduino\\sketches\\270DD4F42E5B55298BAA509902A01DA1\\partitions.csv" if exist "\\partitions.csv" COPY "\\partitions.csv" "C:\\Users\\James\\AppData\\Local\\Temp\\arduino\\sketches\\270DD4F42E5B55298BAA509902A01DA1\\partitions.csv"
cmd /c if not exist "C:\\Users\\James\\AppData\\Local\\Temp\\arduino\\sketches\\270DD4F42E5B55298BAA509902A01DA1\\partitions.csv" COPY "C:\\Users\\James\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.0.3\\tools\\partitions\\{build.partitions}.csv" "C:\\Users\\James\\AppData\\Local\\Temp\\arduino\\sketches\\270DD4F42E5B55298BAA509902A01DA1\\partitions.csv"
Das System kann die angegebene Datei nicht finden.
exit status 1

Compilation error: exit status 1

I am now on my search for a solution about this "partitions.csv"
(Gotta Check google and the other forum posts first)

if you don't want two write the complete code for the ESP32 but instead want to use existing code and libraries

it is probably better to install the core 2.0.17 instead of core 3.X

espressif made "breaking changes" inside the core 3.X.
A lot of libraries will not work with core 3.X

seems to be strange board.
what exact type of ESP32-board do you have?
ESP32, ESP32S2, ESP32S3, ESP32C3 ?

1 Like

That board is unknown to me, try entering doit in the boards search box and select the ESP32 DEVKIT. Now try it with verbose.

1 Like

my board is an "Arduino Nano ESP32".

Seems like the Arduino IDE automatically changed the board to "esp32 family device" at some point, after i plugged it into the usb Port (weird that the un-/plugging before that did not change this).

Changing it to "Arduino Nano ESP32" is the simple solution.

Thanks at everyone!

@StefanL38 Thanks for the hint, I'll do that!

The Arduino Nano ESP32 uses its own core
This is a board from "Arduino"

The core-version thing applies only to NON Arduino-Nano-boards

Most ESP32-code is written for non Arduino-Boards

Hi,banone.
I have the same question like you,and I am using ESP32S3.
The question maybe because"Select Board" you select error.
you can try to select the correct board.
I replace the "ESP32 Famliy Device" with "XIAO_ESP32S3",and it was not error.
You can have a try.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.