I am guessing the current rebooting issue could be an issue with my build. It is my first OVMS build, based on sources pulled Aug 4, and I may have done something wrong, have the wrong version of some tool installed, or something may have changed in the repos since the developer guide was last tested by someone.
Is “make flash” always supposed to bring the device to a functioning state, when configured and built as described in the developer config (i.e. by cp support/sdkconfig.default.hw31 sdkconfig and then make menuconfig)?
I seem to get errors when connecting to the device, e.g. when flashing:
…
AR build/xtensa-debug-module/libxtensa-debug-module.a
LD build/ovms3.elf
esptool.py v2.3.1
Flashing binaries to serial port /dev/tty.SLAB_USBtoUART (app at offset 0x10000 )...
esptool.py v2.3.1
Traceback (most recent call last):
File "/Users/henrik/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 2637, in <module>
_main()
File "/Users/henrik/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 2630, in _main
main()
File "/Users/henrik/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 2355, in main
esp = chip_class(args.port, initial_baud, args.trace)
File "/Users/henrik/esp/esp-idf/components/esptool_py/esptool/esptool.py", line 193, in __init__
self._port = serial.serial_for_url(port)
File "/Library/Python/2.7/site-packages/serial/__init__.py", line 88, in serial_for_url
instance.open()
File "/Library/Python/2.7/site-packages/serial/serialposix.py", line 272, in open
self._reconfigure_port(force_update=True)
File "/Library/Python/2.7/site-packages/serial/serialposix.py", line 438, in _reconfigure_port
[iflag, oflag, cflag, lflag, ispeed, ospeed, cc])
termios.error: (22, 'Invalid argument')
make: *** [flash] Error 1
Henriks-MBP:OVMS.V3 henrik$ make flash
Flashing binaries to serial port /dev/tty.SLAB_USBtoUART (app at offset 0x10000 )...
esptool.py v2.3.1
Connecting........_____....._____....._____....._____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
make: *** [flash] Error 2
Henriks-MBP:OVMS.V3 henrik$
Could all of this conceivably be caused by “bad” USB hardware? I connect the device via a cheap Hama device for converting my thunderbolt port to standard USB.