Skip to content

SerialNINAPassthrough + esptool in UNO WiFi rev2 = won't connect. Write Timeout #31

Open
@gvJaime

Description

@gvJaime

Hello.

I'm trying to load the compiled firmware to the Arduino UNO WiFi rev2, making use of esptool + SerialNINAPassthrough script, which as I understand, boots up the NINA in recovery mode, waiting for a binary to arrive via serial (pretty much the same as in the obsolete "UNO WiFi DEV Ed".

The thing is that I've been trying such communication for a week and it never works. I always get:

esptool.py v2.6
Serial port /dev/ttyACM0
Connecting......
Traceback (most recent call last):
File "/home/gvJaime/.platformio/packages/tool-esptoolpy/esptool.py", line 2959, in <module>
_main()
File "/home/gvJaime/.platformio/packages/tool-esptoolpy/esptool.py", line 2952, in _main
main()
File "/home/gvJaime/.platformio/packages/tool-esptoolpy/esptool.py", line 2653, in main
esp.connect(args.before)
File "/home/gvJaime/.platformio/packages/tool-esptoolpy/esptool.py", line 460, in connect
last_error = self._connect_attempt(mode=mode, esp32r0_delay=False)
File "/home/gvJaime/.platformio/packages/tool-esptoolpy/esptool.py", line 440, in _connect_attempt
self.sync()
File "/home/gvJaime/.platformio/packages/tool-esptoolpy/esptool.py", line 379, in sync
timeout=SYNC_TIMEOUT)
File "/home/gvJaime/.platformio/packages/tool-esptoolpy/esptool.py", line 322, in command
self.write(pkt)
File "/home/gvJaime/.platformio/packages/tool-esptoolpy/esptool.py", line 285, in write
self._port.write(buf)
File "/usr/lib/python2.7/site-packages/serial/serialposix.py", line 552, in write
raise writeTimeoutError
serial.serialutil.SerialTimeoutException: Write timeout
*** [upload] Error 1

Also comms seem really glitchy from the serial monitor in the arduino IDE, here is an example:

ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RQ⸮�U⸮I⸮⸮⸮⸮0x23 (ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x23 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download

Such glitches appear at random, and they seem to get worse with the temperature of the room. Freezing the board does make the glitches dissapear, but you still get the write timeout.

Is this a production issue, or am I missing some detail here? I have two boards with the same problem.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions