Hi everyone,
I am using IDE 2.2.1 and running it from the terminal by doing ./executable_name
My board was working fine.
I do not remember doing anything nasty.
It was just connected with the usb cable. It was using /dev/ttyACM0 and i could upload the code to the board just fine.
A lot happened so i may not be accurate in my description.
I noticed that at some arbitrary point the board was not identified as Arduino Nano ESP32.
I am starting the IDE from a linux terminal and after the init messages the following keeps repeating itself:
2023-09-29T09:21:32.641Z daemon INFO time="2023-09-29T12:21:32+03:00" level=info msg="sending command" command=CLOSE monitor=serial-monitor
time="2023-09-29T12:21:32+03:00" level=info msg="from discovery builtin:serial-discovery received message type: remove, port: /dev/ttyACM0"
2023-09-29T09:21:32.641Z daemon INFO time="2023-09-29T12:21:32+03:00" level=info msg="received message" error=true event_type=port_closed message="readfrom tcp 127.0.0.1:58672->127.0.0.1:44599: Port has been closed" monitor=serial-monitor
time="2023-09-29T12:21:32+03:00" level=info msg="monitor port has been closed externally" monitor=serial-monitor
time="2023-09-29T12:21:32+03:00" level=info msg="received message" error=true event_type=close message="port already closed" monitor=serial-monitor
time="2023-09-29T12:21:32+03:00" level=info msg="sending command" command=QUIT monitor=serial-monitor
time="2023-09-29T12:21:32+03:00" level=info msg="received message" error=false event_type=quit message=OK monitor=serial-monitor
time="2023-09-29T12:21:32+03:00" level=info msg="Killing monitor process" monitor=serial-monitor
2023-09-29T09:21:32.642Z discovery-log INFO {"eventType":"remove","port":{"matchingBoardsList":[],"port":{"address":"/dev/ttyACM0","label":"","protocol":"serial","protocolLabel":"","propertiesMap":[],"hardwareId":""}},"error":""}
2023-09-29T09:21:32.642Z daemon INFO time="2023-09-29T12:21:32+03:00" level=error msg="stopped decode loop: EOF" monitor=serial-monitor
time="2023-09-29T12:21:32+03:00" level=info msg="Monitor process killed" monitor=serial-monitor
2023-09-29T09:21:32.642Z monitor-service INFO monitor to /dev/ttyACM0 using serial closed by server
2023-09-29T09:21:33.034Z daemon INFO time="2023-09-29T12:21:33+03:00" level=info msg="from discovery builtin:serial-discovery received message type: add, port: /dev/ttyACM0"
2023-09-29T09:21:33.035Z discovery-log INFO {"eventType":"add","port":{"matchingBoardsList":[{"name":"ESP32S3 Dev Module","fqbn":"esp32:esp32:esp32s3","isHidden":false}],"port":{"address":"/dev/ttyACM0","label":"/dev/ttyACM0","protocol":"serial","protocolLabel":"Serial Port (USB)","propertiesMap":[["pid","0x1001"],["serialNumber","34:85:18:7A:A5:9C"],["vid","0x303a"]],"hardwareId":"34:85:18:7A:A5:9C"}},"error":""}
2023-09-29T09:21:33.143Z monitor-service INFO starting monitor
2023-09-29T09:21:33.144Z daemon INFO time="2023-09-29T12:21:33+03:00" level=info msg="Required tool" tool="arduino:dfu-util@0.11.0-arduino5"
2023-09-29T09:21:33.144Z daemon INFO time="2023-09-29T12:21:33+03:00" level=info msg="Required tool" tool="esp32:esptool_py@4.5.1"
time="2023-09-29T12:21:33+03:00" level=info msg="Required tool" tool="esp32:mklittlefs@3.0.0-gnu12-dc7f933"
time="2023-09-29T12:21:33+03:00" level=info msg="Required tool" tool="esp32:mkspiffs@0.2.3"
time="2023-09-29T12:21:33+03:00" level=info msg="Required tool" tool="esp32:openocd-esp32@v0.11.0-esp32-20221026"
time="2023-09-29T12:21:33+03:00" level=info msg="Required tool" tool="esp32:xtensa-esp-elf-gdb@11.2_20220823"
time="2023-09-29T12:21:33+03:00" level=info msg="Required tool" tool="esp32:xtensa-esp32s3-elf-gcc@esp-2021r2-patch5-8.4.0"
time="2023-09-29T12:21:33+03:00" level=info msg="Starting monitor process" monitor=serial-monitor
2023-09-29T09:21:33.144Z daemon INFO time="2023-09-29T12:21:33+03:00" level=info msg="Monitor process started successfully!" monitor=serial-monitor
time="2023-09-29T12:21:33+03:00" level=info msg="sending command" command="HELLO 1 \"arduino-cli 0.34.0\"" monitor=serial-monitor
2023-09-29T09:21:33.145Z daemon INFO time="2023-09-29T12:21:33+03:00" level=info msg="received message" error=false event_type=hello message=OK monitor=serial-monitor
time="2023-09-29T12:21:33+03:00" level=info msg="sending command" command=DESCRIBE monitor=serial-monitor
2023-09-29T09:21:33.145Z daemon INFO time="2023-09-29T12:21:33+03:00" level=info msg="received message" error=false event_type=describe message=OK monitor=serial-monitor
time="2023-09-29T12:21:33+03:00" level=info msg="sending command" command=QUIT monitor=serial-monitor
2023-09-29T09:21:33.145Z daemon INFO time="2023-09-29T12:21:33+03:00" level=info msg="received message" error=false event_type=quit message=OK monitor=serial-monitor
time="2023-09-29T12:21:33+03:00" level=info msg="Killing monitor process" monitor=serial-monitor
2023-09-29T09:21:33.145Z daemon INFO time="2023-09-29T12:21:33+03:00" level=error msg="stopped decode loop: EOF" monitor=serial-monitor
time="2023-09-29T12:21:33+03:00" level=info msg="Monitor process killed" monitor=serial-monitor
2023-09-29T09:21:33.147Z daemon INFO time="2023-09-29T12:21:33+03:00" level=info msg="Required tool" tool="arduino:dfu-util@0.11.0-arduino5"
time="2023-09-29T12:21:33+03:00" level=info msg="Required tool" tool="esp32:esptool_py@4.5.1"
time="2023-09-29T12:21:33+03:00" level=info msg="Required tool" tool="esp32:mklittlefs@3.0.0-gnu12-dc7f933"
time="2023-09-29T12:21:33+03:00" level=info msg="Required tool" tool="esp32:mkspiffs@0.2.3"
time="2023-09-29T12:21:33+03:00" level=info msg="Required tool" tool="esp32:openocd-esp32@v0.11.0-esp32-20221026"
time="2023-09-29T12:21:33+03:00" level=info msg="Required tool" tool="esp32:xtensa-esp-elf-gdb@11.2_20220823"
time="2023-09-29T12:21:33+03:00" level=info msg="Required tool" tool="esp32:xtensa-esp32s3-elf-gcc@esp-2021r2-patch5-8.4.0"
2023-09-29T09:21:33.147Z daemon INFO time="2023-09-29T12:21:33+03:00" level=info msg="Starting monitor process" monitor=serial-monitor
2023-09-29T09:21:33.147Z daemon INFO time="2023-09-29T12:21:33+03:00" level=info msg="Monitor process started successfully!" monitor=serial-monitor
2023-09-29T09:21:33.147Z daemon INFO time="2023-09-29T12:21:33+03:00" level=info msg="sending command" command="HELLO 1 \"arduino-cli 0.34.0\"" monitor=serial-monitor
2023-09-29T09:21:33.148Z daemon INFO time="2023-09-29T12:21:33+03:00" level=info msg="received message" error=false event_type=hello message=OK monitor=serial-monitor
2023-09-29T09:21:33.148Z daemon INFO time="2023-09-29T12:21:33+03:00" level=info msg="sending command" command=DESCRIBE monitor=serial-monitor
time="2023-09-29T12:21:33+03:00" level=info msg="received message" error=false event_type=describe message=OK monitor=serial-monitor
time="2023-09-29T12:21:33+03:00" level=info msg="sending command" command="CONFIGURE bits 8" monitor=serial-monitor
time="2023-09-29T12:21:33+03:00" level=info msg="received message" error=false event_type=configure message=OK monitor=serial-monitor
2023-09-29T09:21:33.148Z daemon INFO time="2023-09-29T12:21:33+03:00" level=info msg="sending command" command="CONFIGURE dtr on" monitor=serial-monitor
time="2023-09-29T12:21:33+03:00" level=info msg="received message" error=false event_type=configure message=OK monitor=serial-monitor
time="2023-09-29T12:21:33+03:00" level=info msg="sending command" command="CONFIGURE parity none" monitor=serial-monitor
2023-09-29T09:21:33.148Z daemon INFO time="2023-09-29T12:21:33+03:00" level=info msg="received message" error=false event_type=configure message=OK monitor=serial-monitor
time="2023-09-29T12:21:33+03:00" level=info msg="sending command" command="CONFIGURE rts on" monitor=serial-monitor
time="2023-09-29T12:21:33+03:00" level=info msg="received message" error=false event_type=configure message=OK monitor=serial-monitor
time="2023-09-29T12:21:33+03:00" level=info msg="sending command" command="CONFIGURE stop_bits 1" monitor=serial-monitor
time="2023-09-29T12:21:33+03:00" level=info msg="received message" error=false event_type=configure message=OK monitor=serial-monitor
time="2023-09-29T12:21:33+03:00" level=info msg="sending command" command="CONFIGURE baudrate 9600" monitor=serial-monitor
2023-09-29T09:21:33.148Z daemon INFO time="2023-09-29T12:21:33+03:00" level=info msg="received message" error=false event_type=configure message=OK monitor=serial-monitor
time="2023-09-29T12:21:33+03:00" level=info msg="sending command" command="OPEN 127.0.0.1:40013 /dev/ttyACM0" monitor=serial-monitor
2023-09-29T09:21:33.149Z daemon INFO time="2023-09-29T12:21:33+03:00" level=info msg="received message" error=false event_type=open message=OK monitor=serial-monitor
2023-09-29T09:21:33.149Z daemon INFO time="2023-09-29T12:21:33+03:00" level=info msg="Port /dev/ttyACM0 successfully opened"
2023-09-29T09:21:33.149Z monitor-service INFO Using port configuration for serial:/dev/ttyACM0: {"settingsList":[{"settingId":"bits","value":"8"},{"settingId":"dtr","value":"on"},{"settingId":"parity","value":"none"},{"settingId":"rts","value":"on"},{"settingId":"stop_bits","value":"1"},{"settingId":"baudrate","value":"9600"}]}
2023-09-29T09:21:33.149Z monitor-service INFO started monitor to /dev/ttyACM0 using serial
2023-09-29T09:21:33.150Z monitor-service INFO No port configuration changes have been detected. No need to send configure commands to the running monitor serial:/dev/ttyACM0.
The board is constantly in bootloader mode since i can see the RGB led to be purple. If i follow the procedure of shorting B1 to the GND, then pressing/releasing the RST button and then unshorting B1 from the GND the RGB led stays purple (after being green while B1 is shorted) and i no longer see the messages above being repeated.
While in the bootloader mode (after doing the procedure with B1 & RTS) i can burn the bootloader using the menu Tools->Burn boot loader and i see the following:
Connecting...
Chip is ESP32-S3 (revision v0.1)
Features: WiFi, BLE
Crystal is 40MHz
MAC: 34:85:18:7a:a5:9c
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
Chip erase completed successfully in 1.6s
Hard resetting via RTS pin...
After that (burning the boot loader) the board while having purple on the RGB led is again printing the messages i posted above every sec or so.
If i probe the board info using the menu Tools->Get board info i get a dialog saying:
BN: ESP32S3 Dev Module
VID: 0x303a
PID: 0x1001
SN: 34:85:18:7A:A5:9C
while another new board that i tried shows:
BN: Arduino Nano ESP32
VID: 0x2341
PID: 0x0070
SN: 3485187B4220 (yes w/o the semicolons)
I have no idea what happened.
I occasionally sense ESDs here at my desk while so this could be one culprit. Not sure.
Can anyone try to guess what could be wrong?
Thanks
Manos
