i'm using the IDE2.3.7-nightly on a linux system together with an ESP32 board. When i try to compile a simple test program i do receive the following error message:
cp: Aufruf von stat für '/home/thomas/.arduino15/packages/esp32/hardware/esp32/3.2.0/tools/partitions/{build.partitions}.csv' nicht möglich: Datei oder Verzeichnis nicht gefunden
exit status 1
Compilation error: exit status 1
what is the root cause for this message and how can i solve this?
I'm sorry for the german error message, the further program is set to english.
Thanks a lot for your help.
Hi @thomas_elk. What do you have selected from Arduino IDE's Tools > Partition Scheme menu?
Hi ptillisch,
thanks for your fast response. But the partition Scheme is not available in my IDE. Do i have to install anything else? or can i access the partition Scheme in a different way?
Are you trying to compile only or upload the code to the ESP32?
I'm going to ask you to provide the full verbose output from a compilation.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
- Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
The "Preferences" dialog will open.
- Check the box next to "Show verbose output during: ☐ compile" in the "Preferences" dialog.
- Click the "OK" button.
The "Preferences" dialog will close.
- Select Sketch > Verify/Compile from the Arduino IDE menus.
- Wait for the compilation to fail.
- You will see a "Compilation error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
- Open a reply here on this forum topic by clicking the "Reply" button.
- Click the
<CODE/>
icon on the post composer toolbar.
This will add the forum's code block markup (```
) to your reply to make sure the error messages are correctly formatted.
- Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
This will paste the compilation output into the code block.
- Move the cursor outside of the code block markup before you add any additional text to your reply.
- Click the "Reply" button to publish the post.
In case the output is longer than the forum software will allow to be added to a post, you can instead save it to a .txt
file and then attach that file to a reply here.
Click here for attachment instructions
- Open any text editor program.
- Paste the copied output into the text editor.
- Save the file in
.txt
format.
- Open a reply here on this forum topic by clicking the "Reply" button.
- Click the "Upload" icon (
) on the post composer toolbar:
The "Open" dialog will open.
- Select the
.txt
file you saved from the "Open" dialog.
- Click the "Open" button.
The dialog will close.
- Click the "Reply" button to publish the post.
Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .txt
file onto the post composer field to attach it.
FQBN: esp32:esp32:esp32_family
Using board 'esp32_family' from platform in folder: /home/thomas/.arduino15/packages/esp32/hardware/esp32/3.2.0
Using core 'arduino' from platform in folder: /home/thomas/.arduino15/packages/esp32/hardware/esp32/3.2.0
/usr/bin/env bash -c "[ ! -f \"/home/thomas/Dokumente/ESP32/Blink\"/partitions.csv ] || cp -f \"/home/thomas/Dokumente/ESP32/Blink\"/partitions.csv \"/home/thomas/.cache/arduino/sketches/D57A3BD37382CAAC72CC592F27FA1518\"/partitions.csv"
cp: /usr/bin/env bash -c "[ -f \"/home/thomas/.cache/arduino/sketches/D57A3BD37382CAAC72CC592F27FA1518\"/partitions.csv ] || [ ! -f \"\"/partitions.csv ] || cp \"\"/partitions.csv \"/home/thomas/.cache/arduino/sketches/D57A3BD37382CAAC72CC592F27FA1518\"/partitions.csv"
/usr/bin/env bash -c "[ -f \"/home/thomas/.cache/arduino/sketches/D57A3BD37382CAAC72CC592F27FA1518\"/partitions.csv ] || cp \"/home/thomas/.arduino15/packages/esp32/hardware/esp32/3.2.0\"/tools/partitions/{build.partitions}.csv \"/home/thomas/.cache/arduino/sketches/D57A3BD37382CAAC72CC592F27FA1518\"/partitions.csv"
Aufruf von stat für '/home/thomas/.arduino15/packages/esp32/hardware/esp32/3.2.0/tools/partitions/{build.partitions}.csv' nicht möglich: Datei oder Verzeichnis nicht gefunden
exit status 1
Compilation error: exit status 1
OK, I see the cause of the error now. You must select the appropriate board model from Arduino IDE's Tools > Board > esp32 menu.
After doing that, try compiling or uploading the sketch again. Hopefully this time it will work as expected.
Yeah, now it is working. Thank you very much for your help.
It looks like i have done a very stupid mistake. I'm pretty sure, i had chosen the board as one of my first steps. The IDE had shown me that ESP32 is chosen.....
You are welcome. I'm glad it is working now.
The "esp32" boards platform has a very unusual configuration where it can identify the port of ESP32-based boards as "ESP32 Family Device". This is convenient for the Tools > Port menu as it makes it easy to see which of the serial ports is the port of your board in the case where multiple serial ports are present on your computer. However, the way the "esp32" boards platform developers accomplished this is to create a "dummy" board definition, which doesn't actually work. This means that if you select that port from the menu on the Arduino IDE toolbar, it configures Arduino IDE to use the dummy "ESP32 Family Device" board definition, which causes compilation to fail with this cryptic "{build.partitions}.csv' nicht möglich: Datei oder Verzeichnis nicht gefunden
" ("{build.partitions}.csv: No such file or directory
") error.