Menu

#191 Arduino Nano ESP32: Can't get started

none
invalid
nobody
None
2024-03-01
2024-02-29
No

OS: Ubuntu 22.04, installed apimage,
serial: /dev/ttyACM0
/etc/udev/rules.d/99-usb-serial.rules:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="0070", GROUP="dialout", MODE="0666"
after reboot
lsusb: (relevant line):
Bus 001 Device 002: ID 303a:1001 Espressif USB JTAG/serial debug unit
Note: ID changed at reboot; update udev rule and reloaded udev and triggered.

It compiles (took a lot for this to happen).

groups
martin adm dialout cdrom sudo dip plugdev kvm lpadmin lxd sambashare docker
ll /dev/ttyACM0
crw-rw-rw- 1 root dialout 166, 0 Feb 29 14:00 /dev/ttyACM0
The combo widget shows "Arduino Nano ESP32\n/dev/ttyACM0

Upload fails:
dfu-util: No DFU capable USB device available
Failed uploading: uploading error: exit status 74
(no idea what 74 signifies).

Documentation: inadequate especially when things don't work. For example can't find any documentation on how to start "arduino-ide" in linux? where is apt kept? doing a ps aux shows a mess (see below at bottom).

Copied Error message:
Sketch uses 285785 bytes (9%) of program storage space. Maximum is 3145728 bytes.
Global variables use 30732 bytes (9%) of dynamic memory, leaving 296948 bytes for local variables. Maximum is 327680 bytes.
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/

dfu-util: No DFU capable USB device available
Failed uploading: uploading error: exit status 74

output from> ps aux arduino

> pg ardu
martin     11481  0.2  0.3 1178907968 198780 pts/4 Sl+ 13:36   0:05 /tmp/.mount_arduin2fzMQq/arduino-ide
martin     11484  0.0  0.0  12008  2536 ?        Ssl  13:36   0:02 arduino-ide_nightly-20240229_Linux_64bit.AppImage
martin     11489  0.0  0.0 33795232 50880 pts/4  S+   13:36   0:00 /tmp/.mount_arduin2fzMQq/arduino-ide --type=zygote --no-zygote-sandbox
martin     11490  0.0  0.0 33795220 50880 pts/4  S+   13:36   0:00 /tmp/.mount_arduin2fzMQq/arduino-ide --type=zygote
martin     11492  0.0  0.0 33795220 10296 pts/4  S+   13:36   0:00 /tmp/.mount_arduin2fzMQq/arduino-ide --type=zygote
martin     11521  1.4  0.3 34366392 246688 pts/4 Sl+  13:36   0:30 /tmp/.mount_arduin2fzMQq/arduino-ide --type=gpu-process --enable-crash-reporter=351a60eb-ab88-4f91-9d7b-07b8f2e142a3,no_channel --user-data-dir=/home/martin/.config/arduino-ide --gpu-preferences=WAAAAAAAAAAgAAAEAAAAAAAAAAAAAAAAAABgAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAGAAAAAAAAAAYAAAAAAAAAAgAAAAAAAAACAAAAAAAAAAIAAAAAAAAAA== --shared-files --field-trial-handle=0,i,134649102756810406,13426361337262779216,262144 --disable-features=SpareRendererForSitePerProcess
martin     11526  0.0  0.1 33848220 69900 pts/4  Sl+  13:36   0:01 /tmp/.mount_arduin2fzMQq/arduino-ide --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --enable-crash-reporter=351a60eb-ab88-4f91-9d7b-07b8f2e142a3,no_channel --user-data-dir=/home/martin/.config/arduino-ide --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,134649102756810406,13426361337262779216,262144 --disable-features=SpareRendererForSitePerProcess
martin     11534  0.1  0.2 1178424260 181568 ?   SLsl 13:36   0:04 /tmp/.mount_arduin2fzMQq/arduino-ide /tmp/.mount_arduin2fzMQq/resources/app/lib/backend/main.js
martin     11542  0.0  0.0 34059960 35704 pts/4  S+   13:36   0:00 /tmp/.mount_arduin2fzMQq/arduino-ide --type=broker
martin     11553  0.2  0.1 1390940 95572 ?       Sl   13:36   0:06 /tmp/.mount_arduin2fzMQq/resources/app/lib/backend/resources/arduino-cli daemon --port 0 --config-file /home/martin/.arduinoIDE/arduino-cli.yaml -v
martin     11563  0.2  0.4 1187237500 295676 pts/4 Sl+ 13:36   0:05 /tmp/.mount_arduin2fzMQq/arduino-ide --type=renderer --enable-crash-reporter=351a60eb-ab88-4f91-9d7b-07b8f2e142a3,no_channel --user-data-dir=/home/martin/.config/arduino-ide --app-path=/tmp/.mount_arduin2fzMQq/resources/app --no-sandbox --no-zygote --first-renderer-process --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=4 --time-ticks-at-unix-epoch=-1709226601317801 --launch-time-ticks=5168364136 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,134649102756810406,13426361337262779216,262144 --disable-features=SpareRendererForSitePerProcess
martin     11622  0.0  0.0 708172  7852 ?        Sl   13:36   0:00 /home/martin/.arduino15/packages/builtin/tools/mdns-discovery/1.0.9/mdns-discovery
martin     11623  0.0  0.0 712132  3648 ?        Sl   13:36   0:00 /home/martin/.arduino15/packages/builtin/tools/serial-discovery/1.4.0/serial-discovery
martin     11624  0.0  0.0 1091432 4224 ?        Sl   13:36   0:00 /home/martin/.arduino15/packages/builtin/tools/dfu-discovery/0.1.2/dfu-discovery
martin     11660  0.9  0.1 1178489028 85584 ?    Sl   13:36   0:20 /tmp/.mount_arduin2fzMQq/arduino-ide /tmp/.mount_arduin2fzMQq/resources/app/lib/backend/ipc-bootstrap --nsfwOptions={}
martin     11669  0.0  0.1 1178386252 106020 ?   Sl   13:36   0:00 /tmp/.mount_arduin2fzMQq/arduino-ide /tmp/.mount_arduin2fzMQq/resources/app/lib/backend/plugin-host
martin     11718  0.0  0.1 1178353440 78460 ?    Sl   13:36   0:00 /tmp/.mount_arduin2fzMQq/arduino-ide /tmp/.mount_arduin2fzMQq/resources/app/plugins/vscode-builtin-json-language-features/extension/server/dist/jsonServerMain --node-ipc --clientProcessId=11669
martin     11772  0.0  0.0 2202896 17204 ?       Sl   13:41   0:00 /tmp/.mount_arduin2fzMQq/resources/app/lib/backend/resources/arduino-language-server -clangd /tmp/.mount_arduin2fzMQq/resources/app/lib/backend/resources/clangd -cli-daemon-addr localhost:36639 -cli-daemon-instance 1 -fqbn esp32:esp32:nora_w10:UploadSpeed=921600,USBMode=hwcdc,CDCOnBoot=default,MSCOnBoot=default,DFUOnBoot=default,UploadMode=default,CPUFreq=240,FlashMode=qio,FlashSize=4M,PartitionScheme=default,DebugLevel=none,PSRAM=disabled,LoopCore=1,EventsCore=1,EraseFlash=none -skip-libraries-discovery-on-rebuild -board-name u-blox NORA-W10 series (ESP32-S3) -no-real-time-diagnostics
martin     11905  0.5  0.2 409152 171636 ?       Sl   13:42   0:09 /tmp/.mount_arduin2fzMQq/resources/app/lib/backend/resources/clangd -log=verbose --pch-storage=memory --compile-commands-dir=/tmp/arduino-language-server3407468188/build -j 1 -query-driver=/home/martin/.arduino15/packages/**
martin     11918  0.7  0.4 1187237816 298116 pts/4 Sl+ 13:42   0:12 /tmp/.mount_arduin2fzMQq/arduino-ide --type=renderer --enable-crash-reporter=351a60eb-ab88-4f91-9d7b-07b8f2e142a3,no_channel --user-data-dir=/home/martin/.config/arduino-ide --app-path=/tmp/.mount_arduin2fzMQq/resources/app --no-sandbox --no-zygote --lang=en-US --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=5 --time-ticks-at-unix-epoch=-1709226601317801 --launch-time-ticks=5554523846 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=0,i,134649102756810406,13426361337262779216,262144 --disable-features=SpareRendererForSitePerProcess
martin     11949  0.0  0.1 1178386252 109664 ?   Sl   13:42   0:00 /tmp/.mount_arduin2fzMQq/arduino-ide /tmp/.mount_arduin2fzMQq/resources/app/lib/backend/plugin-host
martin     11965  0.0  0.1 1178353440 77676 ?    Sl   13:42   0:00 /tmp/.mount_arduin2fzMQq/arduino-ide /tmp/.mount_arduin2fzMQq/resources/app/plugins/vscode-builtin-json-language-features/extension/server/dist/jsonServerMain --node-ipc --clientProcessId=11949
martin     12608  0.0  0.0 2350360 17380 ?       Sl   13:47   0:00 /tmp/.mount_arduin2fzMQq/resources/app/lib/backend/resources/arduino-language-server -clangd /tmp/.mount_arduin2fzMQq/resources/app/lib/backend/resources/clangd -cli-daemon-addr localhost:36639 -cli-daemon-instance 1 -fqbn esp32:esp32:nano_nora -skip-libraries-discovery-on-rebuild -board-name Arduino Nano ESP32 -no-real-time-diagnostics
martin     12740  0.8  0.2 408020 183288 ?       Sl   13:47   0:12 /tmp/.mount_arduin2fzMQq/resources/app/lib/backend/resources/clangd -log=verbose --pch-storage=memory --compile-commands-dir=/tmp/arduino-language-server2918501526/build -j 1 -query-driver=/home/martin/.arduino15/packages/**
> 

sudo dmesg | g tty
[ 0.009776] ACPI: SSDT 0x0000000074435000 002357 (v02 DELL TbtTypeC 00000000 INTL 20200717)
[ 0.162204] printk: console [tty0] enabled
[ 0.631014] serial8250: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 3.792384] cdc_acm 1-1:1.0: ttyACM0: USB ACM device
[ 3.807389] dw-apb-uart.6: ttyS4 at MMIO 0x4012140000 (irq = 16, base_baud = 6250000) is a 16550A
[ 2030.685886] Bluetooth: RFCOMM TTY layer initialized

Excuse font, don't know how to revert to default.

Exact version of dfu-util: from distro? self-built? git revision?
Can't answer without instructions, but best guess is:

ls /home/martin/.arduino15/packages/builtin/tools/dfu-discovery
. .. 0.1.2

Question: isn't the whole idea being that getting blinky to work doesn't require hours and hours of an expert? Everything else I hooked up to USB serial worked out of the box and had reasonable documentation.

Discussion

  • Tormod Volden

    Tormod Volden - 2024-03-01

    Here at the dfu-util bug tracker we only deal with dfu-util itself, not the Arduino IDE. Arduino bundles their own modified version of dfu-util. Anyway, I notice in the ps aux output that you are running a "nightly" snapshot "arduino-ide_nightly-20240229_Linux_64bit.AppImage". Maybe you should try a stable release?

    This is the the problem that dfu-util sees (74 is just a code for this):
    dfu-util: No DFU capable USB device available
    So the Arduino IDE hasn't successfully made a DFU device available for dfu-util.

     
  • Tormod Volden

    Tormod Volden - 2024-03-01
    • summary: Can't get started; after many many issues now stuck --> Arduino Nano ESP32: Can't get started
    • status: open --> invalid
     

Anonymous
Anonymous

Add attachments
Cancel