Cannot upload Script

Hi folks,

I have an arduino nano esp32 and am using it with the Arduino IDE 2.21 under Ubuntu.

When I try to upload a script I get the error 74.

When I reset the Arduino by shortening GND and B1, and then pressing the reset button I can upload the script with the "Uploading Using Programmer"

What's going wrong here?

I tried to install MicroPython with Thonny, but switched back to "standard" by using the method from above.
Is there somthing still missing?

What dows rhe function "Burn Bootloader" do? When I try to run this function it fails on missing baud rate parameter.

Hi @tosho57, thank you for sharing your experience.

When I try to upload a script I get the error 74.

Could you kindly provide the full console output?

When I reset the Arduino by shortening GND and B1, and then pressing the reset button I can upload the script with the "Uploading Using Programmer"
What's going wrong here?

With this method the IDE uses esptool to flash the firmware using the ROM bootloader. Along with your sketch this method also flashes the recovery app that allows to upload without shorting the pins.

What's going wrong here?

We need to see the console output.

I tried to install MicroPython with Thonny, but switched back to "standard" by using the method from above.
Is there somthing still missing?

That might explain it. If you install the MicroPython standalone firmware using Thonny it will likely overwrite the recovery app that is required for a regular upload. The recommended way is to use our installer tool.

What dows rhe function "Burn Bootloader" do? When I try to run this function it fails on missing baud rate parameter.

I don't think this function is implemented for that board. That would explain the error message.

I hope this helps.

Hi sbhklr,
thanks for your reply. Here are further infos about that error:


Der Sketch verwendet 309109 Bytes (9%) des Programmspeicherplatzes. Das Maximum sind 3145728 Bytes.
Globale Variablen verwenden 31164 Bytes (9%) des dynamischen Speichers, 296516 Bytes für lokale Variablen verbleiben. Das Maximum sind 327680 Bytes.
"/home/paul/.arduino15/packages/arduino/tools/dfu-util/0.11.0-arduino5/dfu-util" --device 0x2341:0x0070 -D "/tmp/arduino/sketches/3926300CCA131AD2DC9C042BA62E7874/nfc-reader.ino.bin" -Q
dfu-util: Cannot open DFU device 2341:0070 found on devnum 105 (LIBUSB_ERROR_ACCESS)
dfu-util: No DFU capable USB device available
dfu-util 0.11-arduino4

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Fehlgeschlagenes Hochladen: Hochladefehler: exit status 74

I tried to install MicroPython with Thonny, but switched back to "standard" by using the method from above.
Is there somthing still missing?

That might explain it. If you install the MicroPython standalone firmware using Thonny it will likely overwrite the recovery app that is required for a regular upload. The recommended way is to use our installer tool.

I used that too, but only after using Thonny. But that will install a Micropython System. I decided to use the "original" system instead.
Is the recovery from the Micropython-Installer different from the "regular" one? If so, what can I do to install the correct recovery again?

What dows rhe function "Burn Bootloader" do? When I try to run this function it fails on missing baud rate parameter.
How can I restore the correct recovery?

OK, thanks for this info.

Just in case of interest:
The output of the flashing with the programmer is:

Der Sketch verwendet 309081 Bytes (9%) des Programmspeicherplatzes. Das Maximum sind 3145728 Bytes.
Globale Variablen verwenden 31164 Bytes (9%) des dynamischen Speichers, 296516 Bytes für lokale Variablen verbleiben. Das Maximum sind 327680 Bytes.
python3 "/home/paul/.arduino15/packages/esp32/tools/esptool_py/4.5.1/esptool.py" --chip esp32s3 --port "/dev/ttyACM0" --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 16MB 0x0 "/tmp/arduino/sketches/3926300CCA131AD2DC9C042BA62E7874/nfc-reader.ino.bootloader.bin" 0x8000 "/tmp/arduino/sketches/3926300CCA131AD2DC9C042BA62E7874/nfc-reader.ino.partitions.bin" 0xe000 "/home/paul/.arduino15/packages/esp32/hardware/esp32/2.0.11/tools/partitions/boot_app0.bin" 0xf70000 "/home/paul/.arduino15/packages/esp32/hardware/esp32/2.0.11/variants/arduino_nano_nora/extra/nora_recovery/nora_recovery.ino.bin" 0x10000 "/tmp/arduino/sketches/3926300CCA131AD2DC9C042BA62E7874/nfc-reader.ino.bin"
esptool.py v4.5.1
Serial port /dev/ttyACM0
Connecting...
Chip is ESP32-S3 (revision v0.1)
Features: WiFi, BLE
Crystal is 40MHz
MAC: 34:85:18:7b:0a:58
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00003fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00f70000 to 0x00fb5fff...
Flash will be erased from 0x00010000 to 0x0005bfff...
Compressed 15088 bytes to 10374...
Writing at 0x00000000... (100 %)
Wrote 15088 bytes (10374 compressed) at 0x00000000 in 0.2 seconds (effective 575.5 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 158...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (158 compressed) at 0x00008000 in 0.0 seconds (effective 708.9 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 943.0 kbit/s)...
Hash of data verified.
Compressed 286544 bytes to 164238...
Writing at 0x00f70000... (9 %)
Writing at 0x00f7c345... (18 %)
. . .
Writing at 0x00fafd85... (90 %)
Writing at 0x00fb5d66... (100 %)
Wrote 286544 bytes (164238 compressed) at 0x00f70000 in 2.0 seconds (effective 1145.8 kbit/s)...
Hash of data verified.
Compressed 309440 bytes to 177078...
Writing at 0x00010000... (9 %)
Writing at 0x0001baf8... (18 %)
. . .
Writing at 0x000511b9... (90 %)
Writing at 0x000569cd... (100 %)
Wrote 309440 bytes (177078 compressed) at 0x00010000 in 2.3 seconds (effective 1060.8 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...