Bob Larkin
Well-known member
The system is 64-bit Linux, Ubuntu 18.04, lots of memory, etc.
1-Turn on PC
2-Plug in T3.6 with Audio adapter, nothing else
3-Open Serial Monitor
4-Load simple INO
5-This works fine, over and over. But wait,
6-Close Serial Monitor
7-Load same little program. All seems OK
8-Load it again and error message shows on IDE:
The Loader Verbose:
9-Any attempt to Load again results in a non-responsive Loader. Other indications are that portions of Linux has also been corrupted. The solution becomes a Linux reboot (sometimes needs multiple)
This has been causing problems for some while, but they seemed "random". This now seems to isolate the issue to Loading without the Serial Monitor being open. I can now work around the issue by always having the Monitor open,or so it seems at this point.
Can anyone duplicate this problem?
Bob
1-Turn on PC
2-Plug in T3.6 with Audio adapter, nothing else
3-Open Serial Monitor
4-Load simple INO
Code:
/* TestLoader.ino Bob Larkin 3 July 2020
*/
void setup(void) {
Serial.begin(9600);
delay(1000);
Serial.println("Test Loader");
}
void loop() {
}
6-Close Serial Monitor
7-Load same little program. All seems OK
8-Load it again and error message shows on IDE:
Code:
Arduino: 1.8.12 (Linux), TD: 1.52, Board: "Teensy 3.6, Serial, 180 MHz, Faster, US English"
Sketch uses 14016 bytes (1%) of program storage space. Maximum is 1048576 bytes.
Global variables use 4948 bytes (1%) of dynamic memory, leaving 257196 bytes for local variables. Maximum is 262144 bytes.
/home/bob/arduino-1.8.12/hardware/teensy/../tools/teensy_post_compile -file=TestLoader.ino -path=/tmp/arduino_build_61261 -tools=/home/bob/arduino-1.8.12/hardware/teensy/../tools -board=TEENSY36 -reboot -port=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10 -portlabel=/dev/bus/usb/003/013 Bootloader -portprotocol=Teensy
An error occurred while uploading the sketch
Code:
10:05:51.297 (ports 5): add child: subsys=usb, type=usb_interface, location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10:1.0
10:05:51.297 (ports 5): parent location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10
10:05:51.297 (ports 5): model=34 (Teensy 3.6)
10:05:51.297 (ports 5): usb_add: /dev/bus/usb/003/014 (Teensy 3.6) Serial
10:05:51.297 (ports 5): add child: subsys=usb, type=usb_interface, location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10:1.1
10:05:51.297 (ports 5): parent location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10
10:05:51.297 (ports 5): usb_add: /dev/bus/usb/003/014 (Teensy 3.6) Serial
10:05:51.299 (ports 5): add child: subsys=tty, type=(null), location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10:1.0/tty/ttyACM0
10:05:51.299 (ports 5): parent location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10
10:05:51.299 (ports 5): devnode=/dev/ttyACM0, subsystem=tty, ifacenum=0
10:05:51.299 (ports 5): usb_add: /dev/ttyACM0 (Teensy 3.6) Serial
10:05:51.299 (ports 5): unknown action: bind
10:05:51.300 (ports 5): unknown action: bind
10:05:51.302 (ports 5): unknown action: bind
10:06:11.429 (post_compile 26): Begin, version=1.52
10:06:11.429 (loader): remote connection 8 opened
10:06:11.430 (post_compile 26): Sending command: comment: Teensyduino 1.52 - LINUX64 (teensy_post_compile)
10:06:11.430 (loader): remote cmd from 8: "comment: Teensyduino 1.52 - LINUX64 (teensy_post_compile)"
10:06:11.431 (loader): remote cmd from 8: "status"
10:06:11.431 (loader): file changed
10:06:11.439 (loader): File "TestLoader.ino.hex". 14020 bytes, 1% used
10:06:11.531 (post_compile 26): Status: 1, 1, 0, 5, 0, 0, /tmp/arduino_build_61261/, TestLoader.ino.hex
10:06:11.531 (post_compile 26): Disconnect
10:06:11.547 (post_compile 27): Begin, version=1.52
10:06:11.562 (loader): remote connection 10 opened
10:06:11.562 (post_compile 27): Sending command: comment: Teensyduino 1.52 - LINUX64 (teensy_post_compile)
10:06:11.573 (loader): remote cmd from 10: "comment: Teensyduino 1.52 - LINUX64 (teensy_post_compile)"
10:06:11.573 (loader): remote connection 8 closed
10:06:11.574 (loader): remote cmd from 10: "status"
10:06:11.659 (post_compile 27): Status: 1, 1, 0, 5, 0, 0, /tmp/arduino_build_61261/, TestLoader.ino.hex
10:06:11.659 (post_compile 27): Disconnect
10:06:11.669 (post_compile 28): Running teensy_reboot: /home/bob/arduino-1.8.12/hardware/teensy/../tools/teensy_reboot
10:06:11.669 (loader): remote connection 10 closed
10:06:11.670 (loader): remote connection 8 opened
10:06:11.671 (reboot 29): Begin, version=1.52
10:06:11.671 (reboot 29): location = /sys/devices/pci0000:00/0000:00:14.0/usb3/3-10
10:06:11.671 (reboot 29): portlabel = /dev/bus/usb/003/013 Bootloader
10:06:11.671 (reboot 29): portprotocol = Teensy
10:06:11.671 (reboot 29): Only location /sys/devices/pci0000:00/0000:00:14.0/usb3/3-10 will be tried
10:06:11.680 (loader): remote connection 8 closed
10:06:11.682 (loader): remote connection 8 opened
10:06:11.683 (reboot 29): add device: subsys=usb, type=usb_device, location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10
10:06:11.683 (reboot 29): devnode=/dev/bus/usb/003/014, subsystem=usb, ifacenum=-1
10:06:11.683 (reboot 29): add child: subsys=usb, type=usb_interface, location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10:1.0
10:06:11.683 (reboot 29): parent location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10
10:06:11.683 (reboot 29): model=34 (Teensy 3.6)
10:06:11.683 (reboot 29): add child: subsys=tty, type=(null), location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10:1.0/tty/ttyACM0
10:06:11.683 (reboot 29): parent location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10
10:06:11.683 (reboot 29): devnode=/dev/ttyACM0, subsystem=tty, ifacenum=0
10:06:11.683 (reboot 29): add child: subsys=usb, type=usb_interface, location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10:1.1
10:06:11.683 (reboot 29): parent location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10
10:06:11.731 (loader): remote cmd from 8: "show:arduino_attempt_reboot"
10:06:11.731 (loader): got request to show arduino rebooting message
10:06:11.734 (loader): remote cmd from 8: "comment: Teensyduino 1.52 - LINUX64 (teensy_reboot)"
10:06:11.734 (loader): remote cmd from 8: "status"
10:06:17.021 (ports 5): del child: location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10:1.0/tty/ttyACM0
10:06:17.021 (ports 5): devnode=/dev/bus/usb/003/014, subsystem=usb, ifacenum=-1
10:06:17.022 (ports 5): unknown action: unbind
10:06:17.025 (ports 5): unknown action: unbind
10:06:17.025 (ports 5): del child: location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10:1.1
10:06:17.026 (ports 5): del child: location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10:1.0
10:06:17.026 (ports 5): unknown action: unbind
10:06:17.027 (ports 5): del device: location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10
10:06:17.077 (loader): remote cmd from 8: "status"
10:06:17.137 (loader): remote connection 8 closed
10:06:17.442 (ports 5): add device: subsys=usb, type=usb_device, location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10
10:06:17.442 (ports 5): devnode=/dev/bus/usb/003/015, subsystem=usb, ifacenum=-1
10:06:17.442 (ports 5): usb_add: /dev/bus/usb/003/015 (Teensy 3.6) Bootloader
10:06:17.444 (ports 5): add child: subsys=usb, type=usb_interface, location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10:1.0
10:06:17.444 (ports 5): parent location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10
10:06:17.444 (ports 5): usb_add: /dev/bus/usb/003/015 (Teensy 3.6) Bootloader
10:06:17.446 (ports 5): add child: subsys=hid, type=(null), location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10:1.0/0003:16C0:0478.000B
10:06:17.446 (ports 5): parent location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10
10:06:17.446 (ports 5): model=34 (Teensy 3.6)
10:06:17.446 (ports 5): usb_add: /dev/bus/usb/003/015 (Teensy 3.6) Bootloader
10:06:17.448 (ports 5): add child: subsys=hidraw, type=(null), location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10:1.0/0003:16C0:0478.000B/hidraw/hidraw3
10:06:17.448 (ports 5): parent location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10
10:06:17.448 (ports 5): usb_add: /dev/bus/usb/003/015 (Teensy 3.6) Bootloader
10:06:17.449 (ports 5): unknown action: bind
10:06:17.451 (ports 5): unknown action: bind
10:06:17.452 (ports 5): unknown action: bind
10:06:17.566 (loader): Device came online, code_size = 1048576
10:06:17.566 (loader): Board is: Teensy 3.6 (MK66FX1M0), version 1.03
10:06:17.567 (ports 5): del child: location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10:1.0/0003:16C0:0478.000B/hidraw/hidraw3
10:06:17.567 (ports 5): unknown action: unbind
10:06:17.568 (ports 5): del child: location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10:1.0/0003:16C0:0478.000B
10:06:17.568 (ports 5): unknown action: unbind
10:06:17.573 (loader): File "TestLoader.ino.hex". 14020 bytes, 1% used
10:06:17.576 (loader): set background IMG_ONLINE
10:06:17.584 (loader): File "TestLoader.ino.hex". 14020 bytes, 1% used
10:06:17.588 (loader): elf appears to be for Teensy 3.6 (MK66FX1M0) (1048576 bytes)
10:06:17.588 (loader): elf binary data matches hex file
10:06:17.588 (loader): elf file is for Teensy 3.6 (MK66FX1M0)
10:06:17.591 (loader): begin operation
10:06:17.596 (loader): flash, block=0, bs=1024, auto=1
10:06:17.597 (loader): gauge old value = 0
10:06:17.598 (loader): flash, block=1, bs=1024, auto=1
10:06:17.599 (loader): gauge old value = 1
10:06:17.612 (loader): flash, block=2, bs=1024, auto=1
10:06:17.613 (loader): gauge old value = 2
10:06:17.614 (loader): flash, block=3, bs=1024, auto=1
10:06:17.888 (loader): gauge old value = 3
10:06:17.890 (loader): flash, block=4, bs=1024, auto=1
10:06:17.891 (loader): gauge old value = 4
10:06:17.893 (loader): flash, block=5, bs=1024, auto=1
10:06:17.909 (loader): gauge old value = 5
10:06:17.911 (loader): flash, block=6, bs=1024, auto=1
10:06:17.912 (loader): gauge old value = 6
10:06:17.914 (loader): flash, block=7, bs=1024, auto=1
10:06:17.915 (loader): gauge old value = 7
10:06:17.917 (loader): flash, block=8, bs=1024, auto=1
10:06:17.933 (loader): gauge old value = 8
10:06:17.935 (loader): flash, block=9, bs=1024, auto=1
10:06:17.936 (loader): gauge old value = 9
10:06:17.937 (loader): flash, block=10, bs=1024, auto=1
10:06:17.939 (loader): gauge old value = 10
10:06:17.940 (loader): flash, block=11, bs=1024, auto=1
10:06:17.956 (loader): gauge old value = 11
10:06:17.958 (loader): flash, block=12, bs=1024, auto=1
10:06:17.959 (loader): gauge old value = 12
10:06:17.961 (loader): flash, block=13, bs=1024, auto=1
10:06:17.962 (loader): gauge old value = 13
10:06:17.965 (loader): sending reboot
10:06:17.981 (loader): begin wait_until_offline
10:06:18.050 (ports 5): unknown action: unbind
10:06:18.051 (ports 5): del child: location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10/3-10:1.0
10:06:18.051 (ports 5): unknown action: unbind
10:06:18.052 (ports 5): del device: location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10
10:06:18.081 (loader): HID/linux: something changed, try reading a descriptor
10:06:18.081 (loader): HID/linux: Device was just disconnected
10:06:18.081 (loader): offline, waited 2
10:06:18.082 (loader): end operation, total time = 0.490 seconds
10:06:18.082 (loader): set background IMG_REBOOT_OK
10:06:18.083 (loader): redraw timer set, image 14 to show for 1200 ms
10:06:18.506 (ports 5): add device: subsys=usb, type=usb_device, location=/sys/devices/pci0000:00/0000:00:14.0/usb3/3-10
10:06:18.506 (ports 5): devnode=/dev/bus/usb/003/016, subsystem=usb, ifacenum=-1
10:06:18.506 (ports 5): usb_add: /dev/bus/usb/003/016 (Teensy 3.6) Serial
10:06:19.283 (loader): redraw, image 9
This has been causing problems for some while, but they seemed "random". This now seems to isolate the issue to Loading without the Serial Monitor being open. I can now work around the issue by always having the Monitor open,or so it seems at this point.
Can anyone duplicate this problem?
Bob