Hi all,
after having a lot of fun with several raspberry pis for a ling time, I’ve bought me a ESP32 dev board to play with. It’s a “NodeMCO ESP32”, and doc are saying usable/compatible with Arduino IDE.
As usual with OpenSuse, there are two general possibilities to get this Arduino IDE, “direct” install from download page (unzip a .tar.gz in this case), or zypper. Trying our rpms first, from repo CrossToolchain:avr, version 1.8.7, should be new enough. Whyever, I’m getting an “error when downloading” the ESP32 library files. Using the same (I swear :-)) settings for the 1.8.8 directly downloaded IDE, I can (at least) download these libraries.
Starting from then I ran in a bigger issue with the “COM port” used / to be used for this board. First ran into a hardware issue: I’ve 4 port USB3.0 hub, but when connecting the ESP32 board to this hub, nothing happened, no light showing me that even a connection took place.
Using a “direct” USB port in my OpenSuse box adds a device
Bus 001 Device 011: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP2102/CP2109 UART Bridge Controller [CP210x family]
Not really an idea how to use it
At first, as a normal user, I’ve got not a single “port” option shown on Arduino IDE. Found this guide: https://playground.arduino.cc/Linux/OpenSUSE, mentioning “to make every user a member of the groups: dialout, lock and uucp.”
Did, and got dev/ttyS0 and /dev/ttyS1 offered in Arduino IDE.
But these seems to be native/hardware serial interfaces of my OpenSuse box, I don’t have any connectors, but can enable them in BIOS settings. For whatever reason
Piping “ls /dev” output to files, one when ESP32 board is connected, one when ESP32 board is not connected, shows me that the connected ESP32 board adds this file:
lrwxrwxrwx 1 root root 15 16. Dez 11:35 vantage -> bus/usb/001/011
But Arduino IDE does not offer it for selection, as said only /dev/ttyS0 and /dev/ttyS1. And “enabling” them the hard way in ~/.arduino15/preferences.txt
serial.port=/dev/vantage
serial.port.file=vantage
leads to an error
esptool.py v2.3.1
Traceback (most recent call last):
File "/home/michael/.arduino15/packages/esp32/tools/esptool/2.3.1/esptool.py", line 2637, in <module>
_main()
File "/home/michael/.arduino15/packages/esp32/tools/esptool/2.3.1/esptool.py", line 2630, in _main
main()
File "/home/michael/.arduino15/packages/esp32/tools/esptool/2.3.1/esptool.py", line 2355, in main
esp = chip_class(args.port, initial_baud, args.trace)
File "/home/michael/.arduino15/packages/esp32/tools/esptool/2.3.1/esptool.py", line 193, in __init__
self._port = serial.serial_for_url(port)
File "/usr/lib/python2.7/site-packages/serial/__init__.py", line 88, in serial_for_url
instance.open()
File "/usr/lib/python2.7/site-packages/serial/serialposix.py", line 272, in open
self._reconfigure_port(force_update=True)
File "/usr/lib/python2.7/site-packages/serial/serialposix.py", line 326, in _reconfigure_port
raise SerialException("Could not configure port: {}".format(msg))
serial.serialutil.SerialException: Could not configure port: (25, 'Inappropriate ioctl for device')
Beim Hochladen des Sketches ist ein Fehler aufgetreten
Running out of ideas, any hints would be great. Any OpenSuse “makers” being here?
Joyful Third Sunday in Advent,
Michael