Bob Larkin
Well-known member
I have a Loader problem that that results in a red "Download ERROR" error box. To start off, I regret that I cannot isolate the problem to simple code that creates the problem. It seems to be associated with big program memory.
OK, this is with Linux Mint 20.2, Teensy 4.0 with only an audio board, using the common Arduino IDE 1.8.19 and Teensyduino 1.56. The program (PocketFT8_0) compiles without error. The loader then runs for a while and stops with red "Download ERROR." This leaves the USB type as "Bootloader (Teensy 4.0)" that requires an annoying reset of the T4. I obviously can't execute the T4 program, so the only error information is from the Loader. Here is the log:
The question: What does "program: write error" mean?
BTW, I have seen this same problem for a while using other INO programs.
I searched for others with this same issue, thinking it must be around, but no success. Thanks, in advance, for the help!! Bob
OK, this is with Linux Mint 20.2, Teensy 4.0 with only an audio board, using the common Arduino IDE 1.8.19 and Teensyduino 1.56. The program (PocketFT8_0) compiles without error. The loader then runs for a while and stops with red "Download ERROR." This leaves the USB type as "Bootloader (Teensy 4.0)" that requires an annoying reset of the T4. I obviously can't execute the T4 program, so the only error information is from the Loader. Here is the log:
Code:
16:24:38.995 (loader): remote connection 10 closed
16:24:40.705 (post_compile 53): Begin, version=1.56
16:24:40.705 (loader): remote connection 10 opened
16:24:40.705 (post_compile 53): Sending command: comment: Teensyduino 1.56 - LINUX64 (teensy_post_compile)
16:24:40.705 (loader): remote cmd from 10: "comment: Teensyduino 1.56 - LINUX64 (teensy_post_compile)"
16:24:40.705 (loader): remote cmd from 10: "status"
16:24:40.705 (loader): file changed
16:24:40.730 (loader): File "/tmp/arduino_build_353806/PocketFT8_0.ino.hex", 154624 bytes
16:24:40.730 (loader): File "PocketFT8_0.ino.hex". 154624 bytes
16:24:40.731 (post_compile 53): Status: 1, 1, 0, 10, 3, 0, /tmp/arduino_build_353806/, PocketFT8_0.ino.hex
16:24:40.731 (post_compile 53): Disconnect
16:24:40.741 (loader): remote connection 10 closed
16:24:40.954 (post_compile 54): Begin, version=1.56
16:24:40.955 (loader): remote connection 10 opened
16:24:40.955 (post_compile 54): Sending command: comment: Teensyduino 1.56 - LINUX64 (teensy_post_compile)
16:24:40.955 (loader): remote cmd from 10: "comment: Teensyduino 1.56 - LINUX64 (teensy_post_compile)"
16:24:40.955 (loader): remote cmd from 10: "status"
16:24:40.956 (post_compile 54): Status: 1, 1, 0, 10, 3, 0, /tmp/arduino_build_353806/, PocketFT8_0.ino.hex
16:24:40.956 (post_compile 54): Disconnect
16:24:40.966 (post_compile 55): Running teensy_reboot: /home/bob/Documents/arduino-1.8.19/hardware/teensy/../tools/teensy_reboot
16:24:40.966 (loader): remote connection 10 closed
16:24:40.966 (loader): remote connection 10 opened
16:24:40.966 (loader): remote connection 10 closed
16:24:40.966 (reboot 56): Begin, version=1.56
16:24:40.966 (reboot 56): location = /sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3
16:24:40.966 (reboot 56): portlabel = /dev/bus/usb/003/058 Bootloader
16:24:40.966 (reboot 56): portprotocol = Teensy
16:24:40.966 (reboot 56): Only location /sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3 will be tried
16:24:40.984 (loader): remote connection 10 opened
16:24:40.985 (reboot 56): add device: subsys=usb, type=usb_device, location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3
16:24:40.985 (reboot 56): devnode=/dev/bus/usb/003/059, subsystem=usb, ifacenum=-1
16:24:40.985 (reboot 56): add child: subsys=usb, type=usb_interface, location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3/3-1.3:1.0
16:24:40.985 (reboot 56): parent location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3
16:24:40.985 (reboot 56): model=36 (Teensy 4.0)
16:24:40.985 (reboot 56): add child: subsys=hid, type=(null), location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3/3-1.3:1.0/0003:16C0:0486.0025
16:24:40.985 (reboot 56): parent location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3
16:24:40.985 (reboot 56): add child: subsys=hidraw, type=(null), location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3/3-1.3:1.0/0003:16C0:0486.0025/hidraw/hidraw0
16:24:40.985 (reboot 56): parent location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3
16:24:40.985 (reboot 56): add child: subsys=usb, type=usb_interface, location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3/3-1.3:1.1
16:24:40.985 (reboot 56): parent location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3
16:24:40.985 (reboot 56): add child: subsys=hid, type=(null), location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3/3-1.3:1.1/0003:16C0:0486.0026
16:24:40.985 (reboot 56): parent location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3
16:24:40.986 (reboot 56): add child: subsys=hidraw, type=(null), location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3/3-1.3:1.1/0003:16C0:0486.0026/hidraw/hidraw1
16:24:40.986 (reboot 56): parent location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3
16:24:40.986 (reboot 56): devnode=/dev/hidraw1, subsystem=hidraw, ifacenum=1
16:24:41.002 (reboot 56): usb scan found 1 devices
16:24:41.002 (reboot 56): found Teensy Loader, version 1.56
16:24:41.002 (reboot 56): Sending command: show:arduino_attempt_reboot
16:24:41.027 (loader): remote cmd from 10: "show:arduino_attempt_reboot"
16:24:41.027 (loader): got request to show arduino rebooting message
16:24:41.029 (reboot 56): Sending command: comment: Teensyduino 1.56 - LINUX64 (teensy_reboot)
16:24:41.030 (loader): remote cmd from 10: "comment: Teensyduino 1.56 - LINUX64 (teensy_reboot)"
16:24:41.030 (loader): remote cmd from 10: "status"
16:24:41.030 (reboot 56): Status: 1, 1, 0, 10, 3, 0, /tmp/arduino_build_353806/, PocketFT8_0.ino.hex
16:24:41.087 (reboot 56): hid_send_feature, opened /dev/hidraw1
16:24:41.088 (loader): remote cmd from 10: "status"
16:24:41.088 (reboot 56): Status: 1, 1, 0, 10, 3, 0, /tmp/arduino_build_353806/, PocketFT8_0.ino.hex
16:24:41.088 (reboot 56): status read, retry 0
16:24:41.189 (loader): remote cmd from 10: "status"
16:24:41.189 (reboot 56): Status: 1, 1, 0, 10, 3, 0, /tmp/arduino_build_353806/, PocketFT8_0.ino.hex
16:24:41.189 (reboot 56): status read, retry 1
16:24:41.272 (ports 16): del child: location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3/3-1.3:1.0/0003:16C0:0486.0025/hidraw/hidraw0
16:24:41.273 (ports 16): del child: location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3/3-1.3:1.1/0003:16C0:0486.0026/hidraw/hidraw1
16:24:41.273 (ports 16): devnode=/dev/bus/usb/003/059, subsystem=usb, ifacenum=-1
16:24:41.274 (ports 16): unknown action: unbind
16:24:41.276 (ports 16): unknown action: unbind
16:24:41.278 (ports 16): del child: location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3/3-1.3:1.0/0003:16C0:0486.0025
16:24:41.279 (ports 16): del child: location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3/3-1.3:1.1/0003:16C0:0486.0026
16:24:41.281 (ports 16): unknown action: unbind
16:24:41.281 (ports 16): unknown action: unbind
16:24:41.282 (ports 16): del child: location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3/3-1.3:1.0
16:24:41.282 (ports 16): del child: location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3/3-1.3:1.1
16:24:41.284 (ports 16): unknown action: unbind
16:24:41.286 (ports 16): del device: location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3
16:24:41.289 (loader): remote cmd from 10: "status"
16:24:41.289 (loader): action remove: /dev/hidraw0
16:24:41.289 (loader): USB remove /dev/hidraw0
16:24:41.289 (loader): action remove: /dev/hidraw1
16:24:41.289 (loader): USB remove /dev/hidraw1
16:24:41.289 (reboot 56): Status: 1, 1, 0, 10, 3, 0, /tmp/arduino_build_353806/, PocketFT8_0.ino.hex
16:24:41.289 (reboot 56): status read, retry 2
16:24:41.390 (loader): remote cmd from 10: "status"
16:24:41.390 (reboot 56): Status: 1, 1, 0, 10, 3, 0, /tmp/arduino_build_353806/, PocketFT8_0.ino.hex
16:24:41.390 (reboot 56): status read, retry 3
16:24:41.490 (loader): remote cmd from 10: "status"
16:24:41.491 (reboot 56): Status: 1, 1, 0, 10, 3, 0, /tmp/arduino_build_353806/, PocketFT8_0.ino.hex
16:24:41.491 (reboot 56): status read, retry 4
16:24:41.591 (loader): remote cmd from 10: "status"
16:24:41.592 (reboot 56): Status: 1, 1, 0, 10, 3, 0, /tmp/arduino_build_353806/, PocketFT8_0.ino.hex
16:24:41.592 (reboot 56): status read, retry 5
16:24:41.604 (ports 16): add device: subsys=usb, type=usb_device, location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3
16:24:41.604 (ports 16): devnode=/dev/bus/usb/003/060, subsystem=usb, ifacenum=-1
16:24:41.604 (ports 16): usb_add: /dev/bus/usb/003/060 (Teensy 4.0) Bootloader
16:24:41.688 (loader): action add: /dev/hidraw0
16:24:41.689 (loader): USB add /dev/hidraw0, vid=16C0, pid=0478, ver=0107, serial=00097D96, location=usb3/3-1/3-1.3/
16:24:41.747 (loader): read feature report
16:24:41.747 (loader): opening /dev/hidraw0, usage: 0024: Teensy 4.0 (IMXRT1062)
16:24:41.747 (loader): secure mode can not be locked: this is Standard Teensy
16:24:41.747 (loader): encryption is possible on this Teensy, but not yet configured
16:24:41.747 (loader): but without secure mode locked, encryption will NOT be secure!
16:24:41.747 (loader): Device came online, code_size = 2031616
16:24:41.747 (loader): Board is: Teensy 4.0 (IMXRT1062), version 1.07
16:24:41.775 (loader): File "/tmp/arduino_build_353806/PocketFT8_0.ino.hex", 154624 bytes
16:24:41.775 (loader): File "PocketFT8_0.ino.hex". 154624 bytes, 8% used
16:24:41.812 (loader): set background IMG_ONLINE
16:24:41.833 (loader): File "/tmp/arduino_build_353806/PocketFT8_0.ino.hex", 154624 bytes
16:24:41.833 (loader): File "PocketFT8_0.ino.hex". 154624 bytes, 8% used
16:24:41.871 (loader): elf appears to be for Teensy 4.0 (IMXRT1062) (2031616 bytes)
16:24:41.871 (loader): elf binary data matches hex file
16:24:41.871 (loader): elf file is for Teensy 4.0 (IMXRT1062)
16:24:41.871 (loader): using hex file
16:24:41.907 (loader): begin operation
16:24:41.920 (loader): remote cmd from 10: "status"
16:24:41.920 (reboot 56): Status: 1, 1, 1, 11, 3, 1, /tmp/arduino_build_353806/, PocketFT8_0.ino.hex
16:24:41.920 (loader): flash, block=0, bs=1024, auto=1
16:24:41.920 (loader): flash, block=1, bs=1024, auto=1
16:24:41.920 (loader): flash, block=2, bs=1024, auto=1
16:24:42.351 (loader): remote cmd from 10: "status"
16:24:42.352 (reboot 56): Status: 1, 1, 1, 11, 3, 1, /tmp/arduino_build_353806/, PocketFT8_0.ino.hex
16:24:42.352 (loader): flash, block=3, bs=1024, auto=1
16:24:42.352 (loader): flash, block=4, bs=1024, auto=1
16:24:42.353 (loader): flash, block=5, bs=1024, auto=1
16:24:42.354 (loader): flash, block=6, bs=1024, auto=1
16:24:42.355 (loader): flash, block=7, bs=1024, auto=1
16:24:42.356 (loader): flash, block=8, bs=1024, auto=1
16:24:42.357 (loader): flash, block=9, bs=1024, auto=1
16:24:42.373 (loader): flash, block=10, bs=1024, auto=1
16:24:42.374 (loader): flash, block=11, bs=1024, auto=1
16:24:42.389 (loader): flash, block=12, bs=1024, auto=1
16:24:42.390 (loader): flash, block=13, bs=1024, auto=1
16:24:42.405 (loader): remote cmd from 10: "status"
16:24:42.405 (loader): flash, block=14, bs=1024, auto=1
16:24:42.405 (reboot 56): Status: 1, 1, 1, 11, 3, 1, /tmp/arduino_build_353806/, PocketFT8_0.ino.hex
16:24:42.406 (loader): flash, block=15, bs=1024, auto=1
16:24:42.421 (loader): flash, block=16, bs=1024, auto=1
16:24:42.422 (loader): flash, block=17, bs=1024, auto=1
16:24:42.437 (loader): flash, block=18, bs=1024, auto=1
16:24:42.438 (loader): flash, block=19, bs=1024, auto=1
16:24:42.454 (loader): flash, block=20, bs=1024, auto=1
16:24:42.454 (loader): flash, block=21, bs=1024, auto=1
16:24:42.470 (loader): remote cmd from 10: "status"
16:24:42.470 (loader): flash, block=22, bs=1024, auto=1
16:24:42.470 (reboot 56): Status: 1, 1, 1, 11, 3, 1, /tmp/arduino_build_353806/, PocketFT8_0.ino.hex
16:24:42.470 (loader): flash, block=23, bs=1024, auto=1
16:24:42.486 (loader): flash, block=24, bs=1024, auto=1
16:24:42.486 (loader): flash, block=25, bs=1024, auto=1
16:24:42.502 (loader): flash, block=26, bs=1024, auto=1
16:24:42.502 (loader): flash, block=27, bs=1024, auto=1
16:24:42.518 (loader): flash, block=28, bs=1024, auto=1
16:24:42.518 (loader): flash, block=29, bs=1024, auto=1
16:24:42.534 (loader): remote cmd from 10: "status"
16:24:42.534 (loader): flash, block=30, bs=1024, auto=1
16:24:42.534 (reboot 56): Status: 1, 1, 1, 11, 3, 1, /tmp/arduino_build_353806/, PocketFT8_0.ino.hex
16:24:42.535 (loader): flash, block=31, bs=1024, auto=1
16:24:42.550 (loader): flash, block=32, bs=1024, auto=1
16:24:42.551 (loader): flash, block=33, bs=1024, auto=1
16:24:42.566 (loader): flash, block=34, bs=1024, auto=1
16:24:42.567 (loader): flash, block=35, bs=1024, auto=1
16:24:42.582 (loader): flash, block=36, bs=1024, auto=1
16:24:42.583 (loader): flash, block=37, bs=1024, auto=1
16:24:42.599 (loader): remote cmd from 10: "status"
16:24:42.599 (loader): flash, block=38, bs=1024, auto=1
16:24:42.599 (reboot 56): Status: 1, 1, 1, 11, 3, 1, /tmp/arduino_build_353806/, PocketFT8_0.ino.hex
16:24:42.599 (loader): flash, block=39, bs=1024, auto=1
16:24:42.615 (loader): flash, block=40, bs=1024, auto=1
16:24:42.615 (loader): flash, block=41, bs=1024, auto=1
16:24:42.631 (loader): flash, block=42, bs=1024, auto=1
16:24:42.631 (loader): flash, block=43, bs=1024, auto=1
16:24:42.647 (loader): flash, block=44, bs=1024, auto=1
16:24:42.647 (loader): flash, block=45, bs=1024, auto=1
16:24:42.649 (reboot 56): status read, retry 6
16:24:42.649 (reboot 56): Success
16:24:42.649 (reboot 56): Disconnect
16:24:42.664 (loader): flash, block=46, bs=1024, auto=1
16:24:42.664 (loader): remote connection 10 closed
16:24:42.664 (loader): flash, block=47, bs=1024, auto=1
16:24:42.665 (serialmon 57): Begin, version=1.56
16:24:42.665 (serialmon 57): listening for location: /sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3
16:24:42.680 (loader): flash, block=48, bs=1024, auto=1
16:24:42.680 (loader): remote connection 10 opened
16:24:42.681 (loader): flash, block=49, bs=1024, auto=1
16:24:42.682 (serialmon 57): add device: subsys=usb, type=usb_device, location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3
16:24:42.682 (serialmon 57): devnode=/dev/bus/usb/003/060, subsystem=usb, ifacenum=-1
16:24:42.682 (serialmon 57): add child: subsys=usb, type=usb_interface, location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3/3-1.3:1.0
16:24:42.682 (serialmon 57): parent location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3
16:24:42.682 (serialmon 57): add child: subsys=hid, type=(null), location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3/3-1.3:1.0/0003:16C0:0478.0027
16:24:42.682 (serialmon 57): parent location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3
16:24:42.682 (serialmon 57): model=36 (Teensy 4.0)
16:24:42.682 (serialmon 57): add child: subsys=hidraw, type=(null), location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3/3-1.3:1.0/0003:16C0:0478.0027/hidraw/hidraw0
16:24:42.682 (serialmon 57): parent location=/sys/devices/pci0000:00/0000:00:1c.6/0000:07:00.0/usb3/3-1/3-1.3
16:24:42.697 (loader): flash, block=50, bs=1024, auto=1
16:24:42.697 (loader): flash, block=51, bs=1024, auto=1
16:24:42.713 (loader): flash, block=52, bs=1024, auto=1
16:24:42.713 (loader): flash, block=53, bs=1024, auto=1
16:24:42.729 (loader): flash, block=54, bs=1024, auto=1
16:24:42.729 (loader): flash, block=55, bs=1024, auto=1
16:24:42.745 (loader): flash, block=56, bs=1024, auto=1
16:24:42.746 (loader): flash, block=57, bs=1024, auto=1
16:24:42.761 (loader): flash, block=58, bs=1024, auto=1
16:24:42.762 (loader): flash, block=59, bs=1024, auto=1
16:24:42.778 (loader): flash, block=60, bs=1024, auto=1
16:24:42.778 (loader): flash, block=61, bs=1024, auto=1
16:24:42.794 (loader): flash, block=62, bs=1024, auto=1
16:24:42.795 (loader): flash, block=63, bs=1024, auto=1
16:24:42.811 (loader): flash, block=64, bs=1024, auto=1
16:24:42.811 (loader): flash, block=65, bs=1024, auto=1
16:24:42.827 (loader): flash, block=66, bs=1024, auto=1
16:24:42.828 (loader): flash, block=67, bs=1024, auto=1
16:24:42.843 (loader): flash, block=68, bs=1024, auto=1
16:24:42.844 (loader): flash, block=69, bs=1024, auto=1
16:24:42.860 (loader): flash, block=70, bs=1024, auto=1
16:24:42.861 (loader): flash, block=71, bs=1024, auto=1
16:24:42.876 (loader): flash, block=72, bs=1024, auto=1
16:24:42.877 (loader): flash, block=73, bs=1024, auto=1
16:24:42.893 (loader): flash, block=74, bs=1024, auto=1
16:24:42.893 (loader): flash, block=75, bs=1024, auto=1
16:24:42.909 (loader): flash, block=76, bs=1024, auto=1
16:24:42.910 (loader): flash, block=77, bs=1024, auto=1
16:24:42.926 (loader): flash, block=78, bs=1024, auto=1
16:24:42.926 (loader): flash, block=79, bs=1024, auto=1
16:24:42.942 (loader): flash, block=80, bs=1024, auto=1
16:24:42.943 (loader): flash, block=81, bs=1024, auto=1
16:24:42.959 (loader): flash, block=82, bs=1024, auto=1
16:24:42.959 (loader): flash, block=83, bs=1024, auto=1
16:24:42.975 (loader): flash, block=84, bs=1024, auto=1
16:24:42.975 (loader): flash, block=85, bs=1024, auto=1
16:24:42.991 (loader): flash, block=86, bs=1024, auto=1
16:24:42.991 (loader): flash, block=87, bs=1024, auto=1
16:24:43.007 (loader): flash, block=88, bs=1024, auto=1
16:24:43.008 (loader): flash, block=89, bs=1024, auto=1
16:24:43.023 (loader): flash, block=90, bs=1024, auto=1
16:24:43.024 (loader): flash, block=91, bs=1024, auto=1
16:24:58.359 (loader): program: write error
16:24:58.359 (loader): end operation, total time = 16.453 seconds
16:24:58.360 (loader): set background IMG_DOWNLOAD_ERROR
16:24:58.362 (loader): redraw timer set, image 11 to show for 4000 ms
16:25:02.363 (loader): redraw, image 10
16:25:02.363 (loader): set background IMG_ONLINE
16:26:20.338 (loader): Verbose Info event
The question: What does "program: write error" mean?
BTW, I have seen this same problem for a while using other INO programs.
I searched for others with this same issue, thinking it must be around, but no success. Thanks, in advance, for the help!! Bob