Sketch uses 286029 bytes (9%) of program storage space. Maximum is 3145728 bytes.
Global variables use 30552 bytes (9%) of dynamic memory, leaving 297128 bytes for local variables. Maximum is 327680 bytes.
"C:\Users\truon_jy189e4\AppData\Local\Arduino15\packages\arduino\tools\dfu-util\0.11.0-arduino5/dfu-util" --device 0x2341:0x0070 -D "C:\Users\truon_jy189e4\AppData\Local\arduino\sketches\14EFD5631C017DCC38923A7F8DAEEAD5/sketch_aug21a.ino.bin" -Q
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/
Failed uploading: uploading error: exit status 74
that was what i saw when i tried uploading it
in tools-->boards. there was only boards manager, arduino avr boards, arduino esp32 boards. no esp32 in boards tab
Hi @tgiaphuoc. The upload error you experienced is caused by you configuring Arduino IDE for use with the Arduino Nano ESP32 board. This board uses an upload method that is different from the one used by the common ESP32 boards from other manufacturers. This means the upload method used by Arduino IDE when you have it configured for use with the Nano ESP32 will always fail if you are actually targeting a different board ESP32-based board model.
Please tell us the exact name of the board you are using. If you aren't sure what it is called, you can provide a link to the product listing at the place you purchased the board online. Once we have that information, we can provide you with instructions for configuring Arduino IDE for use with your board.
OK, so it looks like you have a generic board with the classic ESP32 microcontroller. I'll provide instructions you can follow to install support for it and configure Arduino IDE:
Select Tools > Board > Boards Manager... from the Arduino IDE menus to open the "Boards Manager" view in the left side panel.
Find the "esp32" entry in the list of boards platforms.
Click the "INSTALL" button at the bottom of the entry.
Wait for the installation process to finish, as indicated by a notification at the bottom right corner of the Arduino IDE window:
Successfully installed platform ...
Select Tools > Board > esp32 > ESP32 Dev Module from the Arduino IDE menus.
Connect the board to your computer with a USB cable.
Select the serial port of the board from Arduino IDE's Tools > Port menu.
Now try uploading your sketch again. Hopefully everything will work as expected this time.
To expand on what @b707 wrote, this is the installation of Arduino IDE support for your board. Steps 1-4 in the instructions I provided will accomplish this installation.
Make sure the USB cable is completely plugged into both the Arduino board and the PC.
If that doesn't help, you may have a damaged/defective or charge-only USB cable. Try a different cable.
Either of the above can result in the power connections being made (and thus LEDs lit on the board), but no data connections (and thus no port for the board).
If a new port does not appear in Arduino IDE's Tools > Port menu even after checking these things, add a reply here to let us know and we'll suggest other possible solutions.
It is possible for a short or external circuitry connected to the Arduino board to cause it to no longer produce a port.
Make sure the board is not sitting on anything conductive that could short the contacts on the bottom of the board. Do a careful visual examination to make sure there isn't any conductive debris (e.g., loose beads of solder, strands of wire, or component leads) on either side of the board, or on the surface the board is sitting on.
If you have a shield or any external circuitry or components connected to your Arduino board, try this experiment:
Disconnect the USB cable of the Arduino board from your computer.
Disconnect any shields, modules, external circuitry, etc. from your board.
Connect the Arduino board to your computer with a USB cable.
Now check to see whether a port is shown for the board in Arduino IDE's Tools > Port menu. If it does, you know the problem was caused by the external circuitry. You can then focus your attention on identifying the specific problem with the circuit and resolving it.