Srinivasan
Member
I am new to programming and started to work with Teensy 4.1 for my university project. I am working on Ubuntu 22.04 virtual machine and followed all the installation procedures in the pjrc website. But when I try to upload the code, I get this error,
System details:
Operating system: Ubuntu 22.04 (Virtual Machine)
Arduino IDE version: Arduino IDE 2.2.1
Teensyduino version: Teensy 1.58.1
Observations:
I tried using the same Arduino IDE and Teensyduino version in my host Windows 11 and I can upload the sketch without any issues. So I can deduce from this that there is no issue with Teensy hardware or the USB cable.
I have installed the 00-teensy.rules in etc/udev/rules.d/ but still the issue is not resolved.
I have attached the screenshot of my IDE window before and after uploading the code. I noticed that the Teensy is getting disconnected during the reboot but that doesnt happen iwhen I upload the code from IDE in host windows 11. You can see that in the attached screenshots (Before and after Uploading the program). Could this be a possible issue?
Before uploading:
After Uploading: (See bottom right corner that Teensy is disconnected)
I have followed your instruction on https://forum.pjrc.com/index.php?th...1-not-responding-to-usb-based-requests.72471/
I am attaching my system log information below,
Please help.
Code:
Opening Teensy Loader...
Memory Usage on Teensy 4.1:
FLASH: code:9100, data:4044, headers:8356 free for files:8104964
RAM1: variables:4832, code:6464, padding:26304 free for local variables:486688
RAM2: variables:12416 free for malloc/new:511872
Teensy did not respond to a USB-based request to enter program mode.
Please press the PROGRAM MODE BUTTON on your Teensy to upload your sketch.
Failed uploading: uploading error: exit status 1
System details:
Operating system: Ubuntu 22.04 (Virtual Machine)
Arduino IDE version: Arduino IDE 2.2.1
Teensyduino version: Teensy 1.58.1
Observations:
I tried using the same Arduino IDE and Teensyduino version in my host Windows 11 and I can upload the sketch without any issues. So I can deduce from this that there is no issue with Teensy hardware or the USB cable.
I have installed the 00-teensy.rules in etc/udev/rules.d/ but still the issue is not resolved.
I have attached the screenshot of my IDE window before and after uploading the code. I noticed that the Teensy is getting disconnected during the reboot but that doesnt happen iwhen I upload the code from IDE in host windows 11. You can see that in the attached screenshots (Before and after Uploading the program). Could this be a possible issue?
Before uploading:
After Uploading: (See bottom right corner that Teensy is disconnected)
I have followed your instruction on https://forum.pjrc.com/index.php?th...1-not-responding-to-usb-based-requests.72471/
I am attaching my system log information below,
Code:
Dec 30 22:29:20 srini-VirtualBox arduino.desktop[4396]: 2023-12-30T21:29:20.419Z daemon INFO time="2023-12-30T22:29:20+01:00" level=info msg="from discovery builtin:serial-discovery received message type: add, port: /dev/ttyACM0"
Dec 30 22:29:20 srini-VirtualBox arduino.desktop[4396]: 2023-12-30T21:29:20.421Z discovery-log INFO {"eventType":"add","port":{"matchingBoardsList":[],"port":{"address":"/dev/ttyACM0","label":"/dev/ttyACM0","protocol":"serial","protocolLabel":"Serial Port (USB)","propertiesMap":[["pid","0x0483"],["serialNumber","14905000"],["vid","0x16c0"]],"hardwareId":"14905000"}},"error":""}
Dec 30 22:29:20 srini-VirtualBox arduino.desktop[4396]: 2023-12-30T21:29:20.421Z daemon INFO time="2023-12-30T22:29:20+01:00" level=info msg="from discovery teensy:teensy-discovery received message type: add, port: usb1/1-2"
Dec 30 22:29:20 srini-VirtualBox arduino.desktop[4396]: 2023-12-30T21:29:20.423Z discovery-log INFO {"eventType":"add","port":{"matchingBoardsList":[{"name":"Teensy 4.1","fqbn":"teensy:avr:teensy41","isHidden":false}],"port":{"address":"usb1/1-2","label":"/dev/bus/usb/001/007 Serial","protocol":"teensy","protocolLabel":"Teensy Ports","propertiesMap":[["modelID","0x25"],["name","Teensy 4.1"]],"hardwareId":""}},"error":""}
Dec 30 22:29:20 srini-VirtualBox arduino.desktop[4396]: 2023-12-30T21:29:20.424Z daemon INFO time="2023-12-30T22:29:20+01:00" level=info msg="from discovery teensy:teensy-discovery received message type: add, port: usb1/1-2"
Dec 30 22:29:20 srini-VirtualBox arduino.desktop[4396]: 2023-12-30T21:29:20.428Z discovery-log INFO {"eventType":"add","port":{"matchingBoardsList":[{"name":"Teensy 4.1","fqbn":"teensy:avr:teensy41","isHidden":false}],"port":{"address":"usb1/1-2","label":"/dev/bus/usb/001/007 Serial","protocol":"teensy","protocolLabel":"Teensy Ports","propertiesMap":[["modelID","0x25"],["name","Teensy 4.1"]],"hardwareId":""}},"error":""}
Dec 30 22:29:20 srini-VirtualBox arduino.desktop[4396]: 2023-12-30T21:29:20.431Z daemon INFO time="2023-12-30T22:29:20+01:00" level=info msg="from discovery teensy:teensy-discovery received message type: add, port: usb1/1-2"
Dec 30 22:29:20 srini-VirtualBox arduino.desktop[4396]: time="2023-12-30T22:29:20+01:00" level=info msg="from discovery teensy:teensy-discovery received message type: add, port: usb1/1-2"
Dec 30 22:29:20 srini-VirtualBox arduino.desktop[4396]: 2023-12-30T21:29:20.433Z discovery-log INFO {"eventType":"add","port":{"matchingBoardsList":[{"name":"Teensy 4.1","fqbn":"teensy:avr:teensy41","isHidden":false}],"port":{"address":"usb1/1-2","label":"/dev/bus/usb/001/007 Serial","protocol":"teensy","protocolLabel":"Teensy Ports","propertiesMap":[["modelID","0x25"],["name","Teensy 4.1"]],"hardwareId":""}},"error":""}
Dec 30 22:29:20 srini-VirtualBox arduino.desktop[4396]: 2023-12-30T21:29:20.433Z discovery-log INFO {"eventType":"add","port":{"matchingBoardsList":[{"name":"Teensy 4.1","fqbn":"teensy:avr:teensy41","isHidden":false}],"port":{"address":"usb1/1-2","label":"/dev/bus/usb/001/007 Serial","protocol":"teensy","protocolLabel":"Teensy Ports","propertiesMap":[["modelID","0x25"],["name","Teensy 4.1"]],"hardwareId":""}},"error":""}
Dec 30 22:29:20 srini-VirtualBox snapd[644]: hotplug.go:200: hotplug device add event ignored, enable experimental.hotplug
Dec 30 22:29:20 srini-VirtualBox arduino.desktop[4396]: 2023-12-30T21:29:20.523Z daemon INFO time="2023-12-30T22:29:20+01:00" level=info msg="from discovery teensy:teensy-discovery received message type: add, port: usb1/1-2"
Dec 30 22:29:20 srini-VirtualBox arduino.desktop[4396]: 2023-12-30T21:29:20.524Z discovery-log INFO {"eventType":"add","port":{"matchingBoardsList":[{"name":"Teensy 4.1","fqbn":"teensy:avr:teensy41","isHidden":false}],"port":{"address":"usb1/1-2","label":"/dev/ttyACM0 Serial","protocol":"teensy","protocolLabel":"Teensy Ports","propertiesMap":[["modelID","0x25"],["name","Teensy 4.1"]],"hardwareId":""}},"error":""}
Dec 30 22:29:20 srini-VirtualBox arduino.desktop[4396]: 2023-12-30T21:29:20.628Z root WARN Detected a new port that has been already discovered. The old value will be overridden. Old value: {"port":{"address":"usb1/1-2","addressLabel":"/dev/bus/usb/001/007 Serial","protocol":"teensy","protocolLabel":"Teensy Ports","properties":{"modelID":"0x25","name":"Teensy 4.1"}},"boards":[{"fqbn":"teensy:avr:teensy41","name":"Teensy 4.1"}]}, new value: {"boards":[{"fqbn":"teensy:avr:teensy41","name":"Teensy 4.1"}],"port":{"address":"usb1/1-2","addressLabel":"/dev/bus/usb/001/007 Serial","protocol":"teensy","protocolLabel":"Teensy Ports","properties":{"modelID":"0x25","name":"Teensy 4.1"}}}
Dec 30 22:29:20 srini-VirtualBox arduino.desktop[4396]: message repeated 2 times: [ 2023-12-30T21:29:20.628Z root WARN Detected a new port that has been already discovered. The old value will be overridden. Old value: {"port":{"address":"usb1/1-2","addressLabel":"/dev/bus/usb/001/007 Serial","protocol":"teensy","protocolLabel":"Teensy Ports","properties":{"modelID":"0x25","name":"Teensy 4.1"}},"boards":[{"fqbn":"teensy:avr:teensy41","name":"Teensy 4.1"}]}, new value: {"boards":[{"fqbn":"teensy:avr:teensy41","name":"Teensy 4.1"}],"port":{"address":"usb1/1-2","addressLabel":"/dev/bus/usb/001/007 Serial","protocol":"teensy","protocolLabel":"Teensy Ports","properties":{"modelID":"0x25","name":"Teensy 4.1"}}}]
Dec 30 22:29:20 srini-VirtualBox arduino.desktop[4396]: 2023-12-30T21:29:20.628Z root WARN Detected a new port that has been already discovered. The old value will be overridden. Old value: {"port":{"address":"usb1/1-2","addressLabel":"/dev/bus/usb/001/007 Serial","protocol":"teensy","protocolLabel":"Teensy Ports","properties":{"modelID":"0x25","name":"Teensy 4.1"}},"boards":[{"fqbn":"teensy:avr:teensy41","name":"Teensy 4.1"}]}, new value: {"boards":[{"fqbn":"teensy:avr:teensy41","name":"Teensy 4.1"}],"port":{"address":"usb1/1-2","addressLabel":"/dev/ttyACM0 Serial","protocol":"teensy","protocolLabel":"Teensy Ports","properties":{"modelID":"0x25","name":"Teensy 4.1"}}}
Dec 30 22:29:30 srini-VirtualBox arduino.desktop[4396]: 2023-12-30T21:29:30.888Z daemon INFO time="2023-12-30T22:29:30+01:00" level=info msg="Required tool" tool="teensy:teensy-compile@11.3.1"
Dec 30 22:29:30 srini-VirtualBox arduino.desktop[4396]: time="2023-12-30T22:29:30+01:00" level=info msg="Required tool" tool="teensy:teensy-tools@1.58.0"
Dec 30 22:29:30 srini-VirtualBox arduino.desktop[4396]: 2023-12-30T21:29:30.888Z daemon INFO time="2023-12-30T22:29:30+01:00" level=info msg="Required tool" tool="teensy:teensy-compile@11.3.1"
Dec 30 22:29:30 srini-VirtualBox arduino.desktop[4396]: time="2023-12-30T22:29:30+01:00" level=info msg="Required tool" tool="teensy:teensy-tools@1.58.0"
Dec 30 22:29:30 srini-VirtualBox arduino.desktop[4396]: time="2023-12-30T22:29:30+01:00" level=info msg="Adding libraries dir" dir=/home/srini/.arduino15/libraries location=ide
Dec 30 22:29:30 srini-VirtualBox arduino.desktop[4396]: time="2023-12-30T22:29:30+01:00" level=info msg="Adding libraries dir" dir=/home/srini/.arduino15/packages/teensy/hardware/avr/1.58.1/libraries location=platform
Dec 30 22:29:30 srini-VirtualBox arduino.desktop[4396]: time="2023-12-30T22:29:30+01:00" level=info msg="Adding libraries dir" dir=/home/srini/Arduino/libraries location=user
Dec 30 22:29:32 srini-VirtualBox arduino.desktop[4396]: 2023-12-30T21:29:32.704Z root INFO Executing 'arduino.languageserver.notifyBuildDidComplete' with "file:///tmp/arduino/sketches/3DFF84284A9102989DC43E3B51072EF0"
Dec 30 22:29:32 srini-VirtualBox arduino.desktop[4396]: 2023-12-30T21:29:32.867Z daemon INFO time="2023-12-30T22:29:32+01:00" level=info msg="Required tool" tool="teensy:teensy-compile@11.3.1"
Dec 30 22:29:32 srini-VirtualBox arduino.desktop[4396]: time="2023-12-30T22:29:32+01:00" level=info msg="Required tool" tool="teensy:teensy-tools@1.58.0"
Dec 30 22:29:33 srini-VirtualBox arduino.desktop[4396]: 2023-12-30T21:29:33.826Z daemon INFO time="2023-12-30T22:29:33+01:00" level=info msg="from discovery builtin:serial-discovery received message type: remove, port: /dev/ttyACM0"
Dec 30 22:29:33 srini-VirtualBox arduino.desktop[4396]: 2023-12-30T21:29:33.827Z discovery-log INFO {"eventType":"remove","port":{"matchingBoardsList":[],"port":{"address":"/dev/ttyACM0","label":"","protocol":"serial","protocolLabel":"","propertiesMap":[],"hardwareId":""}},"error":""}
Dec 30 22:29:33 srini-VirtualBox kernel: [ 3726.218722] usb 1-2: USB disconnect, device number 7
Dec 30 22:29:33 srini-VirtualBox arduino.desktop[4396]: 2023-12-30T21:29:33.834Z daemon INFO time="2023-12-30T22:29:33+01:00" level=info msg="from discovery teensy:teensy-discovery received message type: remove, port: usb1/1-2"
Dec 30 22:29:33 srini-VirtualBox arduino.desktop[4396]: 2023-12-30T21:29:33.835Z discovery-log INFO {"eventType":"remove","port":{"matchingBoardsList":[],"port":{"address":"usb1/1-2","label":"","protocol":"teensy","protocolLabel":"","propertiesMap":[],"hardwareId":""}},"error":""}
Dec 30 22:29:33 srini-VirtualBox arduino.desktop[4396]: 2023-12-30T21:29:33.898Z daemon INFO time="2023-12-30T22:29:33+01:00" level=info msg="Required tool" tool="teensy:teensy-compile@11.3.1"
Dec 30 22:29:33 srini-VirtualBox arduino.desktop[4396]: time="2023-12-30T22:29:33+01:00" level=info msg="Required tool" tool="teensy:teensy-tools@1.58.0"
Dec 30 22:29:33 srini-VirtualBox arduino.desktop[4396]: time="2023-12-30T22:29:33+01:00" level=info msg="Required tool" tool="teensy:teensy-compile@11.3.1"
Dec 30 22:29:33 srini-VirtualBox arduino.desktop[4396]: time="2023-12-30T22:29:33+01:00" level=info msg="Required tool" tool="teensy:teensy-tools@1.58.0"
Dec 30 22:29:33 srini-VirtualBox arduino.desktop[4396]: time="2023-12-30T22:29:33+01:00" level=info msg="Required tool" tool="teensy:teensy-compile@11.3.1"
Dec 30 22:29:33 srini-VirtualBox arduino.desktop[4396]: time="2023-12-30T22:29:33+01:00" level=info msg="Required tool" tool="teensy:teensy-tools@1.58.0"
Dec 30 22:29:39 srini-VirtualBox arduino.desktop[4396]: 2023-12-30T21:29:39.437Z daemon INFO time="2023-12-30T22:29:39+01:00" level=error msg="Upload port detection failed, watcher closed" task=port_detection
Please help.