I have a ESP32-S3 Dev Module.
I cannot get any code to upload. I am using the blink code so I know it is not the code I did. I can upload the same code if I use the ArduinoIDE installed on my PC. I did test it with other board options but I get the same error
Sketch uses 248457 bytes (18%) of program storage space. Maximum is 1310720 bytes.
Global variables use 18456 bytes (5%) of dynamic memory, leaving 309224 bytes for local variables. Maximum is 327680 bytes.
Flashing with command:C:/Users/Pup/.arduino-create/esp32/esptool_py/4.5.1/esptool.exe --chip esp32s3 --port COM5 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0x0 C:/Users/Pup/AppData/Local/Temp/extrafiles1466702678/Blink.bootloader.bin 0x8000 C:/Users/Pup/AppData/Local/Temp/extrafiles1466702678/Blink.partitions.bin 0xe000 C:/Users/Pup/AppData/Local/Temp/extrafiles1466702678/tools/partitions/boot_app0.bin 0x10000 C:/Users/Pup/AppData/Local/Temp/arduino-create-agent1737500380/Blink.bin
usage: esptool write_flash [-h] [--erase-all]
[--flash_freq {keep,80m,60m,48m,40m,30m,26m,24m,20m,16m,15m,12m}]
[--flash_mode {keep,qio,qout,dio,dout}]
[--flash_size {detect,keep,256KB,512KB,1MB,2MB,2MB-c1,4MB,4MB-c1,8MB,16MB,32MB,64MB,128MB}]
[--spi-connection SPI_CONNECTION] [--no-progress]
[--verify] [--encrypt]
[--encrypt-files <address> <filename> [<address> <filename> ...]]
[--ignore-flash-encryption-efuse-setting] [--force]
[--compress | --no-compress]
<address> <filename> [<address> <filename> ...]
esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: 'C:/Users/Pup/AppData/Local/Temp/extrafiles1466702678/Blink.bootloader.bin'
Executing command: exit status 2
I moved your topic to an appropriate forum category @wladoginc .
In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.
Hi @wladoginc. This bug has been reported to the Arduino Cloud developers I'll let you know if I receive any news from them about a resolution.
Until then, I can suggest using Arduino IDE as a workaround.
Arduino IDE has Arduino Cloud integration, which provides convenient access to the sketches from your Arduino Cloud account.
I'll provide instructions you can follow to set up Arduino IDE and upload your sketch:
Install Arduino IDE by following the instructions here.
Start Arduino IDE.
Install the "esp32" boards platform by following the instructions here.
Connect Arduino IDE to your Arduino Cloud account by following the instructions here
You should now see the list of sketches from your Arduino Cloud account in the "SKETCHBOOK" panel of the IDE window. Click on the sketch you would like to upload to your board.
Click the cloud with downward pointing arrow icon ("Pull Sketch") that appears to the right of the sketch name.
A "Synchronizing sketchbook, pulling ..." process will start.
Wait for the synchronization process to finish, as indicated by the appearance of a notification at the bottom right corner of the IDE window:
Done pulling ...
Double click on the sketch name in the "SKETCHBOOK" panel.
The sketch will open in a new Arduino IDE window.
Select the appropriate board from the IDE's Tools > Board > esp32 menu.
Select the appropriate port from the IDE's Tools > Port menu.
Select Sketch > Upload from the Arduino IDE menus.
The sketch should now upload successfully to the board.
ⓘ Note that you can use Arduino IDE for development of Arduino CloudThing sketches. It is convenient to use the Arduino Cloud web interface for the initial setup of the Thing, but after that you can open the sketch in Arduino IDE for editing and uploading to your board. You will see newly created Thing sketches under the "Cloud Sketchbook" tab of the IDE's "SKETCHBOOK" panel after you click the "Sync" icon at the bottom right corner of the panel.
Please let me know if you have any questions or problems while following those instructions.
I don't have any information regarding an ETA. I'll be sure to post an update here if I hear anything from the developers.
If you don't mind working from the command line, you can use an alternative workaround procedure (originally suggested by @thornemann](Upload Error: exit status 2 | ESP32 (2024 again) - #8 by thornemann)) which will allow you upload to ESP32 boards while you continue to use Arduino Cloud Editor for development and compilation of your sketches as you prefer:
Press the Ctrl+C keyboard shortcut.
This will copy the selected text to the clipboard.
Start any text editor application.
Create a new file in the text editor.
Press the Ctrl+V keyboard shortcut.
This will paste the copied command into the text editor.
Change the filename that ends in .bootloader.bin to end in .ino.bootloader.bin. ⓘ For example, if the filename is Blink.bootloader.bin, you would change it to Blink.ino.bootloader.bin
Change the filename that ends in .partitions.bin to end in .ino.partitions.bin. ⓘ For example, if the filename is Blink.partitions.bin, you would change it to Blink.ino.partitions.bin
Press the Ctrl+A keyboard shortcut.
This will select all the text in the text editor.
Press the Ctrl+C keyboard shortcut.
This will copy the text of the corrected command to the clipboard.
Right click the Windows "Start" button.
A context menu will open.
Select "Search" from the menu.
The Windows "Start" menu will open with a search field selected.
Type windows powershell ise in the search field.
Select "Windows PowerShell ISE" from the search results.
A "Windows PowerShell ISE" window will open.
Press the Ctrl+V keyboard shortcut.
Press the Enter key.
The sketch program should now be uploaded to your ESP32 board successfully.
Hello again @wladoginc. The Arduino Cloud developers have fixed the bug. You should now be able to upload to use Arduino Cloud Editor to upload ESP32 boards without encountering that "No such file or directory" error message.
Please let us know if you still encounter any problems using Arduino Cloud.
I apologize for any inconvenience this bug has caused.