I am using Platformio (Compiled & uploaded ESPmon to Robotdyn UNO+Wifi board, but when it started, I saw the old ESP logi, as well as the required ESPmon-xxx login, so then tried to erase the ESP8266 memory. ESPtools are in Platformio, but could not work out how to acess that, so loaded ESPtools & ran from root terminal. Results below:
[[email protected] doug]# esptool.py -p /dev/ttyUSB0 erase_flash
esptool.py v2.6
Serial port /dev/ttyUSB0
Connecting...
Traceback (most recent call last):
File "/usr/bin/esptool.py", line 2959, in <module>
_main()
File "/usr/bin/esptool.py", line 2952, in _main
main()
File "/usr/bin/esptool.py", line 2646, in main
esp = ESPLoader.detect_chip(each_port, initial_baud, args.before, args.trace)
File "/usr/bin/esptool.py", line 259, in detect_chip
detect_port.connect(connect_mode)
File "/usr/bin/esptool.py", line 460, in connect
last_error = self._connect_attempt(mode=mode, esp32r0_delay=False)
File "/usr/bin/esptool.py", line 419, in _connect_attempt
self._setRTS(True) # EN=LOW, chip in reset
File "/usr/bin/esptool.py", line 391, in _setRTS
self._port.setDTR(self._port.dtr)
AttributeError: 'Serial' object has no attribute 'dtr'
(end)
Completely at sea here! I have enough knowledge to be dangerous! Can someone help pls??
ps: apparently the next version of Platformio is better, but I am still running the supported
version.