[SOLVED] No USB Port with Linux mint on iMac for Arduino ide

I have an issue on my iMac with Linux mint 21.3 on iMac. There is no ttyUSB port available. I have used "sudo removed tty blk". This helps on other pc perfect but not on iMac.

ls /dev/tty*
/dev/tty    /dev/tty2   /dev/tty31  /dev/tty43  /dev/tty55  /dev/ttyprintk  /dev/ttyS2   /dev/ttyS31
/dev/tty0   /dev/tty20  /dev/tty32  /dev/tty44  /dev/tty56  /dev/ttyS0      /dev/ttyS20  /dev/ttyS4
/dev/tty1   /dev/tty21  /dev/tty33  /dev/tty45  /dev/tty57  /dev/ttyS1      /dev/ttyS21  /dev/ttyS5
/dev/tty10  /dev/tty22  /dev/tty34  /dev/tty46  /dev/tty58  /dev/ttyS10     /dev/ttyS22  /dev/ttyS6
/dev/tty11  /dev/tty23  /dev/tty35  /dev/tty47  /dev/tty59  /dev/ttyS11     /dev/ttyS23  /dev/ttyS7
/dev/tty12  /dev/tty24  /dev/tty36  /dev/tty48  /dev/tty6   /dev/ttyS12     /dev/ttyS24  /dev/ttyS8
/dev/tty13  /dev/tty25  /dev/tty37  /dev/tty49  /dev/tty60  /dev/ttyS13     /dev/ttyS25  /dev/ttyS9
/dev/tty14  /dev/tty26  /dev/tty38  /dev/tty5   /dev/tty61  /dev/ttyS14     /dev/ttyS26
/dev/tty15  /dev/tty27  /dev/tty39  /dev/tty50  /dev/tty62  /dev/ttyS15     /dev/ttyS27
/dev/tty16  /dev/tty28  /dev/tty4   /dev/tty51  /dev/tty63  /dev/ttyS16     /dev/ttyS28
/dev/tty17  /dev/tty29  /dev/tty40  /dev/tty52  /dev/tty7   /dev/ttyS17     /dev/ttyS29
/dev/tty18  /dev/tty3   /dev/tty41  /dev/tty53  /dev/tty8   /dev/ttyS18     /dev/ttyS3
/dev/tty19  /dev/tty30  /dev/tty42  /dev/tty54  /dev/tty9   /dev/ttyS19     /dev/ttyS30
horst@Linux-iMac:/home$ 

Isn’t that port made available when the OS recognizes a USB device?

You might be missing the proper driver.

Did you get that list with your Arduino already connected? What Arduino are you using?

is this Mint new installed?

Hi @benrun007. Please add a reply here on this forum thread to tell us which Arduino board you are using.

Please be as specific as possible as some Arduino boards with similar names have significant differences and the forum helpers can only provide effective assistance if we are aware of which one is being used.

If you aren't sure how to describe which board you are using, you can provide the link to the online product listing you bought the board from and we'll proceed based on the information found there.

Yes

do:
sudo apt-get update/upgrade

This issue is widespread. I have tried many different boards, including the Arduino Nano, Mega, and ESP8266, among others. The problem appears to be with macOS version Sonoma 14.5. I have contacted Apple about this and am waiting to see what happens. They responded with many questions, and I have answered all of them. I am experiencing the same problem on both my iMac and MacBook, whether using Linux or macOS Sonoma. It's frustrating.

Are you using a dual boot system or are you running Linux in a virtual machine (e.g., via Parallels)?

I see "Bus 001 Device 026: ID 1a86:7523 QinHeng Electronics CH340 serial converter" This is my board. But i can't see this port.

On other usb drive.

I'm going to ask you to provide some additional information that might help us to identify the problem.


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Close all Arduino IDE windows if the IDE is already running.
  2. Open a command line terminal in the folder that contains the AppImage file.
  3. Type the following command:
    ./arduino-ide_<version>_Linux_64bit.AppImage
    
    (where <version> is the Arduino IDE version number)
  4. Press the Enter key.
    Debug output should now be printed to the PowerShell window as Arduino IDE starts (or fails to start).
  5. Wait for Arduino IDE to finish starting, or failing to start.
  6. Switch back to the terminal window if the Arduino IDE window took the focus.
  7. Use the mouse to select all the text in the terminal window. Make sure to scroll all the way up to the top.
  8. Press the Ctrl+Shift+C keyboard shortcut.
    This will copy the selected text to the clipboard.
  9. Open a forum reply here by clicking the "Reply" button.
  10. 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.
    Code block icon on toolbar
  11. Press the Ctrl+V keyboard shortcut.
    This will paste the output into the code block.
  12. Move the cursor outside of the code block markup before you add any additional text to your reply.
  13. Click the "Reply" button to post the output.

Please let me know if you have any questions or problems while following those instructions.

./arduino-ide_2.3.2_Linux_64bit.AppImage. Does not work.

Wait, it's flatpack. I install version 1.8.19.

I recommend using the official build of Arduino IDE downloaded from the "Software" page of the arduino.cc website:

The 3rd party maintainers of the Arduino IDE packages that are distributed via the various package repositories sometimes make unspecified modifications (as may be required for acceptance to the repository) and those modifications sometimes result in the version of the IDE from the package repository having different behavior than the official distribution. In addition, the package manager framework itself may cause differences in behavior (e.g., due to sandboxing). The helpers here on the forum generally use the official Arduino IDE distributions so might not be as familiar with the quirks of a 3rd party package.

I will say that the maintainer of the Arduino IDE 2.x Flatpak package does an amazing job of maintaining and supporting that package, but I don't know anything about the state of the Arduino IDE 1.x Flatpak, which has a different primary maintainer.

Your screenshot is definitely of Arduino IDE 2.x.

Yes, i know. But now i have installed version 1.8.19: This is the result of your command:

horst@Linux-iMac:~/arduino-1.8.19$ ./arduino-ide_1.8.19_Linux_64bit.AppImage
bash: ./arduino-ide_1.8.19_Linux_64bit.AppImage: Datei oder Verzeichnis nicht gefunden
horst@Linux-iMac:~/arduino-1.8.19$

okay, by the way. It's the same problem with both versions.

There are far too many variables in your environments and you are arbitrarily changing things around from one post to another. That will make it impossible for us to effectively assist you.

Please, pick one of each of the following and use that one exclusively (unless instructed otherwise by a helper) until we attain a resolution:

  • Operating system
  • Arduino IDE version
  • Arduino IDE distribution
  • Arduino board

Now add a reply here to tell us which of each of those you decided to use and we'll proceed from there.

My problem is described in my post #10.

Operating system:
iMac 27" with Linux mint Cinnamon on USB Drive as you can see.

horst@Linux-iMac:~$ inxi -Fxxrzc0
System:
  Kernel: 5.15.0-113-generic x86_64 bits: 64 compiler: gcc v: 11.4.0
    Desktop: Cinnamon 6.0.4 tk: GTK 3.24.33 wm: muffin dm: LightDM
    Distro: Linux Mint 21.3 Virginia base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop System: Apple product: iMac15,1 v: 1.0
    serial: <superuser required> Chassis: type: 13 v: Mac-42FD25EABCABB274
    serial: <superuser required>
  Mobo: Apple model: Mac-42FD25EABCABB274 v: iMac15,1
    serial: <superuser required> UEFI: Apple v: 478.0.0.0.0 date: 01/13/2023
CPU:
  Info: quad core model: Intel Core i5-4690 bits: 64 type: MCP arch: Haswell
    rev: 3 cache: L1: 256 KiB L2: 1024 KiB L3: 6 MiB
  Speed (MHz): avg: 798 min/max: 800/3900 cores: 1: 798 2: 798 3: 798
    4: 798 bogomips: 27935
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: AMD Curacao XT / Trinidad [Radeon R7 370 R9 270X/370X]
    vendor: Apple driver: radeon v: kernel pcie: speed: 8 GT/s lanes: 16 ports:
    active: eDP-1 empty: DP-1,DP-2,DP-3 bus-ID: 01:00.0 chip-ID: 1002:6810
  Device-2: Apple FaceTime HD Camera (Built-in) type: USB driver: uvcvideo
    bus-ID: 1-7:3 chip-ID: 05ac:8511
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: ati,radeon
    unloaded: fbdev,modesetting,vesa gpu: radeon display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x2160 s-dpi: 96
  Monitor-1: eDP res: 3840x2160 dpi: 163 diag: 685mm (27")
  OpenGL: renderer: PITCAIRN ( LLVM 15.0.7 DRM 2.50 5.15.0-113-generic)
    v: 4.5 Mesa 23.2.1-1ubuntu3.1~22.04.2 direct render: Yes
Audio:
  Device-1: Intel 8 Series/C220 Series High Definition Audio
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:8c20
  Device-2: AMD Oland/Hainan/Cape Verde/Pitcairn HDMI Audio [Radeon HD 7000
  Series]
    driver: snd_hda_intel v: kernel pcie: speed: 8 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 1002:aab0
  Device-3: Generalplus USB Microphone type: USB
    driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-6.1.4:10
    chip-ID: 1b3f:2019
  Sound Server-1: ALSA v: k5.15.0-113-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Broadcom BCM4360 802.11ac Wireless Network Adapter vendor: Apple
    driver: wl v: kernel pcie: speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0
    chip-ID: 14e4:43a0
  IF: wlp3s0 state: up mac: <filter>
  Device-2: Broadcom NetXtreme BCM57766 Gigabit Ethernet PCIe driver: tg3
    v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: N/A bus-ID: 04:00.0
    chip-ID: 14e4:1686
  IF: enp4s0f0 state: down mac: <filter>
Bluetooth:
  Device-1: Apple Bluetooth USB Host Controller type: USB driver: btusb
    v: 0.8 bus-ID: 1-8.3:13 chip-ID: 05ac:828d
  Report: hciconfig ID: hci0 rfk-id: 2 state: up address: <filter>
    bt-v: 2.1 lmp-v: 4.0 sub-v: 4196
Drives:
  Local Storage: total: 3.29 TiB used: 499.83 GiB (14.8%)
  ID-1: /dev/sda vendor: Apple model: HDD ST1000DM003 size: 931.51 GiB
    speed: 3.0 Gb/s serial: <filter>
  ID-2: /dev/sdb vendor: Apple model: SSD SD0128F size: 113 GiB
    speed: 6.0 Gb/s serial: <filter>
  ID-3: /dev/sdc type: USB vendor: Fujitsu model: MHZ2500BT G1
    size: 465.76 GiB serial: <filter>
  ID-4: /dev/sdd type: USB vendor: Seagate model: ST2000DM006-2DM164
    size: 1.82 TiB serial: <filter>
Partition:
  ID-1: / size: 1.79 TiB used: 76.02 GiB (4.1%) fs: ext4 dev: /dev/sdd2
  ID-2: /boot/efi size: 196.9 MiB used: 29.2 MiB (14.9%) fs: vfat
    dev: /dev/sda1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2
    file: /swapfile
Sensors:
  System Temperatures: cpu: 35.0 C mobo: N/A gpu: radeon temp: 37.0 C
  Fan Speeds (RPM): N/A
Repos:
  Packages: 2285 apt: 2275 flatpak: 10
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http://packages.linuxmint.com virginia main upstream import backport
    2: deb http://archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
Info:
  Processes: 281 Uptime: 7m Memory: 23.41 GiB used: 2.01 GiB (8.6%)
  Init: systemd v: 249 runlevel: 5 Compilers: gcc: 11.4.0 alt: 11/12
  Shell: Bash v: 5.1.16 running-in: gnome-terminal inxi: 3.3.13
horst@Linux-iMac:~$

Arduino IDE version from compiler prompt:

/home/horst/arduino-1.8.19/arduino-builder -dump-prefs -logger=machine -hardware /home/horst/arduino-1.8.19/hardware -hardware /home/horst/.arduino15/packages -tools /home/horst/arduino-1.8.19/tools-builder -tools /home/horst/arduino-1.8.19/hardware/tools/avr -tools /home/horst/.arduino15/packages -built-in-libraries /home/horst/arduino-1.8.19/libraries -libraries /home/horst/Arduino/libraries -fqbn=esp32:esp32:esp32:JTAGAdapter=default,PSRAM=disabled,PartitionScheme=default,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,LoopCore=1,EventsCore=1,DebugLevel=none,EraseFlash=none,ZigbeeMode=default -ide-version=10819 -build-path /tmp/arduino_build_547415 -warnings=none -build-cache /tmp/arduino_cache_152243 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.esp-xs2.path=/home/horst/.arduino15/packages/esp32/tools/esp-xs2/2302 -prefs=runtime.tools.esp-xs2-2302.path=/home/horst/.arduino15/packages/esp32/tools/esp-xs2/2302 -prefs=runtime.tools.esp-xs3.path=/home/horst/.arduino15/packages/esp32/tools/esp-xs3/2302 -prefs=runtime.tools.esp-xs3-2302.path=/home/horst/.arduino15/packages/esp32/tools/esp-xs3/2302 -prefs=runtime.tools.mkspiffs.path=/home/horst/.arduino15/packages/esp32/tools/mkspiffs/0.2.3 -prefs=runtime.tools.mkspiffs-0.2.3.path=/home/horst/.arduino15/packages/esp32/tools/mkspiffs/0.2.3 -prefs=runtime.tools.xtensa-esp-elf-gdb.path=/home/horst/.arduino15/packages/esp32/tools/xtensa-esp-elf-gdb/12.1_20231023 -prefs=runtime.tools.xtensa-esp-elf-gdb-12.1_20231023.path=/home/horst/.arduino15/packages/esp32/tools/xtensa-esp-elf-gdb/12.1_20231023 -prefs=runtime.tools.esp-rv32.path=/home/horst/.arduino15/packages/esp32/tools/esp-rv32/2302 -prefs=runtime.tools.esp-rv32-2302.path=/home/horst/.arduino15/packages/esp32/tools/esp-rv32/2302 -prefs=runtime.tools.esp-x32.path=/home/horst/.arduino15/packages/esp32/tools/esp-x32/2302 -prefs=runtime.tools.esp-x32-2302.path=/home/horst/.arduino15/packages/esp32/tools/esp-x32/2302 -prefs=runtime.tools.dfu-util.path=/home/horst/.arduino15/packages/arduino/tools/dfu-util/0.11.0-arduino5 -prefs=runtime.tools.dfu-util-0.11.0-arduino5.path=/home/horst/.arduino15/packages/arduino/tools/dfu-util/0.11.0-arduino5 -prefs=runtime.tools.esptool_py.path=/home/horst/.arduino15/packages/esp32/tools/esptool_py/4.6 -prefs=runtime.tools.esptool_py-4.6.path=/home/horst/.arduino15/packages/esp32/tools/esptool_py/4.6 -prefs=runtime.tools.mklittlefs.path=/home/horst/.arduino15/packages/esp32/tools/mklittlefs/3.0.0-gnu12-dc7f933 -prefs=runtime.tools.mklittlefs-3.0.0-gnu12-dc7f933.path=/home/horst/.arduino15/packages/esp32/tools/mklittlefs/3.0.0-gnu12-dc7f933 -prefs=runtime.tools.openocd-esp32.path=/home/horst/.arduino15/packages/esp32/tools/openocd-esp32/v0.12.0-esp32-20240318 -prefs=runtime.tools.openocd-esp32-v0.12.0-esp32-20240318.path=/home/horst/.arduino15/packages/esp32/tools/openocd-esp32/v0.12.0-esp32-20240318 -prefs=runtime.tools.esp32-arduino-libs.path=/home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef -prefs=runtime.tools.esp32-arduino-libs-idf-release_v5.1-bd2b9390ef.path=/home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef -prefs=runtime.tools.riscv32-esp-elf-gdb.path=/home/horst/.arduino15/packages/esp32/tools/riscv32-esp-elf-gdb/12.1_20231023 -prefs=runtime.tools.riscv32-esp-elf-gdb-12.1_20231023.path=/home/horst/.arduino15/packages/esp32/tools/riscv32-esp-elf-gdb/12.1_20231023 -verbose /home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/ESP32/examples/AnalogRead/AnalogRead.ino
/home/horst/arduino-1.8.19/arduino-builder -compile -logger=machine -hardware /home/horst/arduino-1.8.19/hardware -hardware /home/horst/.arduino15/packages -tools /home/horst/arduino-1.8.19/tools-builder -tools /home/horst/arduino-1.8.19/hardware/tools/avr -tools /home/horst/.arduino15/packages -built-in-libraries /home/horst/arduino-1.8.19/libraries -libraries /home/horst/Arduino/libraries -fqbn=esp32:esp32:esp32:JTAGAdapter=default,PSRAM=disabled,PartitionScheme=default,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,LoopCore=1,EventsCore=1,DebugLevel=none,EraseFlash=none,ZigbeeMode=default -ide-version=10819 -build-path /tmp/arduino_build_547415 -warnings=none -build-cache /tmp/arduino_cache_152243 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.esp-xs2.path=/home/horst/.arduino15/packages/esp32/tools/esp-xs2/2302 -prefs=runtime.tools.esp-xs2-2302.path=/home/horst/.arduino15/packages/esp32/tools/esp-xs2/2302 -prefs=runtime.tools.esp-xs3.path=/home/horst/.arduino15/packages/esp32/tools/esp-xs3/2302 -prefs=runtime.tools.esp-xs3-2302.path=/home/horst/.arduino15/packages/esp32/tools/esp-xs3/2302 -prefs=runtime.tools.mkspiffs.path=/home/horst/.arduino15/packages/esp32/tools/mkspiffs/0.2.3 -prefs=runtime.tools.mkspiffs-0.2.3.path=/home/horst/.arduino15/packages/esp32/tools/mkspiffs/0.2.3 -prefs=runtime.tools.xtensa-esp-elf-gdb.path=/home/horst/.arduino15/packages/esp32/tools/xtensa-esp-elf-gdb/12.1_20231023 -prefs=runtime.tools.xtensa-esp-elf-gdb-12.1_20231023.path=/home/horst/.arduino15/packages/esp32/tools/xtensa-esp-elf-gdb/12.1_20231023 -prefs=runtime.tools.esp-rv32.path=/home/horst/.arduino15/packages/esp32/tools/esp-rv32/2302 -prefs=runtime.tools.esp-rv32-2302.path=/home/horst/.arduino15/packages/esp32/tools/esp-rv32/2302 -prefs=runtime.tools.esp-x32.path=/home/horst/.arduino15/packages/esp32/tools/esp-x32/2302 -prefs=runtime.tools.esp-x32-2302.path=/home/horst/.arduino15/packages/esp32/tools/esp-x32/2302 -prefs=runtime.tools.dfu-util.path=/home/horst/.arduino15/packages/arduino/tools/dfu-util/0.11.0-arduino5 -prefs=runtime.tools.dfu-util-0.11.0-arduino5.path=/home/horst/.arduino15/packages/arduino/tools/dfu-util/0.11.0-arduino5 -prefs=runtime.tools.esptool_py.path=/home/horst/.arduino15/packages/esp32/tools/esptool_py/4.6 -prefs=runtime.tools.esptool_py-4.6.path=/home/horst/.arduino15/packages/esp32/tools/esptool_py/4.6 -prefs=runtime.tools.mklittlefs.path=/home/horst/.arduino15/packages/esp32/tools/mklittlefs/3.0.0-gnu12-dc7f933 -prefs=runtime.tools.mklittlefs-3.0.0-gnu12-dc7f933.path=/home/horst/.arduino15/packages/esp32/tools/mklittlefs/3.0.0-gnu12-dc7f933 -prefs=runtime.tools.openocd-esp32.path=/home/horst/.arduino15/packages/esp32/tools/openocd-esp32/v0.12.0-esp32-20240318 -prefs=runtime.tools.openocd-esp32-v0.12.0-esp32-20240318.path=/home/horst/.arduino15/packages/esp32/tools/openocd-esp32/v0.12.0-esp32-20240318 -prefs=runtime.tools.esp32-arduino-libs.path=/home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef -prefs=runtime.tools.esp32-arduino-libs-idf-release_v5.1-bd2b9390ef.path=/home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef -prefs=runtime.tools.riscv32-esp-elf-gdb.path=/home/horst/.arduino15/packages/esp32/tools/riscv32-esp-elf-gdb/12.1_20231023 -prefs=runtime.tools.riscv32-esp-elf-gdb-12.1_20231023.path=/home/horst/.arduino15/packages/esp32/tools/riscv32-esp-elf-gdb/12.1_20231023 -verbose /home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/ESP32/examples/AnalogRead/AnalogRead.ino
Using board 'esp32' from platform in folder: /home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2
Using core 'esp32' from platform in folder: /home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2
/usr/bin/env bash -c "[ ! -f \"/home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/ESP32/examples/AnalogRead\"/partitions.csv ] || cp -f \"/home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/ESP32/examples/AnalogRead\"/partitions.csv \"/tmp/arduino_build_547415\"/partitions.csv"
/usr/bin/env bash -c "[ -f \"/tmp/arduino_build_547415\"/partitions.csv ] || [ ! -f \"/home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2/variants/esp32\"/partitions.csv ] || cp \"/home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2/variants/esp32\"/partitions.csv \"/tmp/arduino_build_547415\"/partitions.csv"
/usr/bin/env bash -c "[ -f \"/tmp/arduino_build_547415\"/partitions.csv ] || cp \"/home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2\"/tools/partitions/default.csv \"/tmp/arduino_build_547415\"/partitions.csv"
/usr/bin/env bash -c "[ -f \"/home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/ESP32/examples/AnalogRead\"/bootloader.bin ] && cp -f \"/home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/ESP32/examples/AnalogRead\"/bootloader.bin \"/tmp/arduino_build_547415\"/AnalogRead.ino.bootloader.bin || ( [ -f \"/home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2/variants/esp32\"/bootloader.bin ] && cp \"/home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2/variants/esp32\"/bootloader.bin \"/tmp/arduino_build_547415\"/AnalogRead.ino.bootloader.bin || python3 \"/home/horst/.arduino15/packages/esp32/tools/esptool_py/4.6\"/esptool.py --chip esp32 elf2image --flash_mode dio --flash_freq 80m --flash_size 4MB -o \"/tmp/arduino_build_547415\"/AnalogRead.ino.bootloader.bin \"/home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32\"/bin/bootloader_qio_80m.elf )"
esptool.py v4.6
Creating esp32 image...
Merged 1 ELF section
Successfully created esp32 image.
/usr/bin/env bash -c "[ ! -f \"/home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/ESP32/examples/AnalogRead\"/build_opt.h ] || cp -f \"/home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/ESP32/examples/AnalogRead\"/build_opt.h \"/tmp/arduino_build_547415\"/build_opt.h"
/usr/bin/env bash -c "[ -f \"/tmp/arduino_build_547415\"/build_opt.h ] || : > \"/tmp/arduino_build_547415\"/build_opt.h"
/usr/bin/env bash -c ": > '/tmp/arduino_build_547415/file_opts'"
Detecting libraries used...
/home/horst/.arduino15/packages/esp32/tools/esp-x32/2302/bin/xtensa-esp32-elf-g++ -c @/home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32/flags/cpp_flags -w -Os -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10819 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" "-DARDUINO_VARIANT=\"esp32\"" -DARDUINO_PARTITION_default "-DARDUINO_HOST_OS=\"linux\"" "-DARDUINO_FQBN=\"esp32:esp32:esp32:JTAGAdapter=default,PSRAM=disabled,PartitionScheme=default,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,LoopCore=1,EventsCore=1,DebugLevel=none,EraseFlash=none,ZigbeeMode=default\"" -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_CDC_ON_BOOT=0 @/home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32/flags/defines -I/home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/ESP32/examples/AnalogRead -iprefix /home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32/include/ @/home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32/flags/includes -I/home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32/qio_qspi/include -I/home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2/cores/esp32 -I/home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2/variants/esp32 @/tmp/arduino_build_547415/build_opt.h @/tmp/arduino_build_547415/file_opts /tmp/arduino_build_547415/sketch/AnalogRead.ino.cpp -o /dev/null
Generating function prototypes...
/home/horst/.arduino15/packages/esp32/tools/esp-x32/2302/bin/xtensa-esp32-elf-g++ -c @/home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32/flags/cpp_flags -w -Os -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10819 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" "-DARDUINO_VARIANT=\"esp32\"" -DARDUINO_PARTITION_default "-DARDUINO_HOST_OS=\"linux\"" "-DARDUINO_FQBN=\"esp32:esp32:esp32:JTAGAdapter=default,PSRAM=disabled,PartitionScheme=default,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,LoopCore=1,EventsCore=1,DebugLevel=none,EraseFlash=none,ZigbeeMode=default\"" -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_CDC_ON_BOOT=0 @/home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32/flags/defines -I/home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/ESP32/examples/AnalogRead -iprefix /home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32/include/ @/home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32/flags/includes -I/home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32/qio_qspi/include -I/home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2/cores/esp32 -I/home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2/variants/esp32 @/tmp/arduino_build_547415/build_opt.h @/tmp/arduino_build_547415/file_opts /tmp/arduino_build_547415/sketch/AnalogRead.ino.cpp -o /tmp/arduino_build_547415/preproc/ctags_target_for_gcc_minus_e.cpp
/home/horst/arduino-1.8.19/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/arduino_build_547415/preproc/ctags_target_for_gcc_minus_e.cpp
Sketch wird kompiliert...
/home/horst/.arduino15/packages/esp32/tools/esp-x32/2302/bin/xtensa-esp32-elf-g++ -MMD -c @/home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32/flags/cpp_flags -w -Os -DF_CPU=240000000L -DARDUINO=10819 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" "-DARDUINO_VARIANT=\"esp32\"" -DARDUINO_PARTITION_default "-DARDUINO_HOST_OS=\"linux\"" "-DARDUINO_FQBN=\"esp32:esp32:esp32:JTAGAdapter=default,PSRAM=disabled,PartitionScheme=default,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,LoopCore=1,EventsCore=1,DebugLevel=none,EraseFlash=none,ZigbeeMode=default\"" -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_CDC_ON_BOOT=0 @/home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32/flags/defines -I/home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/ESP32/examples/AnalogRead -iprefix /home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32/include/ @/home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32/flags/includes -I/home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32/qio_qspi/include -I/home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2/cores/esp32 -I/home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2/variants/esp32 @/tmp/arduino_build_547415/build_opt.h @/tmp/arduino_build_547415/file_opts /tmp/arduino_build_547415/sketch/AnalogRead.ino.cpp -o /tmp/arduino_build_547415/sketch/AnalogRead.ino.cpp.o
Compiling libraries...
Compiling core...
/usr/bin/env bash -c "echo -DARDUINO_CORE_BUILD > '/tmp/arduino_build_547415/file_opts'"
Using precompiled core: /tmp/arduino_cache_152243/core/core_01128f907fe66603008055ddb4cd61c5.a
/usr/bin/env bash -c ": > '/tmp/arduino_build_547415/file_opts'"
Linking everything together...
/home/horst/.arduino15/packages/esp32/tools/esp-x32/2302/bin/xtensa-esp32-elf-g++ @/home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32/flags/ld_flags @/home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32/flags/ld_scripts -Wl,--Map=/tmp/arduino_build_547415/AnalogRead.ino.map -L/home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32/lib -L/home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32/ld -L/home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32/qio_qspi -Wl,--wrap=esp_panic_handler -Wl,--start-group /tmp/arduino_build_547415/sketch/AnalogRead.ino.cpp.o /tmp/arduino_cache_152243/core/core_01128f907fe66603008055ddb4cd61c5.a @/home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32/flags/ld_libs -Wl,--end-group -Wl,-EL -o /tmp/arduino_build_547415/AnalogRead.ino.elf
python3 /home/horst/.arduino15/packages/esp32/tools/esptool_py/4.6/esptool.py --chip esp32 elf2image --flash_mode dio --flash_freq 80m --flash_size 4MB --elf-sha256-offset 0xb0 -o /tmp/arduino_build_547415/AnalogRead.ino.bin /tmp/arduino_build_547415/AnalogRead.ino.elf
esptool.py v4.6
Creating esp32 image...
Merged 2 ELF sections
Successfully created esp32 image.
python3 /home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2/tools/gen_esp32part.py -q /tmp/arduino_build_547415/partitions.csv /tmp/arduino_build_547415/AnalogRead.ino.partitions.bin
/usr/bin/env bash -c "[ ! -d \"/tmp/arduino_build_547415\"/libraries/Insights ] || python3 \"/home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2\"/tools/gen_insights_package.py /tmp/arduino_build_547415 AnalogRead.ino \"/home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/ESP32/examples/AnalogRead\""
/usr/bin/env bash -c "[ ! -d \"/tmp/arduino_build_547415\"/libraries/ESP_SR ] || [ ! -f \"/home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32\"/esp_sr/srmodels.bin ] || cp -f \"/home/horst/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32\"/esp_sr/srmodels.bin \"/tmp/arduino_build_547415\"/srmodels.bin"
python3 /home/horst/.arduino15/packages/esp32/tools/esptool_py/4.6/esptool.py --chip esp32 merge_bin -o /tmp/arduino_build_547415/AnalogRead.ino.merged.bin --fill-flash-size 4MB --flash_mode keep --flash_freq keep --flash_size keep 0x1000 /tmp/arduino_build_547415/AnalogRead.ino.bootloader.bin 0x8000 /tmp/arduino_build_547415/AnalogRead.ino.partitions.bin 0xe000 /home/horst/.arduino15/packages/esp32/hardware/esp32/3.0.2/tools/partitions/boot_app0.bin 0x10000 /tmp/arduino_build_547415/AnalogRead.ino.bin
esptool.py v4.6
Wrote 0x400000 bytes to file /tmp/arduino_build_547415/AnalogRead.ino.merged.bin, ready to flash to offset 0x0
/home/horst/.arduino15/packages/esp32/tools/esp-x32/2302/bin/xtensa-esp32-elf-size -A /tmp/arduino_build_547415/AnalogRead.ino.elf
Der Sketch verwendet 287845 Bytes (21%) des Programmspeicherplatzes. Das Maximum sind 1310720 Bytes.
Globale Variablen verwenden 20304 Bytes (6%) des dynamischen Speichers, 307376 Bytes für lokale Variablen verbleiben. Das Maximum sind 327680 Bytes.

Arduino board:
Arduino-Boards, ESP8266-01, ESP32 WROOM 32, Arduino uno, ESP32 -D1-R3, Arduino Mega.
I have also testet several cables.
And all other USB devices work.

I hope you can help with this infomations.
Many Thanks

Could be that...

Thanks for your tip, but I have a lot of PCs with Linux Mint 21.x. But I always solved the problem with the lack of USB access with this command: “sudo apt remove brltty”. This works on all PCs, but not on my iMac Linux installation. I have never installed CH340 on any Linux. It's not just about this one board either. There is no USB port in the Arduino IDE on any board, except my network ports to OTA boards. But this is about the visibility of the USB port itself. So ttyUSB0 or ​​similar. But it won't be visible.

I found the solution. It’s often not enough to simply execute "sudo apt remove brltty." In Synaptic, I removed brltty there. There were some dependencies that were also removed. After a restart, voila, the Arduino IDE shows the ttyUSB0 port. I hope someone will look into this issue on Linux Mint. Thanks to everyone who helped me out.

Unfortunately, I was happy too soon. I now see ttyUSB0 in the Arduino ide port selection, but there is the error message:

Der Sketch verwendet 266073 Bytes (20%) des Programmspeicherplatzes. Das Maximum sind 1310720 Bytes.
Globale Variablen verwenden 20184 Bytes (6%) des dynamischen Speichers, 307496 Bytes für lokale Variablen verbleiben. Das Maximum sind 327680 Bytes.
esptool.py v4.6
Serial port /dev/ttyUSB0

A fatal error occurred: Could not open /dev/ttyUSB0, the port doesn't exist
Fehlgeschlagenes Hochladen: Hochladefehler: exit status 2

Which is actually a joke. As soon as I remove the board, ttyUSB0 is gone too. When I reconnect it, the ttyUSB0 is back. Yes, and the board is ok and the cable too. I have another computer next to me with the same operating environment but no iMAC. I can burn the board again and again on this computer. Anyone else have an idea?

Maybe this then
https://www.reddit.com/r/esp32/comments/ybzduf/took_me_1_hour_to_make_a_hello_world/

1 Like