I have an Arduino Nao ESP32 board, which was working previously. I flashed a few apps like LED blinking, and WiFi scan, and both of them worked as expected.
However, today when I tried to work with it. The Arduino IDE could not recognize it anymore.
When I plug it into my computer's, device manager shows that a serial port is added. But IDE cannot flash code into it, giving this error:
No DFU capable USB device available
Failed uploading: uploading error: exit status 74
The IDE serial monitor gives error like this:
Port monitor error: command 'open' failed: Invalid serial port. ...
I wonder if there is any method to make it work again.
BTW, serial port is correctly selected in IDE.
Hi @hedji2r. I'm going to ask you to provide the full verbose output from an upload attempt.
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.
- Uncheck the box next to Show verbose output during:
☑
compile in the "Preferences" dialog.
- Check the box next to Show verbose output during: ☐ upload.
- Click the "OK" button.
The "Preferences" dialog will close.
- Attempt an upload, as you did before.
- Wait for the upload to fail.
- You will see an "Upload error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
- Open a forum reply here 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 error output from the upload 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 post the output.
Hi @ptillisch
Thx for ur help. Here you go.
Sketch uses 699641 bytes (22%) of program storage space. Maximum is 3145728 bytes.
Global variables use 56948 bytes (17%) of dynamic memory, leaving 270732 bytes for local variables. Maximum is 327680 bytes.
"C:\Users\xxx\AppData\Local\Arduino15\packages\arduino\tools\dfu-util\0.11.0-arduino5/dfu-util" --device 0x2341:0x0070 -D "C:\Users\xxx\AppData\Local\Temp\arduino\sketches\24F944ABCF39B97DFAE37476F75153BE/SPI_ads1299.ino.bin" -Q
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/
No DFU capable USB device available
Failed uploading: uploading error: exit status 74
If you connect the board to your computer with the USB cable and then open the Arduino IDE Tools > Port menu, is the Nano ESP32 board's port labeled as "(Arduino Nano ESP32)", or as something else (e.g., "(ESP32 Family Device)")?
(ESP32 Family Device)
But in board selection, I selected "Arduino Nano ESP32".
OK, great. Please try this experiment and then report back with the results:
- Connect the Nano ESP32 board to your computer with the USB cable.
- Press and release the button on the board marked "RST".
- Wait for the RGB LED near the "RST" button to turn on.
It does this almost immediately, but you do need to wait for it.
- While the RGB LED is still on (it only stays on for a second so you need to be somewhat quick), press and release the "RST" button again.
The green LED of the RGB LED should now start pulsing. If not, repeat the process in case you didn't get the timing quite right.
Now please reply here on the forum thread to tell us whether the LED went into that pulsing state as described above when you performed the instructions.
Hi @ptillisch ,
By following the steps given above, I have made the board work again.
Thx.
You are welcome. I'm glad it is working now.
Regards,
Per