Forum Rule: Always post complete source code & details to reproduce any issue!
Page 1 of 2 1 2 LastLast
Results 1 to 25 of 42

Thread: Teensyduino 1.54 Beta #1

  1. #1
    Administrator Paul's Avatar
    Join Date
    Oct 2012
    Posts
    385

    Teensyduino 1.54 Beta #1

    Here is a first beta test for Teensyduino 1.54.


    Update: Teensy 4.1 is not working with this beta. ... published 1.54-beta2 to fix this problem.


    Edit: Links removed. Please use 1.54-beta2
    https://forum.pjrc.com/threads/64023...no-1-54-Beta-2


    Changes since Teensyduino 1.53: (rough draft... will fill in details soon)

    Support for MicroMod
    Fix SPI with DAM to cached memory on Teensy 4.x
    Support alternate Wire3 pins on Teensy 4.1
    Improve map() function
    Show Serial.printf format warnings
    Fixes for HAB secure boot
    Update imxrt.h comments for RT1060 Reference Manual, Rev 2
    AsyncAudioInputSPDIF3 bugs fixed
    synth_tonesweep update?
    NativeEthernet & FNET update
    ILI9341_t3
    QuadEncoder
    RadioHead
    ST7735_t3
    USBHost_t36
    XPT2046_Touchscreen
    Wait up to 6.2 seconds for Teensy to reboot (was 5 seconds)
    Last edited by defragster; 10-24-2020 at 03:42 AM. Reason: beta 2 link

  2. #2
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    7,921
    Good Morning Paul,

    I installed the beta Windows 10 64 bit on a clean install of Arduino 1.8.13 (renamed old, and unzipped the arduino zip file...) I installed the beta....

    Then first attempt, I tried to reprogram a T4.1 with blink...

    And the Blink compiled correctly then tried to download to T4.1, looks like it did, but it is not blinking. And System does not see the Teensy...

    Verbose Info
    Code:
    11:15:42.609 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
    11:15:42.610 (ports 5): found_usb_device, id=\\?\usb#vid_16c0&pid_0478#000bb967#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    11:15:42.610 (ports 5): found_usb_device, loc=usb:0/140000/0/1/1/2    Port_#0002.Hub_#0007
    11:15:42.610 (ports 5): found_usb_device, hwid=USB\VID_16C0&PID_0478&REV_0105
    11:15:42.610 (ports 5): found_usb_device, devinst=00000011
    11:15:42.610 (ports 5): add: loc=usb:0/140000/0/1/1/2, class=HID, vid=16C0, pid=0478, ver=0105, serial=000bb967, dev=\\?\usb#vid_16c0&pid_0478#000bb967#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    11:15:42.610 (ports 5): hiddev_from_devinst_list: iface=0
    11:15:42.610 (ports 5): found_usb_device complete
    11:15:42.611 (ports 5): usb_add: usb:0/140000/0/1/1/2  [no_device] (Teensy) Bootloader
    11:15:42.623 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    11:15:42.624 (ports 5): update_usb_device, devinst list change, old had 1, new has 2
    11:15:42.624 (ports 5): hiddev_from_devinst_list: iface=0
    11:15:42.625 (ports 5): hid, found devinst=00000012
    11:15:42.625 (ports 5): hid, path=\\?\hid#vid_16c0&pid_0478#6&32e5b844&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
    11:15:42.625 (ports 5): hid,  opened handle
    11:15:42.625 (ports 5):  devinst=00000012, location=usb:0/140000/0/1/1/2
    11:15:42.625 (ports 5):  vid=16C0, pid=0478, ver=0105, usepage=FF9C, use=0025
    11:15:42.625 (ports 5):  devpath=\\?\hid#vid_16c0&pid_0478#6&32e5b844&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
    11:15:42.625 (ports 5): usb_add: usb:0/140000/0/1/1/2  hid#vid_16c0&pid_0478 (Teensy 4.1) Bootloader
    11:15:42.673 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    11:15:42.674 (ports 5): nothing new, skipping HID & Ports enum
    11:15:46.294 (ports 5): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    11:15:46.295 (ports 5): remove: loc=usb:0/140000/0/1/1/2
    11:15:46.295 (ports 5): usb_remove: usb:0/140000/0/1/1/2
    11:15:46.295 (ports 5): nothing new, skipping HID & Ports enum
    11:15:46.316 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    11:15:46.317 (ports 5): nothing new, skipping HID & Ports enum
    11:15:47.933 (ports 5): purge, name=hid#vid_16c0&pid_0478 (Teensy 4.1) Bootloader, loc=usb:0/140000/0/1/1/2, age=1.638 sec
    11:16:29.549 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
    11:16:29.550 (ports 5): found_usb_device, id=\\?\usb#vid_16c0&pid_0486#7683590#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    11:16:29.550 (ports 5): found_usb_device, loc=usb:0/140000/0/1/1/2    Port_#0002.Hub_#0007
    11:16:29.550 (ports 5): found_usb_device, hwid=USB\VID_16C0&PID_0486&REV_0280
    11:16:29.550 (ports 5): found_usb_device, devinst=00000017
    11:16:29.550 (ports 5): add: loc=usb:0/140000/0/1/1/2, class=USB, vid=16C0, pid=0486, ver=0280, serial=7683590, dev=\\?\usb#vid_16c0&pid_0486#7683590#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    11:16:29.550 (ports 5): hiddev_from_devinst_list: iface=1
    11:16:29.551 (ports 5): found_usb_device complete
    11:16:29.552 (ports 5): usb_add: usb:0/140000/0/1/1/2  [no_device] (Teensy 4.1) RawHID
    11:16:29.598 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    11:16:29.599 (ports 5): update_usb_device, devinst list change, old had 2, new has 5
    11:16:29.599 (ports 5): hiddev_from_devinst_list: iface=1
    11:16:29.599 (ports 5):   0000001B: path=\\?\hid#vid_16c0&pid_0486&mi_01#7&bf2fae6&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
    11:16:29.600 (ports 5): hid, found devinst=00000019
    11:16:29.600 (ports 5): hid, found devinst=0000001B
    11:16:29.600 (ports 5): usb_add: usb:0/140000/0/1/1/2  hid#vid_16c0&pid_0486 (Teensy 4.1) RawHID
    11:16:50.739 (post_compile 1): Begin, version=1.54-beta1, high-res time
    11:16:50.960 (loader): Teensy Loader 1.54-beta1, begin program
    11:16:51.070 (loader): File "Blink.ino.hex". 17352 bytes, 0% used
    11:16:51.085 (loader): Listening for remote control on port 3149
    11:16:51.086 (loader): initialized, showing main window
    11:16:51.180 (loader): remote connection 1352 opened
    11:16:51.181 (loader): remote cmd from 1352: "comment: Teensyduino 1.54-beta1 - WINDOWS (teensy_post_compile)"
    11:16:51.181 (loader): remote cmd from 1352: "status"
    11:16:51.181 (post_compile 1): Sending command: comment: Teensyduino 1.54-beta1 - WINDOWS (teensy_post_compile)
    11:16:51.316 (loader): HID/win32:  vid:16C0 pid:0486 ver:0280
    11:16:51.316 (loader): HID/win32:  vid:16C0 pid:0486 ver:0280
    11:16:51.317 (loader): HID/win32:  vid:0A5C pid:8502 ver:0000
    11:16:51.317 (loader): HID/win32:  vid:0A5C pid:8502 ver:0000
    11:16:51.317 (loader): HID/win32:  vid:0A5C pid:8502 ver:0000
    11:16:51.318 (loader): HID/win32:  vid:0A5C pid:8502 ver:0000
    11:16:51.318 (loader): HID/win32:  vid:0A5C pid:8502 ver:0000
    11:16:51.318 (loader): HID/win32:  vid:0A5C pid:8502 ver:0000
    11:16:51.319 (loader): remote cmd from 1352: "dir:C:\Users\kurte\AppData\Local\Temp\arduino_build_323971\"
    11:16:51.320 (post_compile 1): Status: 1, 0, 0, 0, 0, 0, C:\Users\kurte\AppData\Local\Temp\arduino_build_323971\, Blink.ino.hex
    11:16:51.320 (post_compile 1): Sending command: dir:C:\Users\kurte\AppData\Local\Temp\arduino_build_323971\
    11:16:51.321 (post_compile 1): Sending command: file:Blink.ino.hex
    11:16:51.321 (loader): remote cmd from 1352: "file:Blink.ino.hex"
    11:16:51.331 (loader): File "Blink.ino.hex". 17352 bytes, 0% used
    11:16:51.336 (loader): remote cmd from 1352: "status"
    11:16:51.338 (loader): remote cmd from 1352: "auto:on"
    11:16:51.338 (post_compile 1): Status: 1, 0, 0, 0, 0, 0, C:\Users\kurte\AppData\Local\Temp\arduino_build_323971\, Blink.ino.hex
    11:16:51.338 (post_compile 1): Sending command: auto:on
    11:16:51.339 (post_compile 1): Disconnect
    11:16:51.350 (loader): remote connection 1352 closed
    11:16:51.544 (post_compile 2): Begin, version=1.54-beta1, high-res time
    11:16:51.546 (loader): remote connection 1136 opened
    11:16:51.547 (post_compile 2): Sending command: comment: Teensyduino 1.54-beta1 - WINDOWS (teensy_post_compile)
    11:16:51.547 (loader): remote cmd from 1136: "comment: Teensyduino 1.54-beta1 - WINDOWS (teensy_post_compile)"
    11:16:51.547 (loader): remote cmd from 1136: "status"
    11:16:51.549 (loader): remote cmd from 1136: "dir:C:\Users\kurte\AppData\Local\Temp\arduino_build_323971\"
    11:16:51.549 (loader): remote cmd from 1136: "file:Blink.ino.hex"
    11:16:51.549 (post_compile 2): Status: 1, 1, 0, 0, 0, 0, C:\Users\kurte\AppData\Local\Temp\arduino_build_323971\, Blink.ino.hex
    11:16:51.549 (post_compile 2): Sending command: dir:C:\Users\kurte\AppData\Local\Temp\arduino_build_323971\
    11:16:51.550 (post_compile 2): Sending command: file:Blink.ino.hex
    11:16:51.559 (loader): File "Blink.ino.hex". 17352 bytes, 0% used
    11:16:51.565 (loader): remote cmd from 1136: "status"
    11:16:51.567 (post_compile 2): Status: 1, 1, 0, 0, 0, 0, C:\Users\kurte\AppData\Local\Temp\arduino_build_323971\, Blink.ino.hex
    11:16:51.567 (post_compile 2): Disconnect
    11:16:51.579 (loader): remote connection 1136 closed
    11:16:51.579 (loader): remote connection 1424 opened
    11:16:51.579 (post_compile 3): Running teensy_reboot: "C:\arduino-1.8.13\hardware\teensy\..\tools\teensy_reboot.exe" teensy_reboot.exe "-board=TEENSY41" "-port=usb:0/140000/0/1/1/2" "-portlabel=hid#vid_16c0&pid_0478 Bootloader" "-portprotocol=Teensy"
    11:16:51.600 (reboot 4): Begin, version=1.54-beta1, high-res time
    11:16:51.600 (reboot 4): location = usb:0/140000/0/1/1/2
    11:16:51.600 (reboot 4): portlabel = hid#vid_16c0&pid_0478 Bootloader
    11:16:51.600 (reboot 4): Only location usb:0/140000/0/1/1/2 will be tried
    11:16:51.600 (reboot 4): portprotocol = Teensy
    11:16:51.600 (reboot 4): LoadLibrary cfgmgr32 ok
    11:16:51.600 (reboot 4): LoadLibrary ntdll ok
    11:16:51.601 (reboot 4): found_usb_device, id=\\?\usb#vid_16c0&pid_0486#7683590#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    11:16:51.601 (reboot 4): found_usb_device, loc=usb:0/140000/0/1/1/2    Port_#0002.Hub_#0007
    11:16:51.601 (reboot 4): found_usb_device, hwid=USB\VID_16C0&PID_0486&REV_0280
    11:16:51.601 (reboot 4): found_usb_device, devinst=00000001
    11:16:51.601 (reboot 4): add: loc=usb:0/140000/0/1/1/2, class=USB, vid=16C0, pid=0486, ver=0280, serial=7683590, dev=\\?\usb#vid_16c0&pid_0486#7683590#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    11:16:51.601 (reboot 4): hiddev_from_devinst_list: iface=1
    11:16:51.602 (reboot 4):   0000000C: path=\\?\hid#vid_16c0&pid_0486&mi_01#7&bf2fae6&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
    11:16:51.603 (reboot 4): found_usb_device complete
    11:16:51.603 (reboot 4): hid, found devinst=0000000A
    11:16:51.603 (reboot 4): hid, found devinst=0000000C
    11:16:51.606 (loader): remote connection 1352 opened
    11:16:51.606 (loader): remote cmd from 1352: "show:arduino_attempt_reboot"
    11:16:51.606 (loader): got request to show arduino rebooting message
    11:16:51.606 (reboot 4): found Teensy Loader, version 1.54
    11:16:51.606 (reboot 4): Sending command: show:arduino_attempt_reboot
    11:16:51.608 (loader): remote cmd from 1352: "comment: Teensyduino 1.54-beta1 - WINDOWS (teensy_reboot)"
    11:16:51.608 (loader): remote cmd from 1352: "status"
    11:16:51.608 (reboot 4): Sending command: comment: Teensyduino 1.54-beta1 - WINDOWS (teensy_reboot)
    11:16:51.610 (loader): remote cmd from 1352: "status"
    11:16:51.610 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\kurte\AppData\Local\Temp\arduino_build_323971\, Blink.ino.hex
    11:16:51.610 (reboot 4): hid_send_feature
    11:16:51.612 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\kurte\AppData\Local\Temp\arduino_build_323971\, Blink.ino.hex
    11:16:51.612 (reboot 4): status read, retry 0
    11:16:51.619 (ports 5): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    11:16:51.620 (loader): remote connection 1428 opened
    11:16:51.626 (ports 5): remove: loc=usb:0/140000/0/1/1/2
    11:16:51.626 (ports 5): usb_remove: usb:0/140000/0/1/1/2
    11:16:51.626 (ports 5): nothing new, skipping HID & Ports enum
    11:16:51.630 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    11:16:51.631 (ports 5): nothing new, skipping HID & Ports enum
    11:16:51.688 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    11:16:51.689 (ports 5): nothing new, skipping HID & Ports enum
    11:16:51.713 (loader): remote cmd from 1352: "status"
    11:16:51.715 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\kurte\AppData\Local\Temp\arduino_build_323971\, Blink.ino.hex
    11:16:51.715 (reboot 4): status read, retry 1
    11:16:51.816 (loader): remote cmd from 1352: "status"
    11:16:51.818 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\kurte\AppData\Local\Temp\arduino_build_323971\, Blink.ino.hex
    11:16:51.818 (reboot 4): status read, retry 2
    11:16:51.883 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
    11:16:51.884 (ports 5): found_usb_device, id=\\?\usb#vid_16c0&pid_0478#000bb967#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    11:16:51.884 (ports 5): found_usb_device, loc=usb:0/140000/0/1/1/2    Port_#0002.Hub_#0007
    11:16:51.884 (ports 5): found_usb_device, hwid=USB\VID_16C0&PID_0478&REV_0105
    11:16:51.884 (ports 5): found_usb_device, devinst=00000011
    11:16:51.884 (ports 5): add: loc=usb:0/140000/0/1/1/2, class=HID, vid=16C0, pid=0478, ver=0105, serial=000bb967, dev=\\?\usb#vid_16c0&pid_0478#000bb967#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    11:16:51.885 (ports 5): hiddev_from_devinst_list: iface=0
    11:16:51.885 (ports 5): found_usb_device complete
    11:16:51.886 (ports 5): hid, found devinst=00000012
    11:16:51.886 (ports 5): hid, path=\\?\hid#vid_16c0&pid_0478#6&32e5b844&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
    11:16:51.886 (ports 5): hid,  opened handle
    11:16:51.886 (ports 5):  devinst=00000012, location=usb:0/140000/0/1/1/2
    11:16:51.886 (ports 5):  vid=16C0, pid=0478, ver=0105, usepage=FF9C, use=0025
    11:16:51.886 (ports 5):  devpath=\\?\hid#vid_16c0&pid_0478#6&32e5b844&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
    11:16:51.886 (ports 5): usb_add: usb:0/140000/0/1/1/2  hid#vid_16c0&pid_0478 (Teensy 4.1) Bootloader
    11:16:51.894 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    11:16:51.895 (ports 5): nothing new, skipping HID & Ports enum
    11:16:51.918 (loader): remote cmd from 1352: "status"
    11:16:51.919 (loader): Device came online, code_size = 8126464
    11:16:51.919 (loader): Board is: Teensy 4.1 (IMXRT1062), version 1.05
    11:16:51.930 (loader): File "Blink.ino.hex". 17352 bytes, 0% used
    11:16:51.933 (loader): set background IMG_ONLINE
    11:16:51.949 (loader): File "Blink.ino.hex". 17352 bytes, 0% used
    11:16:51.950 (loader): elf appears to be for Teensy 4.1 (IMXRT1062) (8126464 bytes)
    11:16:51.950 (loader): elf binary data matches hex file
    11:16:51.951 (loader): elf file is for Teensy 4.1 (IMXRT1062)
    11:16:51.951 (loader): begin operation
    11:16:51.963 (reboot 4): Status: 1, 1, 1, 1, 0, 1, C:\Users\kurte\AppData\Local\Temp\arduino_build_323971\, Blink.ino.hex
    11:16:51.969 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    11:16:51.970 (ports 5): nothing new, skipping HID & Ports enum
    11:16:51.972 (loader): flash, block=0, bs=1024, auto=1
    11:16:51.972 (loader):  gauge old value = 0
    11:16:51.972 (loader): flash, block=1, bs=1024, auto=1
    11:16:52.186 (loader):  gauge old value = 1
    11:16:52.187 (loader): remote cmd from 1352: "status"
    11:16:52.189 (loader): flash, block=2, bs=1024, auto=1
    11:16:52.189 (loader):  gauge old value = 2
    11:16:52.189 (loader): flash, block=3, bs=1024, auto=1
    11:16:52.189 (reboot 4): Status: 1, 1, 1, 1, 0, 1, C:\Users\kurte\AppData\Local\Temp\arduino_build_323971\, Blink.ino.hex
    11:16:52.190 (loader):  gauge old value = 3
    11:16:52.190 (loader): flash, block=4, bs=1024, auto=1
    11:16:52.190 (loader):  gauge old value = 4
    11:16:52.209 (loader): flash, block=5, bs=1024, auto=1
    11:16:52.209 (loader):  gauge old value = 5
    11:16:52.212 (loader): flash, block=6, bs=1024, auto=1
    11:16:52.213 (loader):  gauge old value = 6
    11:16:52.219 (loader): flash, block=7, bs=1024, auto=1
    11:16:52.219 (loader):  gauge old value = 7
    11:16:52.222 (loader): flash, block=8, bs=1024, auto=1
    11:16:52.222 (loader):  gauge old value = 8
    11:16:52.224 (loader): flash, block=9, bs=1024, auto=1
    11:16:52.224 (loader):  gauge old value = 9
    11:16:52.226 (loader): flash, block=10, bs=1024, auto=1
    11:16:52.226 (loader):  gauge old value = 10
    11:16:52.228 (loader): flash, block=11, bs=1024, auto=1
    11:16:52.228 (loader):  gauge old value = 11
    11:16:52.230 (loader): flash, block=12, bs=1024, auto=1
    11:16:52.230 (loader):  gauge old value = 12
    11:16:52.232 (loader): flash, block=13, bs=1024, auto=1
    11:16:52.233 (loader):  gauge old value = 13
    11:16:52.234 (loader): flash, block=14, bs=1024, auto=1
    11:16:52.235 (loader):  gauge old value = 14
    11:16:52.236 (loader): flash, block=15, bs=1024, auto=1
    11:16:52.236 (loader):  gauge old value = 15
    11:16:52.238 (loader): flash, block=16, bs=1024, auto=1
    11:16:52.238 (loader):  gauge old value = 16
    11:16:52.252 (loader): sending reboot
    11:16:52.252 (loader): begin wait_until_offline
    11:16:52.258 (ports 5): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    11:16:52.259 (ports 5): remove: loc=usb:0/140000/0/1/1/2
    11:16:52.259 (ports 5): usb_remove: usb:0/140000/0/1/1/2
    11:16:52.259 (ports 5): nothing new, skipping HID & Ports enum
    11:16:52.303 (loader): offline, waited 1
    11:16:52.303 (loader): end operation, total time = 0.352 seconds
    11:16:52.304 (loader): set background IMG_REBOOT_OK
    11:16:52.307 (loader): redraw timer set, image 14 to show for 1200 ms
    11:16:52.307 (loader): remote cmd from 1352: "status"
    11:16:52.308 (loader): HID/win32:  vid:0A5C pid:8502 ver:0000
    11:16:52.308 (loader): HID/win32:  vid:0A5C pid:8502 ver:0000
    11:16:52.308 (loader): HID/win32:  vid:0A5C pid:8502 ver:0000
    11:16:52.308 (loader): HID/win32:  vid:0A5C pid:8502 ver:0000
    11:16:52.308 (loader): HID/win32:  vid:0A5C pid:8502 ver:0000
    11:16:52.308 (loader): HID/win32:  vid:0A5C pid:8502 ver:0000
    11:16:52.309 (reboot 4): Status: 1, 1, 0, 1, 0, 0, C:\Users\kurte\AppData\Local\Temp\arduino_build_323971\, Blink.ino.hex
    11:16:52.309 (reboot 4): status read, retry 3
    11:16:52.309 (reboot 4): Disconnect
    11:16:52.309 (reboot 4): Success
    11:16:52.313 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    11:16:52.313 (ports 5): nothing new, skipping HID & Ports enum
    11:16:52.324 (loader): remote connection 1352 closed
    11:16:52.326 (loader): remote connection 1424 closed
    11:16:53.498 (loader): redraw, image 9
    11:16:53.928 (ports 5): purge, name=hid#vid_16c0&pid_0478 (Teensy 4.1) Bootloader, loc=usb:0/140000/0/1/1/2, age=1.670 sec
    11:20:07.838 (loader): Verbose Info event
    I can unplug it and plug it back and it still does not see it... I can do the hold the program button down and get it to go back to default program.

    T4 appeared to program fine.

    Note: T4.1 with issue has two PSRAM chips on it.

    Tried again with fresh just out of the bag T4.1 same issue. Will try again

  3. #3
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    12,710
    @Paul - did you pull the WIN EXE? My machine cannot get it. First attempt started and halted? ... waited ... Now I can see folder and the exe - but download won't start?

    Other WWW stuff works - amybe AT&T is mising something ?

  4. #4
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    7,921
    Paul quick update,

    Tried also on Ubuntu 20.04 64 bit,

    Again tried T4.1 with blink (slightly edited 1000->250 as to see difference in blink. Again it programmed a T4.1 (dual PSRAM), After I did the hold program button until it reflashed...

    Then Teensy programmed the board and then no blink... Also Ubuntu put up an Error screen:
    Sorry, Ubuntu 20.04 has experienced an internal error.
    Send problem report to the developers? ...
    Not sure if it would help but it does not look like I can select the text to send...
    So here is some dmesg stuff

    Code:
    kurt@kurt-XPS-8300:~$ dmesg | tail -40
    [  197.127467] audit: type=1400 audit(1603392216.426:102): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/mime/mime.cache" pid=2493 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
    [  249.461684] kauditd_printk_skb: 6 callbacks suppressed
    [  249.461688] audit: type=1400 audit(1603392268.761:109): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/mime/mime.cache" pid=2493 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
    [  249.461696] audit: type=1400 audit(1603392268.761:110): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/mime/globs2" pid=2493 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
    [  249.461722] audit: type=1400 audit(1603392268.761:111): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/mime/magic" pid=2493 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
    [  249.461742] audit: type=1400 audit(1603392268.761:112): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/mime/aliases" pid=2493 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
    [  249.461760] audit: type=1400 audit(1603392268.761:113): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/mime/subclasses" pid=2493 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
    [  249.461779] audit: type=1400 audit(1603392268.761:114): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/mime/icons" pid=2493 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
    [  249.461797] audit: type=1400 audit(1603392268.761:115): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/mime/generic-icons" pid=2493 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
    [  250.591944] audit: type=1400 audit(1603392269.893:116): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/icons/Yaru/icon-theme.cache" pid=2493 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
    [  250.591951] audit: type=1400 audit(1603392269.893:117): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/icons/Yaru/8x8/emblems/" pid=2493 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
    [  250.594077] audit: type=1400 audit(1603392269.893:118): apparmor="DENIED" operation="open" profile="snap.snap-store.ubuntu-software" name="/var/lib/snapd/hostfs/usr/share/icons/Yaru/icon-theme.cache" pid=2493 comm="pool-org.gnome." requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
    [  271.493528] brcmsmac bcma0:1: wl0: brcms_c_d11hdrs_mac80211:  txop exceeded phylen 153/256 dur 1730/1504
    [  388.548810] usb 1-1.4.3: new high-speed USB device number 7 using ehci-pci
    [  388.657693] usb 1-1.4.3: New USB device found, idVendor=16c0, idProduct=0483, bcdDevice= 2.80
    [  388.657694] usb 1-1.4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [  388.657695] usb 1-1.4.3: Product: USB Serial
    [  388.657696] usb 1-1.4.3: Manufacturer: Teensyduino
    [  388.657697] usb 1-1.4.3: SerialNumber: 7683590
    [  388.728717] cdc_acm 1-1.4.3:1.0: ttyACM0: USB ACM device
    [  388.728913] usbcore: registered new interface driver cdc_acm
    [  388.728914] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
    [  394.724650] usb 1-1.4.3: USB disconnect, device number 7
    [  438.211731] usb 1-1.4.3: new high-speed USB device number 8 using ehci-pci
    [  438.320582] usb 1-1.4.3: New USB device found, idVendor=16c0, idProduct=0486, bcdDevice= 2.80
    [  438.320584] usb 1-1.4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [  438.320585] usb 1-1.4.3: Product: Teensyduino RawHID
    [  438.320585] usb 1-1.4.3: Manufacturer: Teensyduino
    [  438.320586] usb 1-1.4.3: SerialNumber: 7683590
    [  438.321453] hid-generic 0003:16C0:0486.0006: hiddev0,hidraw5: USB HID v1.11 Device [Teensyduino Teensyduino RawHID] on usb-0000:00:1a.0-1.4.3/input0
    [  438.322078] hid-generic 0003:16C0:0486.0007: hidraw6: USB HID v1.11 Device [Teensyduino Teensyduino RawHID] on usb-0000:00:1a.0-1.4.3/input1
    [  497.380003] usb 1-1.4.3: USB disconnect, device number 8
    [  497.722314] usb 1-1.4.3: new high-speed USB device number 9 using ehci-pci
    [  497.830909] usb 1-1.4.3: New USB device found, idVendor=16c0, idProduct=0478, bcdDevice= 1.05
    [  497.830921] usb 1-1.4.3: New USB device strings: Mfr=0, Product=0, SerialNumber=1
    [  497.830923] usb 1-1.4.3: SerialNumber: 000BB967
    [  497.832218] hid-generic 0003:16C0:0478.0008: hidraw5: USB HID v1.11 Device [HID 16c0:0478] on usb-0000:00:1a.0-1.4.3/input0
    [  498.404007] usb 1-1.4.3: USB disconnect, device number 9
    [  501.432956] show_signal: 3153 callbacks suppressed
    [  501.432960] traps: tracker-extract[5316] general protection fault ip:7f9440dc446d sp:7ffc2f03e170 error:0 in libglib-2.0.so.0.6400.3[7f9440d70000+84000]
    kurt@kurt-XPS-8300:~$

  5. #5
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    12,710
    ... restarted ... downloading now ...

  6. #6
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    12,710
    Into Fresh 1.8.13 folder TD 1.54b1 installed. Using IDE tools.

    T_4.0 no problem with blink and blinkWithoutDelay upload and edit Upload.

    T_4.1 online to start - then never programs - even button.

    Repowering the T_4.1 does not start or show online at all.

    Here is a verbose log:
    Code:
    13:08:47.525 (ports 2): callback C11E
    13:08:49.549 (ports 2): callback C11E
    13:08:51.565 (ports 2): callback C11E
    13:08:53.581 (ports 2): callback C11E
    13:08:55.597 (ports 2): callback C11E
    13:08:57.618 (ports 2): callback C11E
    13:08:59.278 (loader): file changed
    13:08:59.648 (ports 2): callback C11E
    13:09:00.275 (loader): file changed
    13:09:00.297 (loader): File "BlinkWithoutDelay.ino.hex". 17364 bytes, 0% used
    13:09:00.329 (post_compile 27): Begin, version=1.54-beta1, high-res time
    13:09:00.333 (loader): remote connection 1656 opened
    13:09:00.335 (loader): remote cmd from 1656: "comment: Teensyduino 1.54-beta1 - WINDOWS (teensy_post_compile)"
    13:09:00.336 (post_compile 27): Sending command: comment: Teensyduino 1.54-beta1 - WINDOWS (teensy_post_compile)
    13:09:00.338 (loader): remote cmd from 1656: "status"
    13:09:00.341 (post_compile 27): Status: 1, 0, 1, 6, 0, 0, T:\TEMP\arduino_build_624832\, BlinkWithoutDelay.ino.hex
    13:09:00.341 (post_compile 27): Sending command: dir:T:\TEMP\arduino_build_624832\
    13:09:00.341 (loader): remote cmd from 1656: "dir:T:\TEMP\arduino_build_624832\"
    13:09:00.343 (post_compile 27): Sending command: file:BlinkWithoutDelay.ino.hex
    13:09:00.343 (loader): remote cmd from 1656: "file:BlinkWithoutDelay.ino.hex"
    13:09:00.354 (loader): File "BlinkWithoutDelay.ino.hex". 17364 bytes, 0% used
    13:09:00.358 (loader): remote cmd from 1656: "status"
    13:09:00.360 (post_compile 27): Status: 1, 0, 1, 6, 0, 0, T:\TEMP\arduino_build_624832\, BlinkWithoutDelay.ino.hex
    13:09:00.360 (post_compile 27): Disconnect
    13:09:00.388 (loader): remote connection 1656 closed
    13:09:00.580 (loader): remote connection 1636 opened
    13:09:00.580 (loader): remote cmd from 1636: "comment: Teensyduino 1.54-beta1 - WINDOWS (teensy_post_compile)"
    13:09:00.580 (loader): remote cmd from 1636: "status"
    13:09:00.586 (post_compile 28): Begin, version=1.54-beta1, high-res time
    13:09:00.592 (post_compile 28): Sending command: comment: Teensyduino 1.54-beta1 - WINDOWS (teensy_post_compile)
    13:09:00.596 (post_compile 28): Status: 1, 0, 1, 6, 0, 0, T:\TEMP\arduino_build_624832\, BlinkWithoutDelay.ino.hex
    13:09:00.596 (post_compile 28): Sending command: dir:T:\TEMP\arduino_build_624832\
    13:09:00.596 (loader): remote cmd from 1636: "dir:T:\TEMP\arduino_build_624832\"
    13:09:00.596 (loader): remote cmd from 1636: "file:BlinkWithoutDelay.ino.hex"
    13:09:00.596 (loader): File "BlinkWithoutDelay.ino.hex". 17364 bytes, 0% used
    13:09:00.598 (post_compile 28): Sending command: file:BlinkWithoutDelay.ino.hex
    13:09:00.612 (loader): remote cmd from 1636: "status"
    13:09:00.615 (post_compile 28): Status: 1, 0, 1, 6, 0, 0, T:\TEMP\arduino_build_624832\, BlinkWithoutDelay.ino.hex
    13:09:00.615 (post_compile 28): Disconnect
    13:09:00.627 (loader): remote connection 1636 closed
    13:09:00.627 (loader): remote connection 1636 opened
    13:09:00.628 (post_compile 29): Running teensy_reboot: "T:\arduino-1.8.13_t54\hardware\teensy\..\tools\teensy_reboot.exe" teensy_reboot.exe "-board=TEENSY41" "-port=usb:0/140000/0/5/4" "-portlabel=hid#vid_16c0&pid_0478 Bootloader" "-portprotocol=Teensy"
    13:09:00.651 (reboot 30): Begin, version=1.54-beta1, high-res time
    13:09:00.651 (reboot 30): location = usb:0/140000/0/5/4
    13:09:00.651 (reboot 30): portprotocol = Teensy
    13:09:00.651 (reboot 30): portlabel = hid#vid_16c0&pid_0478 Bootloader
    13:09:00.651 (reboot 30): Only location usb:0/140000/0/5/4 will be tried
    13:09:00.651 (reboot 30): LoadLibrary cfgmgr32 ok
    13:09:00.651 (reboot 30): LoadLibrary ntdll ok
    13:09:00.654 (reboot 30): found_usb_device, id=\\?\usb#vid_16c0&pid_0478#000bb99e#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    13:09:00.654 (reboot 30): found_usb_device, loc=usb:0/140000/0/5/4    Port_#0004.Hub_#0006
    13:09:00.654 (reboot 30): found_usb_device, devinst=00000003
    13:09:00.654 (reboot 30): found_usb_device, hwid=USB\VID_16C0&PID_0478&REV_0105
    13:09:00.654 (reboot 30): add: loc=usb:0/140000/0/5/4, class=HID, vid=16C0, pid=0478, ver=0105, serial=000bb99e, dev=\\?\usb#vid_16c0&pid_0478#000bb99e#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    13:09:00.654 (reboot 30): hiddev_from_devinst_list: iface=0
    13:09:00.657 (reboot 30): found_usb_device complete
    13:09:00.657 (reboot 30): hid, found devinst=0000000B
    13:09:00.658 (loader): remote connection 1632 opened
    13:09:00.658 (loader): remote cmd from 1632: "show:arduino_attempt_reboot"
    13:09:00.658 (loader): got request to show arduino rebooting message
    13:09:00.658 (loader): remote cmd from 1632: "comment: Teensyduino 1.54-beta1 - WINDOWS (teensy_reboot)"
    13:09:00.658 (loader): remote cmd from 1632: "status"
    13:09:00.658 (loader): remote cmd from 1632: "auto:on"
    13:09:00.664 (reboot 30): found Teensy Loader, version 1.54
    13:09:00.664 (reboot 30): Sending command: show:arduino_attempt_reboot
    13:09:00.669 (reboot 30): Sending command: comment: Teensyduino 1.54-beta1 - WINDOWS (teensy_reboot)
    13:09:00.673 (reboot 30): Status: 1, 0, 1, 6, 0, 0, T:\TEMP\arduino_build_624832\, BlinkWithoutDelay.ino.hex
    13:09:00.673 (reboot 30): send: auto:on
    13:09:00.673 (reboot 30): Sending command: auto:on
    13:09:00.674 (loader): File "BlinkWithoutDelay.ino.hex". 17364 bytes, 0% used
    13:09:00.674 (loader): elf appears to be for Teensy 4.1 (IMXRT1062) (8126464 bytes)
    13:09:00.674 (loader): elf binary data matches hex file
    13:09:00.674 (loader): elf file is for Teensy 4.1 (IMXRT1062)
    13:09:00.675 (reboot 30): Disconnect
    13:09:00.692 (loader): begin operation
    13:09:00.708 (loader): remote connection 1632 closed
    13:09:00.708 (loader): remote connection 1636 closed
    13:09:00.725 (loader): flash, block=0, bs=1024, auto=1
    13:09:00.728 (loader):  gauge old value = 0
    13:09:00.730 (loader): flash, block=1, bs=1024, auto=1
    13:09:00.946 (loader):  gauge old value = 1
    13:09:00.962 (loader): flash, block=2, bs=1024, auto=1
    13:09:00.962 (loader):  gauge old value = 2
    13:09:00.962 (loader): flash, block=3, bs=1024, auto=1
    13:09:00.962 (loader):  gauge old value = 3
    13:09:00.962 (loader): flash, block=4, bs=1024, auto=1
    13:09:00.962 (loader):  gauge old value = 4
    13:09:00.962 (loader): flash, block=5, bs=1024, auto=1
    13:09:00.977 (loader):  gauge old value = 5
    13:09:00.977 (loader): flash, block=6, bs=1024, auto=1
    13:09:00.977 (loader):  gauge old value = 6
    13:09:00.977 (loader): flash, block=7, bs=1024, auto=1
    13:09:00.977 (loader):  gauge old value = 7
    13:09:00.977 (loader): flash, block=8, bs=1024, auto=1
    13:09:00.993 (loader):  gauge old value = 8
    13:09:00.993 (loader): flash, block=9, bs=1024, auto=1
    13:09:00.993 (loader):  gauge old value = 9
    13:09:00.993 (loader): flash, block=10, bs=1024, auto=1
    13:09:00.993 (loader):  gauge old value = 10
    13:09:00.993 (loader): flash, block=11, bs=1024, auto=1
    13:09:00.993 (loader):  gauge old value = 11
    13:09:01.008 (loader): flash, block=12, bs=1024, auto=1
    13:09:01.008 (loader):  gauge old value = 12
    13:09:01.008 (loader): flash, block=13, bs=1024, auto=1
    13:09:01.008 (loader):  gauge old value = 13
    13:09:01.008 (loader): flash, block=14, bs=1024, auto=1
    13:09:01.008 (loader):  gauge old value = 14
    13:09:01.008 (loader): flash, block=15, bs=1024, auto=1
    13:09:01.024 (loader):  gauge old value = 15
    13:09:01.024 (loader): flash, block=16, bs=1024, auto=1
    13:09:01.024 (loader):  gauge old value = 16
    13:09:01.040 (loader): sending reboot
    13:09:01.040 (loader): begin wait_until_offline
    13:09:01.047 (ports 2): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    13:09:01.048 (ports 2): remove: loc=usb:0/140000/0/5/4
    13:09:01.048 (ports 2): usb_remove: usb:0/140000/0/5/4
    13:09:01.048 (ports 2): nothing new, skipping HID & Ports enum
    13:09:01.102 (loader): offline, waited 1
    13:09:01.102 (loader): end operation, total time = 0.407 seconds
    13:09:01.102 (loader): set background IMG_REBOOT_OK
    13:09:01.102 (loader): redraw timer set, image 14 to show for 1200 ms
    13:09:01.203 (ports 2): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    13:09:01.204 (ports 2): nothing new, skipping HID & Ports enum
    13:09:01.230 (ports 2): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    13:09:01.231 (ports 2): nothing new, skipping HID & Ports enum
    13:09:01.278 (loader): HID/win32:  vid:1B80 pid:B406 ver:0100
    13:09:01.278 (loader): HID/win32:  vid:1B80 pid:B406 ver:0100
    13:09:01.283 (loader): HID/win32:  vid:1B80 pid:B406 ver:0100
    13:09:01.285 (loader): HID/win32:  vid:1B80 pid:B406 ver:0100
    13:09:01.287 (loader): HID/win32:  vid:046D pid:C534 ver:2901
    13:09:01.289 (loader): HID/win32:  vid:046D pid:C534 ver:2901
    13:09:01.290 (loader): HID/win32:  vid:046D pid:C534 ver:2901
    13:09:01.292 (loader): HID/win32:  vid:046D pid:C534 ver:2901
    13:09:01.294 (loader): HID/win32:  vid:0764 pid:0501 ver:0001
    13:09:01.665 (ports 2): callback C11E
    13:09:02.309 (loader): redraw, image 9
    13:09:02.673 (ports 2): purge, name=hid#vid_16c0&pid_0478 (Teensy 4.1) Bootloader, loc=usb:0/140000/0/5/4, age=1.624 sec
    13:09:03.680 (ports 2): callback C11E
    13:09:05.697 (ports 2): callback C11E
    13:09:07.713 (ports 2): callback C11E
    13:09:09.729 (ports 2): callback C11E
    13:09:11.745 (ports 2): callback C11E
    13:09:13.761 (ports 2): callback C11E
    13:09:15.777 (ports 2): callback C11E
    13:09:16.141 (ports 2): WM_DEVICECHANGE DBT_DEVICEARRIVAL
    13:09:16.143 (ports 2): found_usb_device, id=\\?\usb#vid_16c0&pid_0478#000bb99e#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    13:09:16.143 (ports 2): found_usb_device, loc=usb:0/140000/0/5/4    Port_#0004.Hub_#0006
    13:09:16.143 (ports 2): found_usb_device, hwid=USB\VID_16C0&PID_0478&REV_0105
    13:09:16.143 (ports 2): found_usb_device, devinst=00000020
    13:09:16.143 (ports 2): add: loc=usb:0/140000/0/5/4, class=HID, vid=16C0, pid=0478, ver=0105, serial=000bb99e, dev=\\?\usb#vid_16c0&pid_0478#000bb99e#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    13:09:16.143 (ports 2): hiddev_from_devinst_list: iface=0
    13:09:16.144 (ports 2): found_usb_device complete
    13:09:16.145 (ports 2): usb_add: usb:0/140000/0/5/4  [no_device] (Teensy) Bootloader
    13:09:16.167 (ports 2): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    13:09:16.168 (ports 2): hid, found devinst=00000021
    13:09:16.168 (ports 2): hid, path=\\?\hid#vid_16c0&pid_0478#8&e3a77b3&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
    13:09:16.168 (ports 2): hid,  opened handle
    13:09:16.168 (ports 2):  devinst=00000021, location=usb:0/140000/0/5/4
    13:09:16.168 (ports 2):  vid=16C0, pid=0478, ver=0105, usepage=FF9C, use=0025
    13:09:16.168 (ports 2):  devpath=\\?\hid#vid_16c0&pid_0478#8&e3a77b3&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
    13:09:16.169 (ports 2): usb_add: usb:0/140000/0/5/4  hid#vid_16c0&pid_0478 (Teensy 4.1) Bootloader
    13:09:16.195 (ports 2): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    13:09:16.196 (ports 2): nothing new, skipping HID & Ports enum
    13:09:16.303 (loader): Device came online, code_size = 8126464
    13:09:16.303 (loader): Board is: Teensy 4.1 (IMXRT1062), version 1.05
    13:09:16.303 (loader): File "BlinkWithoutDelay.ino.hex". 17364 bytes, 0% used
    13:09:16.319 (loader): set background IMG_ONLINE
    13:09:16.319 (loader): File "BlinkWithoutDelay.ino.hex". 17364 bytes, 0% used
    13:09:16.334 (loader): elf appears to be for Teensy 4.1 (IMXRT1062) (8126464 bytes)
    13:09:16.334 (loader): elf binary data matches hex file
    13:09:16.334 (loader): elf file is for Teensy 4.1 (IMXRT1062)
    13:09:16.334 (loader): begin operation
    13:09:16.350 (loader): flash, block=0, bs=1024, auto=1
    13:09:16.366 (loader):  gauge old value = 0
    13:09:16.366 (loader): flash, block=1, bs=1024, auto=1
    13:09:16.605 (loader):  gauge old value = 1
    13:09:16.605 (loader): flash, block=2, bs=1024, auto=1
    13:09:16.605 (loader):  gauge old value = 2
    13:09:16.605 (loader): flash, block=3, bs=1024, auto=1
    13:09:16.614 (loader):  gauge old value = 3
    13:09:16.614 (loader): flash, block=4, bs=1024, auto=1
    13:09:16.614 (loader):  gauge old value = 4
    13:09:16.625 (loader): flash, block=5, bs=1024, auto=1
    13:09:16.630 (loader):  gauge old value = 5
    13:09:16.631 (loader): flash, block=6, bs=1024, auto=1
    13:09:16.634 (loader):  gauge old value = 6
    13:09:16.634 (loader): flash, block=7, bs=1024, auto=1
    13:09:16.634 (loader):  gauge old value = 7
    13:09:16.634 (loader): flash, block=8, bs=1024, auto=1
    13:09:16.634 (loader):  gauge old value = 8
    13:09:16.644 (loader): flash, block=9, bs=1024, auto=1
    13:09:16.648 (loader):  gauge old value = 9
    13:09:16.664 (loader): flash, block=10, bs=1024, auto=1
    13:09:16.674 (loader):  gauge old value = 10
    13:09:16.674 (loader): flash, block=11, bs=1024, auto=1
    13:09:16.674 (loader):  gauge old value = 11
    13:09:16.684 (loader): flash, block=12, bs=1024, auto=1
    13:09:16.684 (loader):  gauge old value = 12
    13:09:16.684 (loader): flash, block=13, bs=1024, auto=1
    13:09:16.694 (loader):  gauge old value = 13
    13:09:16.694 (loader): flash, block=14, bs=1024, auto=1
    13:09:16.694 (loader):  gauge old value = 14
    13:09:16.694 (loader): flash, block=15, bs=1024, auto=1
    13:09:16.704 (loader):  gauge old value = 15
    13:09:16.709 (loader): flash, block=16, bs=1024, auto=1
    13:09:16.709 (loader):  gauge old value = 16
    13:09:16.720 (loader): sending reboot
    13:09:16.720 (loader): begin wait_until_offline
    13:09:16.750 (ports 2): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    13:09:16.754 (ports 2): remove: loc=usb:0/140000/0/5/4
    13:09:16.754 (ports 2): usb_remove: usb:0/140000/0/5/4
    13:09:16.754 (ports 2): nothing new, skipping HID & Ports enum
    13:09:16.780 (loader): offline, waited 1
    13:09:16.780 (loader): end operation, total time = 0.446 seconds
    13:09:16.780 (loader): set background IMG_REBOOT_OK
    13:09:16.780 (loader): redraw timer set, image 14 to show for 1200 ms
    13:09:16.863 (loader): HID/win32:  vid:1B80 pid:B406 ver:0100
    13:09:16.863 (loader): HID/win32:  vid:1B80 pid:B406 ver:0100
    13:09:16.863 (loader): HID/win32:  vid:1B80 pid:B406 ver:0100
    13:09:16.864 (ports 2): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    13:09:16.869 (ports 2): nothing new, skipping HID & Ports enum
    13:09:16.878 (loader): HID/win32:  vid:1B80 pid:B406 ver:0100
    13:09:16.878 (loader): HID/win32:  vid:046D pid:C534 ver:2901
    13:09:16.878 (loader): HID/win32:  vid:046D pid:C534 ver:2901
    13:09:16.878 (loader): HID/win32:  vid:046D pid:C534 ver:2901
    13:09:16.878 (loader): HID/win32:  vid:046D pid:C534 ver:2901
    13:09:16.894 (loader): HID/win32:  vid:0764 pid:0501 ver:0001
    13:09:17.804 (ports 2): callback C11E
    13:09:17.978 (loader): redraw, image 9
    13:09:18.374 (ports 2): purge, name=hid#vid_16c0&pid_0478 (Teensy 4.1) Bootloader, loc=usb:0/140000/0/5/4, age=1.620 sec
    13:09:19.831 (ports 2): callback C11E
    13:09:21.846 (ports 2): callback C11E
    13:09:23.863 (ports 2): callback C11E
    13:09:25.879 (ports 2): callback C11E
    13:09:27.893 (ports 2): callback C11E
    13:09:29.895 (ports 2): callback C11E
    13:09:31.912 (ports 2): callback C11E
    13:09:33.928 (ports 2): callback C11E
    13:09:35.945 (ports 2): callback C11E
    13:09:37.960 (ports 2): callback C11E
    13:09:38.894 (post_compile 31): Begin, version=1.54-beta1, high-res time
    13:09:38.898 (loader): remote connection 1596 opened
    13:09:38.901 (post_compile 31): Sending command: comment: Teensyduino 1.54-beta1 - WINDOWS (teensy_post_compile)
    13:09:38.901 (loader): remote cmd from 1596: "comment: Teensyduino 1.54-beta1 - WINDOWS (teensy_post_compile)"
    13:09:38.903 (loader): remote cmd from 1596: "status"
    13:09:38.906 (loader): remote cmd from 1596: "dir:T:\TEMP\arduino_build_483495\"
    13:09:38.906 (post_compile 31): Status: 1, 1, 0, 7, 0, 0, T:\TEMP\arduino_build_624832\, BlinkWithoutDelay.ino.hex
    13:09:38.906 (post_compile 31): Sending command: dir:T:\TEMP\arduino_build_483495\
    13:09:38.908 (loader): remote cmd from 1596: "file:Blink.ino.hex"
    13:09:38.908 (post_compile 31): Sending command: file:Blink.ino.hex
    13:09:38.921 (loader): File "Blink.ino.hex". 17352 bytes, 0% used
    13:09:38.929 (loader): remote cmd from 1596: "status"
    13:09:38.933 (post_compile 31): Status: 1, 1, 0, 7, 0, 0, T:\TEMP\arduino_build_483495\, Blink.ino.hex
    13:09:38.933 (post_compile 31): Disconnect
    13:09:38.944 (loader): remote connection 1596 closed
    13:09:39.126 (loader): remote connection 1664 opened
    13:09:39.126 (loader): remote cmd from 1664: "comment: Teensyduino 1.54-beta1 - WINDOWS (teensy_post_compile)"
    13:09:39.126 (loader): remote cmd from 1664: "status"
    13:09:39.130 (post_compile 32): Begin, version=1.54-beta1, high-res time
    13:09:39.137 (post_compile 32): Sending command: comment: Teensyduino 1.54-beta1 - WINDOWS (teensy_post_compile)
    13:09:39.142 (loader): remote cmd from 1664: "dir:T:\TEMP\arduino_build_483495\"
    13:09:39.142 (loader): remote cmd from 1664: "file:Blink.ino.hex"
    13:09:39.144 (post_compile 32): Status: 1, 1, 0, 7, 0, 0, T:\TEMP\arduino_build_483495\, Blink.ino.hex
    13:09:39.144 (post_compile 32): Sending command: dir:T:\TEMP\arduino_build_483495\
    13:09:39.146 (post_compile 32): Sending command: file:Blink.ino.hex
    13:09:39.157 (loader): File "Blink.ino.hex". 17352 bytes, 0% used
    13:09:39.166 (loader): remote cmd from 1664: "status"
    13:09:39.176 (post_compile 32): Status: 1, 1, 0, 7, 0, 0, T:\TEMP\arduino_build_483495\, Blink.ino.hex
    13:09:39.176 (post_compile 32): Disconnect
    13:09:39.198 (loader): remote connection 1664 closed
    13:09:39.198 (post_compile 33): Running teensy_reboot: "T:\arduino-1.8.13_t54\hardware\teensy\..\tools\teensy_reboot.exe" teensy_reboot.exe "-board=TEENSY41" "-port=usb:0/140000/0/5/4" "-portlabel=hid#vid_16c0&pid_0478 Bootloader" "-portprotocol=Teensy"
    13:09:39.199 (loader): remote connection 1664 opened
    13:09:39.215 (loader): remote connection 1656 opened
    13:09:39.223 (reboot 34): Begin, version=1.54-beta1, high-res time
    13:09:39.223 (reboot 34): location = usb:0/140000/0/5/4
    13:09:39.223 (reboot 34): Only location usb:0/140000/0/5/4 will be tried
    13:09:39.223 (reboot 34): portlabel = hid#vid_16c0&pid_0478 Bootloader
    13:09:39.223 (reboot 34): portprotocol = Teensy
    13:09:39.223 (reboot 34): LoadLibrary cfgmgr32 ok
    13:09:39.223 (reboot 34): LoadLibrary ntdll ok
    13:09:39.227 (reboot 34): nothing new, skipping HID & Ports enum
    13:09:39.232 (reboot 34): Disconnect
    13:09:39.246 (loader): remote connection 1656 closed
    13:09:39.246 (loader): remote connection 1664 closed
    13:09:39.989 (ports 2): callback C11E
    13:09:42.005 (ports 2): callback C11E
    13:09:44.021 (ports 2): callback C11E
    13:09:44.512 (ports 2): WM_DEVICECHANGE DBT_DEVICEARRIVAL
    13:09:44.513 (ports 2): found_usb_device, id=\\?\usb#vid_16c0&pid_0478#000bb99e#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    13:09:44.513 (ports 2): found_usb_device, loc=usb:0/140000/0/5/4    Port_#0004.Hub_#0006
    13:09:44.513 (ports 2): found_usb_device, hwid=USB\VID_16C0&PID_0478&REV_0105
    13:09:44.513 (ports 2): found_usb_device, devinst=00000020
    13:09:44.513 (ports 2): add: loc=usb:0/140000/0/5/4, class=HID, vid=16C0, pid=0478, ver=0105, serial=000bb99e, dev=\\?\usb#vid_16c0&pid_0478#000bb99e#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    13:09:44.514 (ports 2): hiddev_from_devinst_list: iface=0
    13:09:44.515 (ports 2): found_usb_device complete
    13:09:44.516 (ports 2): usb_add: usb:0/140000/0/5/4  [no_device] (Teensy) Bootloader
    13:09:44.516 (ports 2): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    13:09:44.518 (ports 2): hid, found devinst=00000021
    13:09:44.518 (ports 2): hid, path=\\?\hid#vid_16c0&pid_0478#8&e3a77b3&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
    13:09:44.518 (ports 2): hid,  opened handle
    13:09:44.518 (ports 2):  devinst=00000021, location=usb:0/140000/0/5/4
    13:09:44.518 (ports 2):  vid=16C0, pid=0478, ver=0105, usepage=FF9C, use=0025
    13:09:44.518 (ports 2):  devpath=\\?\hid#vid_16c0&pid_0478#8&e3a77b3&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
    13:09:44.519 (ports 2): usb_add: usb:0/140000/0/5/4  hid#vid_16c0&pid_0478 (Teensy 4.1) Bootloader
    13:09:44.567 (ports 2): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    13:09:44.568 (ports 2): nothing new, skipping HID & Ports enum
    13:09:44.596 (loader): Device came online, code_size = 8126464
    13:09:44.596 (loader): Board is: Teensy 4.1 (IMXRT1062), version 1.05
    13:09:44.596 (loader): File "Blink.ino.hex". 17352 bytes, 0% used
    13:09:44.612 (loader): set background IMG_ONLINE
    13:09:44.628 (loader): File "Blink.ino.hex". 17352 bytes, 0% used
    13:09:44.628 (loader): elf appears to be for Teensy 4.1 (IMXRT1062) (8126464 bytes)
    13:09:44.628 (loader): elf binary data matches hex file
    13:09:44.643 (loader): elf file is for Teensy 4.1 (IMXRT1062)
    13:09:44.643 (loader): begin operation
    13:09:44.659 (loader): flash, block=0, bs=1024, auto=1
    13:09:44.659 (loader):  gauge old value = 0
    13:09:44.674 (loader): flash, block=1, bs=1024, auto=1
    13:09:44.922 (loader):  gauge old value = 1
    13:09:44.922 (loader): flash, block=2, bs=1024, auto=1
    13:09:44.922 (loader):  gauge old value = 2
    13:09:44.922 (loader): flash, block=3, bs=1024, auto=1
    13:09:44.922 (loader):  gauge old value = 3
    13:09:44.932 (loader): flash, block=4, bs=1024, auto=1
    13:09:44.932 (loader):  gauge old value = 4
    13:09:44.937 (loader): flash, block=5, bs=1024, auto=1
    13:09:44.942 (loader):  gauge old value = 5
    13:09:44.942 (loader): flash, block=6, bs=1024, auto=1
    13:09:44.942 (loader):  gauge old value = 6
    13:09:44.952 (loader): flash, block=7, bs=1024, auto=1
    13:09:44.952 (loader):  gauge old value = 7
    13:09:44.957 (loader): flash, block=8, bs=1024, auto=1
    13:09:44.957 (loader):  gauge old value = 8
    13:09:44.957 (loader): flash, block=9, bs=1024, auto=1
    13:09:44.962 (loader):  gauge old value = 9
    13:09:44.962 (loader): flash, block=10, bs=1024, auto=1
    13:09:44.962 (loader):  gauge old value = 10
    13:09:44.962 (loader): flash, block=11, bs=1024, auto=1
    13:09:44.962 (loader):  gauge old value = 11
    13:09:44.972 (loader): flash, block=12, bs=1024, auto=1
    13:09:44.972 (loader):  gauge old value = 12
    13:09:44.977 (loader): flash, block=13, bs=1024, auto=1
    13:09:44.977 (loader):  gauge old value = 13
    13:09:44.982 (loader): flash, block=14, bs=1024, auto=1
    13:09:44.982 (loader):  gauge old value = 14
    13:09:44.987 (loader): flash, block=15, bs=1024, auto=1
    13:09:44.987 (loader):  gauge old value = 15
    13:09:44.987 (loader): flash, block=16, bs=1024, auto=1
    13:09:44.992 (loader):  gauge old value = 16
    13:09:45.002 (loader): sending reboot
    13:09:45.002 (loader): begin wait_until_offline
    13:09:45.011 (ports 2): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    13:09:45.011 (ports 2): remove: loc=usb:0/140000/0/5/4
    13:09:45.011 (ports 2): usb_remove: usb:0/140000/0/5/4
    13:09:45.011 (ports 2): nothing new, skipping HID & Ports enum
    13:09:45.062 (loader): offline, waited 1
    13:09:45.062 (loader): end operation, total time = 0.419 seconds
    13:09:45.062 (loader): set background IMG_REBOOT_OK
    13:09:45.072 (loader): redraw timer set, image 14 to show for 1200 ms
    13:09:45.139 (loader): HID/win32:  vid:1B80 pid:B406 ver:0100
    13:09:45.142 (loader): HID/win32:  vid:1B80 pid:B406 ver:0100
    13:09:45.143 (loader): HID/win32:  vid:1B80 pid:B406 ver:0100
    13:09:45.147 (loader): HID/win32:  vid:1B80 pid:B406 ver:0100
    13:09:45.150 (loader): HID/win32:  vid:046D pid:C534 ver:2901
    13:09:45.152 (loader): HID/win32:  vid:046D pid:C534 ver:2901
    13:09:45.152 (loader): HID/win32:  vid:046D pid:C534 ver:2901
    13:09:45.152 (loader): HID/win32:  vid:046D pid:C534 ver:2901
    13:09:45.152 (loader): HID/win32:  vid:0764 pid:0501 ver:0001
    13:09:45.161 (ports 2): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    13:09:45.161 (ports 2): nothing new, skipping HID & Ports enum
    13:09:46.154 (ports 2): callback C11E
    13:09:46.282 (loader): redraw, image 9
    13:09:46.700 (ports 2): purge, name=hid#vid_16c0&pid_0478 (Teensy 4.1) Bootloader, loc=usb:0/140000/0/5/4, age=1.689 sec
    13:09:48.209 (ports 2): callback C11E
    13:09:50.228 (ports 2): callback C11E
    13:09:52.240 (ports 2): callback C11E
    13:09:54.256 (ports 2): callback C11E
    13:09:56.263 (ports 2): callback C11E
    13:09:58.285 (ports 2): callback C11E
    13:10:00.319 (ports 2): callback C11E
    13:10:02.346 (ports 2): callback C11E
    13:10:04.368 (ports 2): callback C11E
    13:10:06.393 (ports 2): callback C11E
    13:10:08.421 (ports 2): callback C11E
    13:10:10.430 (ports 2): callback C11E
    13:10:12.434 (ports 2): callback C11E
    13:10:14.463 (ports 2): callback C11E
    Change back to T_4.0 and program no problem:
    Code:
    13:13:17.613 (ports 2): callback C11E
    13:13:19.628 (ports 2): callback C11E
    13:13:21.629 (ports 2): callback C11E
    13:13:23.629 (ports 2): callback C11E
    13:13:25.630 (ports 2): callback C11E
    13:13:27.629 (ports 2): callback C11E
    13:13:29.652 (ports 2): callback C11E
    13:13:31.680 (ports 2): callback C11E
    13:13:33.706 (ports 2): callback C11E
    13:13:35.725 (ports 2): callback C11E
    13:13:37.754 (ports 2): callback C11E
    13:13:39.766 (ports 2): callback C11E
    13:13:41.773 (ports 2): callback C11E
    13:13:43.796 (ports 2): callback C11E
    13:13:45.816 (ports 2): callback C11E
    13:13:47.819 (ports 2): callback C11E
    13:13:49.839 (ports 2): callback C11E
    13:13:51.867 (ports 2): callback C11E
    13:13:53.885 (ports 2): callback C11E
    13:13:55.886 (ports 2): callback C11E
    13:13:57.916 (ports 2): callback C11E
    13:13:59.942 (ports 2): callback C11E
    13:14:01.967 (ports 2): callback C11E
    13:14:03.989 (ports 2): callback C11E
    13:14:06.015 (ports 2): callback C11E
    13:14:08.015 (ports 2): callback C11E
    13:14:10.017 (ports 2): callback C11E
    13:14:12.033 (ports 2): callback C11E
    13:14:14.049 (ports 2): callback C11E
    13:14:16.065 (ports 2): callback C11E
    13:14:18.080 (ports 2): callback C11E
    13:14:20.082 (ports 2): callback C11E
    13:14:22.098 (ports 2): callback C11E
    13:14:24.113 (ports 2): callback C11E
    13:14:26.130 (ports 2): callback C11E
    13:14:28.146 (ports 2): callback C11E
    13:14:30.147 (ports 2): callback C11E
    13:14:32.165 (ports 2): callback C11E
    13:14:34.181 (ports 2): callback C11E
    13:14:36.197 (ports 2): callback C11E
    13:14:38.215 (ports 2): callback C11E
    13:14:40.231 (ports 2): callback C11E
    13:14:42.247 (ports 2): callback C11E
    13:14:44.264 (ports 2): callback C11E
    13:14:46.280 (ports 2): callback C11E
    13:14:48.281 (ports 2): callback C11E
    13:14:50.297 (ports 2): callback C11E
    13:14:52.314 (ports 2): callback C11E
    13:14:54.332 (ports 2): callback C11E
    13:14:56.348 (ports 2): callback C11E
    13:14:58.364 (ports 2): callback C11E
    13:15:00.382 (ports 2): callback C11E
    13:15:02.399 (ports 2): callback C11E
    13:15:04.415 (ports 2): callback C11E
    13:15:06.431 (ports 2): callback C11E
    13:15:08.449 (ports 2): callback C11E
    13:15:10.465 (ports 2): callback C11E
    13:15:12.481 (ports 2): callback C11E
    13:15:14.499 (ports 2): callback C11E
    13:15:16.515 (ports 2): callback C11E
    13:15:18.532 (ports 2): callback C11E
    13:15:20.549 (ports 2): callback C11E
    13:15:22.565 (ports 2): callback C11E
    13:15:24.584 (ports 2): callback C11E
    13:15:26.599 (ports 2): callback C11E
    13:15:28.615 (ports 2): callback C11E
    13:15:30.632 (ports 2): callback C11E
    13:15:32.649 (ports 2): callback C11E
    13:15:34.665 (ports 2): callback C11E
    13:15:36.683 (ports 2): callback C11E
    13:15:38.699 (ports 2): callback C11E
    13:15:40.715 (ports 2): callback C11E
    13:15:42.731 (ports 2): callback C11E
    13:15:44.750 (ports 2): callback C11E
    13:15:46.765 (ports 2): callback C11E
    13:15:48.781 (ports 2): callback C11E
    13:15:50.800 (ports 2): callback C11E
    13:15:52.815 (ports 2): callback C11E
    13:15:54.815 (ports 2): callback C11E
    13:15:56.816 (ports 2): callback C11E
    13:15:58.831 (ports 2): callback C11E
    13:16:00.834 (ports 2): callback C11E
    13:16:02.850 (ports 2): callback C11E
    13:16:04.866 (ports 2): callback C11E
    13:16:06.882 (ports 2): callback C11E
    13:16:08.899 (ports 2): callback C11E
    13:16:10.916 (ports 2): callback C11E
    13:16:12.941 (ports 2): callback C11E
    13:16:14.966 (ports 2): callback C11E
    13:16:16.993 (ports 2): callback C11E
    13:16:19.014 (ports 2): callback C11E
    13:16:21.015 (ports 2): callback C11E
    13:16:23.016 (ports 2): callback C11E
    13:16:23.853 (ports 2): WM_DEVICECHANGE DBT_DEVICEARRIVAL
    13:16:23.854 (ports 2): found_usb_device, id=\\?\usb#vid_16c0&pid_0483#6362860#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    13:16:23.854 (ports 2): found_usb_device, loc=usb:0/140000/0/5/3    Port_#0003.Hub_#0006
    13:16:23.854 (ports 2): found_usb_device, hwid=USB\VID_16C0&PID_0483&REV_0279
    13:16:23.854 (ports 2): found_usb_device, devinst=00000003
    13:16:23.854 (ports 2): add: loc=usb:0/140000/0/5/3, class=Ports, vid=16C0, pid=0483, ver=0279, serial=6362860, dev=\\?\usb#vid_16c0&pid_0483#6362860#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    13:16:23.854 (ports 2):   comport_from_devinst_list attempt
    13:16:23.854 (ports 2):   found Ports in classguid_list at index=0
    13:16:23.854 (ports 2):   port COM8 found from devnode
    13:16:23.854 (ports 2): found_usb_device complete
    13:16:23.856 (ports 2): usb_add: usb:0/140000/0/5/3  COM8 (Teensy 4.0) Serial
    13:16:23.856 (ports 2): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    13:16:23.857 (ports 2): nothing new, skipping HID & Ports enum
    13:16:23.945 (ports 2): WM_DEVICECHANGE DBT_DEVICEARRIVAL
    13:16:23.946 (ports 2): nothing new, skipping HID & Ports enum
    13:16:23.946 (ports 2): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    13:16:23.947 (ports 2): nothing new, skipping HID & Ports enum
    13:16:25.033 (ports 2): callback C11E
    13:16:27.061 (ports 2): callback C11E
    13:16:29.082 (ports 2): callback C11E
    13:16:31.083 (ports 2): callback C11E
    13:16:33.083 (ports 2): callback C11E
    13:16:35.084 (ports 2): callback C11E
    13:16:37.105 (ports 2): callback C11E
    13:16:39.106 (ports 2): callback C11E
    13:16:41.106 (ports 2): callback C11E
    13:16:43.122 (ports 2): callback C11E
    13:16:45.124 (ports 2): callback C11E
    13:16:47.148 (ports 2): callback C11E
    13:16:49.164 (ports 2): callback C11E
    13:16:51.167 (ports 2): callback C11E
    13:16:53.183 (ports 2): callback C11E
    13:16:55.198 (ports 2): callback C11E
    13:16:57.222 (ports 2): callback C11E
    13:16:59.239 (ports 2): callback C11E
    13:17:00.057 (loader): file changed
    13:17:01.049 (loader): file changed
    13:17:01.071 (loader): File "Blink.ino.hex". 16216 bytes, 0% used
    13:17:01.108 (post_compile 35): Begin, version=1.54-beta1, high-res time
    13:17:01.111 (loader): remote connection 2656 opened
    13:17:01.120 (loader): remote cmd from 2656: "comment: Teensyduino 1.54-beta1 - WINDOWS (teensy_post_compile)"
    13:17:01.121 (post_compile 35): Sending command: comment: Teensyduino 1.54-beta1 - WINDOWS (teensy_post_compile)
    13:17:01.136 (loader): remote cmd from 2656: "status"
    13:17:01.152 (loader): remote cmd from 2656: "dir:T:\TEMP\arduino_build_483495\"
    13:17:01.153 (post_compile 35): Status: 1, 1, 0, 8, 0, 0, T:\TEMP\arduino_build_483495\, Blink.ino.hex
    13:17:01.153 (post_compile 35): Sending command: dir:T:\TEMP\arduino_build_483495\
    13:17:01.166 (loader): remote cmd from 2656: "file:Blink.ino.hex"
    13:17:01.167 (post_compile 35): Sending command: file:Blink.ino.hex
    13:17:01.192 (loader): File "Blink.ino.hex". 16216 bytes, 0% used
    13:17:01.213 (loader): remote cmd from 2656: "status"
    13:17:01.223 (post_compile 35): Status: 1, 1, 0, 8, 0, 0, T:\TEMP\arduino_build_483495\, Blink.ino.hex
    13:17:01.223 (post_compile 35): Disconnect
    13:17:01.238 (loader): remote connection 2656 closed
    13:17:01.266 (ports 2): callback C11E
    13:17:01.419 (loader): remote connection 2656 opened
    13:17:01.419 (loader): remote cmd from 2656: "comment: Teensyduino 1.54-beta1 - WINDOWS (teensy_post_compile)"
    13:17:01.421 (post_compile 36): Begin, version=1.54-beta1, high-res time
    13:17:01.433 (post_compile 36): Sending command: comment: Teensyduino 1.54-beta1 - WINDOWS (teensy_post_compile)
    13:17:01.435 (loader): remote cmd from 2656: "status"
    13:17:01.457 (loader): remote cmd from 2656: "dir:T:\TEMP\arduino_build_483495\"
    13:17:01.457 (loader): remote cmd from 2656: "file:Blink.ino.hex"
    13:17:01.461 (post_compile 36): Status: 1, 1, 0, 8, 0, 0, T:\TEMP\arduino_build_483495\, Blink.ino.hex
    13:17:01.461 (post_compile 36): Sending command: dir:T:\TEMP\arduino_build_483495\
    13:17:01.468 (post_compile 36): Sending command: file:Blink.ino.hex
    13:17:01.489 (loader): File "Blink.ino.hex". 16216 bytes, 0% used
    13:17:01.506 (loader): remote cmd from 2656: "status"
    13:17:01.522 (post_compile 36): Status: 1, 1, 0, 8, 0, 0, T:\TEMP\arduino_build_483495\, Blink.ino.hex
    13:17:01.522 (post_compile 36): Disconnect
    13:17:01.539 (post_compile 37): Running teensy_reboot: "T:\arduino-1.8.13_t54\hardware\teensy\..\tools\teensy_reboot.exe" teensy_reboot.exe "-board=TEENSY40" "-port=usb:0/140000/0/5/3" "-portlabel=COM8 Serial" "-portprotocol=Teensy"
    13:17:01.542 (loader): remote connection 2656 closed
    13:17:01.542 (loader): remote connection 2656 opened
    13:17:01.588 (loader): remote connection 3748 opened
    13:17:01.592 (reboot 38): Begin, version=1.54-beta1, high-res time
    13:17:01.592 (reboot 38): location = usb:0/140000/0/5/3
    13:17:01.592 (reboot 38): portprotocol = Teensy
    13:17:01.592 (reboot 38): portlabel = COM8 Serial
    13:17:01.592 (reboot 38): Only location usb:0/140000/0/5/3 will be tried
    13:17:01.592 (reboot 38): LoadLibrary cfgmgr32 ok
    13:17:01.592 (reboot 38): LoadLibrary ntdll ok
    13:17:01.594 (reboot 38): found_usb_device, id=\\?\usb#vid_16c0&pid_0483#6362860#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    13:17:01.594 (reboot 38): found_usb_device, loc=usb:0/140000/0/5/3    Port_#0003.Hub_#0006
    13:17:01.594 (reboot 38): found_usb_device, hwid=USB\VID_16C0&PID_0483&REV_0279
    13:17:01.594 (reboot 38): found_usb_device, devinst=00000002
    13:17:01.594 (reboot 38): add: loc=usb:0/140000/0/5/3, class=Ports, vid=16C0, pid=0483, ver=0279, serial=6362860, dev=\\?\usb#vid_16c0&pid_0483#6362860#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    13:17:01.594 (reboot 38):   comport_from_devinst_list attempt
    13:17:01.594 (reboot 38):   found Ports in classguid_list at index=0
    13:17:01.594 (reboot 38):   port COM8 found from devnode
    13:17:01.594 (reboot 38): found_usb_device complete
    13:17:01.608 (loader): remote cmd from 3748: "show:arduino_attempt_reboot"
    13:17:01.618 (reboot 38): found Teensy Loader, version 1.54
    13:17:01.618 (reboot 38): Sending command: show:arduino_attempt_reboot
    13:17:01.624 (loader): got request to show arduino rebooting message
    13:17:01.641 (loader): remote cmd from 3748: "comment: Teensyduino 1.54-beta1 - WINDOWS (teensy_reboot)"
    13:17:01.653 (reboot 38): Sending command: comment: Teensyduino 1.54-beta1 - WINDOWS (teensy_reboot)
    13:17:01.657 (loader): remote cmd from 3748: "status"
    13:17:01.686 (reboot 38): Status: 1, 1, 0, 8, 0, 0, T:\TEMP\arduino_build_483495\, Blink.ino.hex
    13:17:01.686 (reboot 38): do_reset (serial) COM8
    13:17:01.688 (loader): remote cmd from 3748: "status"
    13:17:01.699 (reboot 38): Status: 1, 1, 0, 8, 0, 0, T:\TEMP\arduino_build_483495\, Blink.ino.hex
    13:17:01.699 (reboot 38): status read, retry 0
    13:17:01.703 (ports 2): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    13:17:01.704 (ports 2): remove: loc=usb:0/140000/0/5/3
    13:17:01.704 (ports 2): usb_remove: usb:0/140000/0/5/3
    13:17:01.704 (ports 2): nothing new, skipping HID & Ports enum
    13:17:01.768 (ports 2): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    13:17:01.769 (ports 2): nothing new, skipping HID & Ports enum
    13:17:01.769 (ports 2): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    13:17:01.770 (ports 2): nothing new, skipping HID & Ports enum
    13:17:01.829 (loader): remote cmd from 3748: "status"
    13:17:01.859 (reboot 38): Status: 1, 1, 0, 8, 0, 0, T:\TEMP\arduino_build_483495\, Blink.ino.hex
    13:17:01.859 (reboot 38): status read, retry 1
    13:17:01.911 (ports 2): WM_DEVICECHANGE DBT_DEVICEARRIVAL
    13:17:01.912 (ports 2): found_usb_device, id=\\?\usb#vid_16c0&pid_0478#0009b57e#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    13:17:01.912 (ports 2): found_usb_device, loc=usb:0/140000/0/5/3    Port_#0003.Hub_#0006
    13:17:01.912 (ports 2): found_usb_device, hwid=USB\VID_16C0&PID_0478&REV_0105
    13:17:01.912 (ports 2): found_usb_device, devinst=0000001e
    13:17:01.912 (ports 2): add: loc=usb:0/140000/0/5/3, class=HID, vid=16C0, pid=0478, ver=0105, serial=0009b57e, dev=\\?\usb#vid_16c0&pid_0478#0009b57e#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    13:17:01.912 (ports 2): hiddev_from_devinst_list: iface=0
    13:17:01.913 (ports 2): found_usb_device complete
    13:17:01.915 (ports 2): usb_add: usb:0/140000/0/5/3  [no_device] (Teensy 4.0) Bootloader
    13:17:02.002 (loader): remote cmd from 3748: "status"
    13:17:02.020 (loader): Device came online, code_size = 2031616
    13:17:02.023 (loader): Board is: Teensy 4.0 (IMXRT1062), version 1.05
    13:17:02.042 (loader): File "Blink.ino.hex". 16216 bytes, 1% used
    13:17:02.052 (loader): set background IMG_ONLINE
    13:17:02.077 (loader): File "Blink.ino.hex". 16216 bytes, 1% used
    13:17:02.092 (loader): elf appears to be for Teensy 4.0 (IMXRT1062) (2031616 bytes)
    13:17:02.102 (loader): elf binary data matches hex file
    13:17:02.103 (loader): elf file is for Teensy 4.0 (IMXRT1062)
    13:17:02.112 (loader): begin operation
    13:17:02.144 (reboot 38): Status: 1, 1, 1, 9, 0, 1, T:\TEMP\arduino_build_483495\, Blink.ino.hex
    13:17:02.148 (ports 2): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    13:17:02.150 (ports 2): hid, found devinst=0000001F
    13:17:02.150 (ports 2): hid, path=\\?\hid#vid_16c0&pid_0478#7&113038dd&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
    13:17:02.150 (ports 2): hid,  opened handle
    13:17:02.150 (ports 2):  devinst=0000001F, location=usb:0/140000/0/5/3
    13:17:02.150 (ports 2):  vid=16C0, pid=0478, ver=0105, usepage=FF9C, use=0024
    13:17:02.150 (ports 2):  devpath=\\?\hid#vid_16c0&pid_0478#7&113038dd&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
    13:17:02.150 (ports 2): usb_add: usb:0/140000/0/5/3  hid#vid_16c0&pid_0478 (Teensy 4.0) Bootloader
    13:17:02.232 (loader): remote cmd from 3748: "status"
    13:17:02.252 (loader): flash, block=0, bs=1024, auto=1
    13:17:02.252 (loader):  gauge old value = 0
    13:17:02.252 (reboot 38): Status: 1, 1, 1, 9, 0, 1, T:\TEMP\arduino_build_483495\, Blink.ino.hex
    13:17:02.267 (loader): flash, block=1, bs=1024, auto=1
    13:17:02.482 (loader):  gauge old value = 1
    13:17:02.492 (loader): remote cmd from 3748: "status"
    13:17:02.507 (loader): flash, block=2, bs=1024, auto=1
    13:17:02.509 (reboot 38): Status: 1, 1, 1, 9, 0, 1, T:\TEMP\arduino_build_483495\, Blink.ino.hex
    13:17:02.517 (loader):  gauge old value = 2
    13:17:02.532 (loader): flash, block=3, bs=1024, auto=1
    13:17:02.542 (loader):  gauge old value = 3
    13:17:02.552 (loader): flash, block=4, bs=1024, auto=1
    13:17:02.567 (loader):  gauge old value = 4
    13:17:02.577 (loader): remote cmd from 3748: "status"
    13:17:02.587 (loader): flash, block=5, bs=1024, auto=1
    13:17:02.591 (reboot 38): Status: 1, 1, 1, 9, 0, 1, T:\TEMP\arduino_build_483495\, Blink.ino.hex
    13:17:02.597 (loader):  gauge old value = 5
    13:17:02.612 (loader): flash, block=6, bs=1024, auto=1
    13:17:02.622 (loader):  gauge old value = 6
    13:17:02.632 (loader): flash, block=7, bs=1024, auto=1
    13:17:02.642 (loader):  gauge old value = 7
    13:17:02.652 (loader): remote cmd from 3748: "status"
    13:17:02.671 (reboot 38): Status: 1, 1, 1, 9, 0, 1, T:\TEMP\arduino_build_483495\, Blink.ino.hex
    13:17:02.672 (loader): flash, block=8, bs=1024, auto=1
    13:17:02.687 (loader):  gauge old value = 8
    13:17:02.707 (loader): flash, block=9, bs=1024, auto=1
    13:17:02.727 (loader):  gauge old value = 9
    13:17:02.742 (loader): remote cmd from 3748: "status"
    13:17:02.752 (loader): flash, block=10, bs=1024, auto=1
    13:17:02.756 (reboot 38): Status: 1, 1, 1, 9, 0, 1, T:\TEMP\arduino_build_483495\, Blink.ino.hex
    13:17:02.767 (loader):  gauge old value = 10
    13:17:02.782 (loader): flash, block=11, bs=1024, auto=1
    13:17:02.797 (loader):  gauge old value = 11
    13:17:02.807 (reboot 38): status read, retry 2
    13:17:02.807 (reboot 38): Success
    13:17:02.807 (reboot 38): Disconnect
    13:17:02.867 (loader): remote connection 3748 closed
    13:17:02.902 (loader): remote connection 2656 closed
    13:17:02.917 (loader): flash, block=12, bs=1024, auto=1
    13:17:02.933 (loader):  gauge old value = 12
    13:17:02.947 (loader): flash, block=13, bs=1024, auto=1
    13:17:02.962 (loader):  gauge old value = 13
    13:17:02.972 (loader): flash, block=14, bs=1024, auto=1
    13:17:02.987 (loader):  gauge old value = 14
    13:17:03.007 (loader): flash, block=15, bs=1024, auto=1
    13:17:03.027 (loader):  gauge old value = 15
    13:17:03.052 (loader): sending reboot
    13:17:03.077 (loader): begin wait_until_offline
    13:17:03.083 (ports 2): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    13:17:03.084 (ports 2): remove: loc=usb:0/140000/0/5/3
    13:17:03.084 (ports 2): usb_remove: usb:0/140000/0/5/3
    13:17:03.085 (ports 2): nothing new, skipping HID & Ports enum
    13:17:03.097 (loader): offline, waited 0
    13:17:03.132 (loader): end operation, total time = 1.010 seconds
    13:17:03.148 (loader): set background IMG_REBOOT_OK
    13:17:03.156 (loader): redraw timer set, image 14 to show for 1200 ms
    13:17:03.221 (loader): HID/win32:  vid:1B80 pid:B406 ver:0100
    13:17:03.230 (ports 2): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    13:17:03.231 (ports 2): nothing new, skipping HID & Ports enum
    13:17:03.239 (loader): HID/win32:  vid:1B80 pid:B406 ver:0100
    13:17:03.255 (loader): HID/win32:  vid:1B80 pid:B406 ver:0100
    13:17:03.255 (loader): HID/win32:  vid:1B80 pid:B406 ver:0100
    13:17:03.272 (loader): HID/win32:  vid:046D pid:C534 ver:2901
    13:17:03.287 (loader): HID/win32:  vid:046D pid:C534 ver:2901
    13:17:03.303 (loader): HID/win32:  vid:046D pid:C534 ver:2901
    13:17:03.320 (loader): HID/win32:  vid:046D pid:C534 ver:2901
    13:17:03.335 (loader): HID/win32:  vid:0764 pid:0501 ver:0001
    13:17:03.422 (ports 2): WM_DEVICECHANGE DBT_DEVICEARRIVAL
    13:17:03.423 (ports 2): found_usb_device, id=\\?\usb#vid_16c0&pid_0483#6362860#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    13:17:03.423 (ports 2): found_usb_device, loc=usb:0/140000/0/5/3    Port_#0003.Hub_#0006
    13:17:03.423 (ports 2): found_usb_device, hwid=USB\VID_16C0&PID_0483&REV_0279
    13:17:03.423 (ports 2): found_usb_device, devinst=00000003
    13:17:03.423 (ports 2): add: loc=usb:0/140000/0/5/3, class=Ports, vid=16C0, pid=0483, ver=0279, serial=6362860, dev=\\?\usb#vid_16c0&pid_0483#6362860#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    13:17:03.423 (ports 2):   comport_from_devinst_list attempt
    13:17:03.423 (ports 2):   found Ports in classguid_list at index=0
    13:17:03.424 (ports 2):   port COM8 found from devnode
    13:17:03.424 (ports 2): found_usb_device complete
    13:17:03.425 (ports 2): usb_add: usb:0/140000/0/5/3  COM8 (Teensy 4.0) Serial
    13:17:03.561 (ports 2): callback C11E
    13:17:03.561 (ports 2): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    13:17:03.562 (ports 2): nothing new, skipping HID & Ports enum
    13:17:03.562 (ports 2): WM_DEVICECHANGE DBT_DEVICEARRIVAL
    13:17:03.563 (ports 2): nothing new, skipping HID & Ports enum
    13:17:03.653 (ports 2): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    13:17:03.654 (ports 2): nothing new, skipping HID & Ports enum
    13:17:04.354 (loader): redraw, image 9
    13:17:05.581 (ports 2): callback C11E
    13:17:07.601 (ports 2): callback C11E
    13:17:09.618 (ports 2): callback C11E
    13:17:11.643 (ports 2): callback C11E
    13:17:13.654 (ports 2): callback C11E
    13:17:15.670 (ports 2): callback C11E
    13:17:17.670 (ports 2): callback C11E
    13:17:19.670 (ports 2): callback C11E
    13:17:21.148 (ports 2): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    13:17:21.149 (ports 2): remove: loc=usb:0/140000/0/5/3
    13:17:21.149 (ports 2): usb_remove: usb:0/140000/0/5/3
    13:17:21.149 (ports 2): nothing new, skipping HID & Ports enum
    13:17:21.223 (ports 2): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    13:17:21.223 (ports 2): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    13:17:21.224 (ports 2): nothing new, skipping HID & Ports enum
    13:17:21.683 (ports 2): callback C11E
    13:17:22.776 (ports 2): purge, name=COM8 (Teensy 4.0) Serial, loc=usb:0/140000/0/5/3, age=1.627 sec
    13:17:23.694 (ports 2): callback C11E
    13:17:25.708 (ports 2): callback C11E
    13:17:27.733 (ports 2): callback C11E
    13:17:29.755 (ports 2): callback C11E
    13:17:31.757 (ports 2): callback C11E
    13:17:33.788 (ports 2): callback C11E
    13:17:35.807 (ports 2): callback C11E
    13:17:37.820 (ports 2): callback C11E
    13:17:39.829 (ports 2): callback C11E
    13:17:41.854 (ports 2): callback C11E
    13:17:43.854 (ports 2): callback C11E
    13:17:45.856 (ports 2): callback C11E
    13:17:47.871 (ports 2): callback C11E
    13:17:49.872 (ports 2): callback C11E
    13:17:51.872 (ports 2): callback C11E
    13:17:53.883 (ports 2): callback C11E
    13:17:55.901 (ports 2): callback C11E
    13:17:57.919 (ports 2): callback C11E
    13:17:59.932 (ports 2): callback C11E
    13:18:01.942 (ports 2): callback C11E
    13:18:03.952 (ports 2): callback C11E
    13:18:05.967 (ports 2): callback C11E
    13:18:07.968 (ports 2): callback C11E
    13:18:09.969 (ports 2): callback C11E
    13:18:11.985 (ports 2): callback C11E
    13:18:13.993 (ports 2): callback C11E

  7. #7
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    12,710
    Above T_4.1 had some QPSI chip(s).

    Unpacked a Fresh T_4.1 - it was blinking and connected - Upload fail and button push fail - though TeensyLoader goes through the motions.

    To check used TyCommander with same T:\\TEMP\\arduino_build_483495/Blink.ino.hex. It also goes through programming - but device never comes up running.

    Did 15sec Restore - TyCommander upload ... no device on reset or power on.

    OPEN IDE 1.8.13 with TD_1.53 and upload BlinkWithoutDelay.ino.TEENSY41.hex using TyCommander and it works no problem.

  8. #8
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    7,921
    Side Note: I ran into issues yesterday or the day before where my builds were not working before this release, but that was because I had my Cores project directory linked into the Teensyduino release (and I renamed cores to different name... It started working again when I removed that link and renamed back...

    I also was seeing some screwy stuff when I was building using the Sublimetext with my app that displays information about the build... It is screwy again with the release.
    Code:
    Sketch uses 73720 bytes (0%) of program storage space. Maximum is 8126464 bytes.
    Global variables use 246452 bytes (47%) of dynamic memory, leaving 277836 bytes for local variables. Maximum is 524288 bytes.
    
    FlexRAM section ITCM+DTCM = 512 KB
        Config : aaaaaaaf (DDDDDDDDDDDDDDII)
        ITCM :  55544 B	(84.75% of   64 KB)
        DTCM : 180928 B	(39.44% of  448 KB)
    >>>>> Error FlexRAM Filled no room for Stack: -537051840 <<<<<
    OCRAM: 512KB
        DMAMEM:  12384 B	( 2.36% of  512 KB)
        Available for Heap: 511904 B	(97.64% of  512 KB)
    Flash:  76800 B	( 0.95% of 7936 KB)
    The code is pretty simple:
    Code:
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    
    int printnumbers(unsigned flexram_config, unsigned itcm, unsigned dtcm, unsigned ocram, unsigned flash, int stack,
    	unsigned ocramm, unsigned flashm)
    {
    	int retval = 0;
    	unsigned dtcm_allocated = 0;
    	unsigned itcm_allocated = 0;
    	char dtcm_itcm_config[17] = "DDDDDDDDDDDDDDDD";
    	char* psz = &dtcm_itcm_config[15]; // Crud code...
    	printf("\nFlexRAM section ITCM+DTCM = 512 KB\n");
    	printf("    Config : %08lx (", flexram_config);
    	for (; flexram_config; flexram_config >>= 2) {
    		if ((flexram_config & 3) == 2) {
    			*psz-- = 'D';
    			dtcm_allocated += 32;	// 32K per bank;
    		}
    		else if ((flexram_config & 3) == 3) {
    			*psz-- = 'I';
    			itcm_allocated += 32;	// 32K per bank;
    		}
    		else psz--; 
    	}
    	printf("%s)\n    ITCM : %6d B\t(%5.2f%% of %4d KB)\n", dtcm_itcm_config, itcm, itcm / (itcm_allocated * 1024.0) * 100, itcm_allocated);
    	printf("    DTCM : %6d B\t(%5.2f%% of %4d KB)\n", dtcm, dtcm / (dtcm_allocated * 1024.0) * 100, dtcm_allocated);
    	if (stack <= 0) {
    		retval = -1;
    		printf(">>>>> Error FlexRAM Filled no room for Stack: %d <<<<<\n", stack);
    	}
    	else {
    		printf("    Available for Stack: %6d\n", stack);
    	}
    	printf("OCRAM: 512KB\n");
    	printf("    DMAMEM: %6d B\t(%5.2f%% of %4d KB)\n", ocram, ocram / (ocramm * 1024.0) * 100, ocramm);
    	ocram = ocramm*1024 - ocram;
    	printf("    Available for Heap: %6d B\t(%5.2f%% of %4d KB)\n", ocram, ocram / (ocramm * 1024.0) * 100, ocramm);
    	printf("Flash: %6d B\t(%5.2f%% of %4d KB)\n", flash, flash / (flashm * 1024.0) * 100, flashm);
    	return retval;
    }
    
    
    int main() {
    	const int bl = 200;
    	int retval = 0;
    	char str[bl + 1];
    	char* s;
    
    	unsigned teensy_model_identifier = 0;
    	unsigned stext = 0;
    	unsigned etext = 0;
    	unsigned sdata = 0;
    	unsigned ebss = 0;
    	unsigned flashimagelen = 0;
    	unsigned heap_start = 0;
    	unsigned flexram_bank_config = 0;
    	unsigned estack = 0;
    
    	do {
    		s = fgets(str, sizeof(str), stdin);
    		if (s) {
    			str[bl] = 0;
    			if (strstr(str, "_teensy_model_identifier")) teensy_model_identifier = strtol(str, NULL, 16);
    			if (strstr(str, "T _stext")) stext = strtol(str, NULL, 16);
    			if (strstr(str, "T _etext")) etext = strtol(str, NULL, 16);
    			if (strstr(str, "D _sdata")) sdata = strtol(str, NULL, 16);
    			if (strstr(str, "B _ebss")) ebss = strtol(str, NULL, 16);
    			if (strstr(str, " _heap_start")) heap_start = strtol(str, NULL, 16);
    			if (strstr(str, " _flashimagelen")) flashimagelen = strtol(str, NULL, 16);
    			if (strstr(str, "B _estack")) estack = strtoul(str, NULL, 16);
    			if (strstr(str, " _flexram_bank_config")) flexram_bank_config = strtoul(str, NULL, 16);
    			//puts( str );
    		}
    	} while (s);
    
    	if (teensy_model_identifier == 0x24) {
    		retval = printnumbers(flexram_bank_config, etext - stext, ebss - sdata, heap_start - 0x20200000, flashimagelen, estack-ebss, 512, 1984);
    	}
    	else if (teensy_model_identifier == 0x25) {
    		retval = printnumbers(flexram_bank_config, etext - stext, ebss - sdata, heap_start - 0x20200000, flashimagelen, estack - ebss, 512, 7936);
    	}
    
    	return retval;
    }
    It is simply subtracting what it found for the symbol ebss from the symbol estack...

  9. #9
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    12,710
    I had github updated my cores but beta 1 released before I swapped so I didn't see anything. And today's testing was IDE only - except TyCommander is integrated on the TD1.53 version - but it worked.

    I stared at the .ld changes and didn't see anything obvious between the two 1062's - diff flash size, and add in for the extmem.

    @KurtE - does the USBHost lib update include your 512B Serial changes?

    <edit> : on td1.53 IDE did restore to teensyLoader for upload, instead of TyCommander

    Opened TeensyLoader 1.54b1 which then uploaded to T_4.1 no problem the blink sketch. Just to confirm problem is the HEX not the loader.

  10. #10
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    7,921
    Well I had my code print out what it had for estack and ebss and it prints:
    estack:0 ebss:2002c2c0

    But that is also true for T4 now as well... So next up to see why?

    Figured out the tool issue:
    Code:
    2002c28c B errno
    2002c2c0 B _ebss
    20070000 T _estack
    The code before was looking for B _estack
    So just duplicated....
    Code:
    			if (strstr(str, "B _estack")) estack = strtoul(str, NULL, 16);
    			if (strstr(str, "T _estack")) estack = strtoul(str, NULL, 16);
    Last edited by KurtE; 10-22-2020 at 10:34 PM.

  11. #11
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    5,897
    Just joined the fun here. Loaded a clean copy of Arduino 1.8.13 along with 1.54-beta1 and am seeing the same issues on a Windows 10 64 bit as @KurtE and @degragster while loading Blink.ino. As a second test I went back the 1.8.13/1.53 combo and tried loading blink and got the following error:
    Code:
    C:\Users\Merli\AppData\Local\Temp\arduino_build_911470/core\core.a(bootdata.c.o):(.ivt+0x18): undefined reference to `_scsf'
    C:\Users\Merli\AppData\Local\Temp\arduino_build_911470/core\core.a(bootdata.c.o):(.bootdata+0x4): undefined reference to `__image_size'
    collect2.exe: error: ld returned 1 exit status
    Error compiling for board Teensy 4.1.
    Here's the verbose output:
    Code:
    F:\arduino-1.8.13\arduino-builder -dump-prefs -logger=machine -hardware F:\arduino-1.8.13\hardware -hardware C:\Users\Merli\AppData\Local\Arduino15\packages -tools F:\arduino-1.8.13\tools-builder -tools F:\arduino-1.8.13\hardware\tools\avr -tools C:\Users\Merli\AppData\Local\Arduino15\packages -built-in-libraries F:\arduino-1.8.13\libraries -libraries D:\Users\Merli\Documents\Arduino\libraries -fqbn=teensy:avr:teensy41:usb=serial,speed=600,opt=o2std,keys=en-us -ide-version=10813 -build-path C:\Users\Merli\AppData\Local\Temp\arduino_build_911470 -warnings=none -build-cache C:\Users\Merli\AppData\Local\Temp\arduino_cache_537696 -verbose F:\arduino-1.8.13\examples\Teensy\Tutorial1\Blink\Blink.pde
    F:\arduino-1.8.13\arduino-builder -compile -logger=machine -hardware F:\arduino-1.8.13\hardware -hardware C:\Users\Merli\AppData\Local\Arduino15\packages -tools F:\arduino-1.8.13\tools-builder -tools F:\arduino-1.8.13\hardware\tools\avr -tools C:\Users\Merli\AppData\Local\Arduino15\packages -built-in-libraries F:\arduino-1.8.13\libraries -libraries D:\Users\Merli\Documents\Arduino\libraries -fqbn=teensy:avr:teensy41:usb=serial,speed=600,opt=o2std,keys=en-us -ide-version=10813 -build-path C:\Users\Merli\AppData\Local\Temp\arduino_build_911470 -warnings=none -build-cache C:\Users\Merli\AppData\Local\Temp\arduino_cache_537696 -verbose F:\arduino-1.8.13\examples\Teensy\Tutorial1\Blink\Blink.pde
    Using board 'teensy41' from platform in folder: F:\arduino-1.8.13\hardware\teensy\avr
    Using core 'teensy4' from platform in folder: F:\arduino-1.8.13\hardware\teensy\avr
    Detecting libraries used...
    "F:\\arduino-1.8.13\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=153 -DARDUINO=10813 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IF:\\arduino-1.8.13\\hardware\\teensy\\avr\\cores\\teensy4" "C:\\Users\\Merli\\AppData\\Local\\Temp\\arduino_build_911470\\sketch\\Blink.pde.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE
    Generating function prototypes...
    "F:\\arduino-1.8.13\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=153 -DARDUINO=10813 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IF:\\arduino-1.8.13\\hardware\\teensy\\avr\\cores\\teensy4" "C:\\Users\\Merli\\AppData\\Local\\Temp\\arduino_build_911470\\sketch\\Blink.pde.cpp" -o "C:\\Users\\Merli\\AppData\\Local\\Temp\\arduino_build_911470\\preproc\\ctags_target_for_gcc_minus_e.cpp" -DARDUINO_LIB_DISCOVERY_PHASE
    "F:\\arduino-1.8.13\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\Merli\\AppData\\Local\\Temp\\arduino_build_911470\\preproc\\ctags_target_for_gcc_minus_e.cpp"
    Compiling sketch...
    "F:\\arduino-1.8.13\\hardware\\teensy/../tools/precompile_helper" "F:\\arduino-1.8.13\\hardware\\teensy\\avr/cores/teensy4" "C:\\Users\\Merli\\AppData\\Local\\Temp\\arduino_build_911470" "F:\\arduino-1.8.13\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -x c++-header -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=153 -DARDUINO=10813 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IF:\\arduino-1.8.13\\hardware\\teensy\\avr/cores/teensy4" "C:\\Users\\Merli\\AppData\\Local\\Temp\\arduino_build_911470/pch/Arduino.h" -o "C:\\Users\\Merli\\AppData\\Local\\Temp\\arduino_build_911470/pch/Arduino.h.gch"
    Using previously compiled file: C:\Users\Merli\AppData\Local\Temp\arduino_build_911470\pch\Arduino.h.gch
    "F:\\arduino-1.8.13\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++14 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=153 -DARDUINO=10813 -DARDUINO_TEENSY41 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH "-IC:\\Users\\Merli\\AppData\\Local\\Temp\\arduino_build_911470/pch" "-IF:\\arduino-1.8.13\\hardware\\teensy\\avr\\cores\\teensy4" "C:\\Users\\Merli\\AppData\\Local\\Temp\\arduino_build_911470\\sketch\\Blink.pde.cpp" -o "C:\\Users\\Merli\\AppData\\Local\\Temp\\arduino_build_911470\\sketch\\Blink.pde.cpp.o"
    Compiling libraries...
    Compiling core...
    Using precompiled core: C:\Users\Merli\AppData\Local\Temp\arduino_cache_537696\core\core_190600ebdde382f4be53b25cb0d0291e.a
    Linking everything together...
    "F:\\arduino-1.8.13\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-gcc" -O2 -Wl,--gc-sections,--relax "-TF:\\arduino-1.8.13\\hardware\\teensy\\avr\\cores\\teensy4/imxrt1062_t41.ld" -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -o "C:\\Users\\Merli\\AppData\\Local\\Temp\\arduino_build_911470/Blink.pde.elf" "C:\\Users\\Merli\\AppData\\Local\\Temp\\arduino_build_911470\\sketch\\Blink.pde.cpp.o" "C:\\Users\\Merli\\AppData\\Local\\Temp\\arduino_build_911470/..\\arduino_cache_537696\\core\\core_190600ebdde382f4be53b25cb0d0291e.a" "-LC:\\Users\\Merli\\AppData\\Local\\Temp\\arduino_build_911470" -larm_cortexM7lfsp_math -lm -lstdc++
    C:\Users\Merli\AppData\Local\Temp\arduino_build_911470/..\arduino_cache_537696\core\core_190600ebdde382f4be53b25cb0d0291e.a(bootdata.c.o):(.ivt+0x18): undefined reference to `_scsf'
    C:\Users\Merli\AppData\Local\Temp\arduino_build_911470/..\arduino_cache_537696\core\core_190600ebdde382f4be53b25cb0d0291e.a(bootdata.c.o):(.bootdata+0x4): undefined reference to `__image_size'
    collect2.exe: error: ld returned 1 exit status
    Error compiling for board Teensy 4.1.
    Oh - have to fix something - downloaded the core the core a couple of days ago let me put it back and retest - this was with only the changes for HAB from what i remember.

    Ok put it fully back to 1.53 and Blink works like a charm - so may be HAB changes?

    Update>Tried a T4.0 and loading blink worked no issue. The T4.1 issue was the initial beta t4.1 with flash and a psram chip.
    Last edited by mjs513; 10-22-2020 at 10:56 PM.

  12. #12
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    7,921
    I am trying to look at the differences in the code between the two releases and wondering about why the .vectors was removed in both the .ld files as well as bootdata.c

    What I am curious about, is in previous build we have a
    Code:
    __attribute__ ((section(".vectors"), used))
    const uint32_t vector_table[2] = {
    #if defined(__IMXRT1062__)
    	0x20010000, // 64K DTCM for boot, ResetHandler configures stack after ITCM/DTCM setup
    #endif
    	(uint32_t)&ResetHandler
    };
    And we pass that in to:
    Code:
    __attribute__ ((section(".vectors"), used))
    const uint32_t vector_table[2] = {
    #if defined(__IMXRT1062__)
    	0x20010000, // 64K DTCM for boot, ResetHandler configures stack after ITCM/DTCM setup
    #endif
    	(uint32_t)&ResetHandler
    };
    But the new stuff:
    Code:
    __attribute__ ((section(".ivt"), used))
    const uint32_t ImageVectorTable[8] = {
    	0x402000D1,		// header
    	(uint32_t)&ResetHandler,// program entry
    	0,			// reserved
    We have pointer directly to the ResetHandler, so who sets up the ResetHandler stack?

    I do not see any differences in startup.c

  13. #13
    Senior Member
    Join Date
    May 2015
    Location
    USA
    Posts
    729
    I'm hoping that USB Type: Serial+Midi+Audio on T4 with Linux can get fixed. Same exact program works fine with Audio only.

  14. #14
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    23,051
    Quote Originally Posted by jonr View Post
    Same exact program works fine with Audio only.
    Can you give me a link to the forum thread with that exact same program? And clear / quick way to test (ideally with Linux)?

    Looks like I messed with Teensy 4.1 with the last minute HAB changes, so I'm probably going to make some quick fixes and package up beta2 tomorrow. If I can reproduce this problem in only a minute or two, I'll spend a little time trying to get a fix into beta2. But no clear way to quickly test means I definitely won't look at this until after beta2.

  15. #15
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    7,921
    I did some hacking and my T4.1 programs now... More or less reverted some of it...

    my imxrt1062_t41.ld right now looks like:
    Code:
    MEMORY
    {
    	ITCM (rwx):  ORIGIN = 0x00000000, LENGTH = 512K
    	DTCM (rwx):  ORIGIN = 0x20000000, LENGTH = 512K
    	RAM (rwx):   ORIGIN = 0x20200000, LENGTH = 512K
    	FLASH (rwx): ORIGIN = 0x60000000, LENGTH = 7936K
    	ERAM (rwx):  ORIGIN = 0x70000000, LENGTH = 16384K
    }
    
    ENTRY(ImageVectorTable)
    
    SECTIONS
    {
    	.text.progmem : {
    		KEEP(*(.flashconfig))
    		FILL(0xFF)
    		. = ORIGIN(FLASH) + 0x1000;
    		KEEP(*(.ivt))
    		KEEP(*(.bootdata))
    		KEEP(*(.vectors))
    		KEEP(*(.startup))
    		*(.flashmem*)
    		*(.progmem*)
                    . = ALIGN(4);
                    KEEP(*(.init))
                    __preinit_array_start = .;
                    KEEP (*(.preinit_array))
                    __preinit_array_end = .;
                    __init_array_start = .;
                    KEEP (*(.init_array))
                    __init_array_end = .;
    		. = ALIGN(16);
    	} > FLASH
    
    	.text.itcm : {
    		. = . + 32; /* MPU to trap NULL pointer deref */
    		*(.fastrun)
    		*(.text*)
    		. = ALIGN(16);
    	} > ITCM  AT> FLASH
    
    	.ARM.exidx : {
    		__exidx_start = .;
    		*(.ARM.exidx* .gnu.linkonce.armexidx.*)
    		__exidx_end = .;
    	} > ITCM  AT> FLASH
    
    	.text.itcm.padding (NOLOAD) : {
    		. = ALIGN(32768);
    	} > ITCM
    
    	.data : {
    		*(.rodata*)
    		*(.data*)
    		. = ALIGN(16);
    	} > DTCM  AT> FLASH
    
    	.bss ALIGN(4) : {
    		*(.bss*)
    		*(COMMON)
    		. = ALIGN(32);
    		. = . + 32; /* MPU to trap stack overflow */
    	} > DTCM
    
    	.bss.dma (NOLOAD) : {
    		*(.hab_log)
    		*(.dmabuffers)
    		. = ALIGN(32);
    	} > RAM
    
    	.bss.extram (NOLOAD) : {
    		*(.externalram)
    	} > ERAM
    
    	.text.csf : {
    		FILL(0xFF)
    		. = ALIGN(4);
    		KEEP(*(.csf))
    	} > FLASH
    
    	_stext = ADDR(.text.itcm);
    	_etext = ADDR(.text.itcm) + SIZEOF(.text.itcm) + SIZEOF(.ARM.exidx);
    	_stextload = LOADADDR(.text.itcm);
    
    	_sdata = ADDR(.data);
    	_edata = ADDR(.data) + SIZEOF(.data);
    	_sdataload = LOADADDR(.data);
    
    	_sbss = ADDR(.bss);
    	_ebss = ADDR(.bss) + SIZEOF(.bss);
    
    	_heap_start = ADDR(.bss.dma) + SIZEOF(.bss.dma);
    	_heap_end = ORIGIN(RAM) + LENGTH(RAM);
    
    	_itcm_block_count = (SIZEOF(.text.itcm) + SIZEOF(.ARM.exidx) + 0x7FFF) >> 15;
    	_flexram_bank_config = 0xAAAAAAAA | ((1 << (_itcm_block_count * 2)) - 1);
    	_estack = ORIGIN(DTCM) + ((16 - _itcm_block_count) << 15);
    
    	_flashimagelen = SIZEOF(.text.progmem) + SIZEOF(.text.itcm) + SIZEOF(.ARM.exidx) + SIZEOF(.data) + SIZEOF(.text.csf);
    	_teensy_model_identifier = 0x25;
    
    	.debug_info     0 : { *(.debug_info) }
    	.debug_abbrev   0 : { *(.debug_abbrev) }
    	.debug_line     0 : { *(.debug_line) }
    	.debug_frame    0 : { *(.debug_frame) }
    	.debug_str      0 : { *(.debug_str) }
    	.debug_loc      0 : { *(.debug_loc) }
    
    }

    My bootdata.c looks like:
    Code:
    //#include "imxrt.h"
    
    #include <stdint.h>
    
    extern void ResetHandler(void);
    extern unsigned long _estack;
    extern unsigned long _flashimagelen;
    
    __attribute__ ((section(".vectors"), used))
    const uint32_t vector_table[2] = {
    #if defined(__IMXRT1062__)
    	0x20010000, // 64K DTCM for boot, ResetHandler configures stack after ITCM/DTCM setup
    #endif
    	(uint32_t)&ResetHandler
    };
    
    
    __attribute__ ((section(".bootdata"), used))
    const uint32_t BootData[3] = {
    	0x60000000,
    	(uint32_t)&_flashimagelen,
    	0
    };
    
    
    __attribute__ ((section(".csf"), used))
    const uint32_t hab_csf[768];	// placeholder for HAB signature
    
    
    __attribute__ ((section(".ivt"), used))
    const uint32_t ImageVectorTable[8] = {
    	0x402000D1,		// header
    	(uint32_t)vector_table, // docs are wrong, needs to be vec table, not start addr
    	0,			// reserved
    	0,			// dcd
    	(uint32_t)BootData,	// abs address of boot data
    	(uint32_t)ImageVectorTable, // self
    	(uint32_t)hab_csf,	// command sequence file
    	0			// reserved
    };
    
    __attribute__ ((section(".flashconfig"), used))
    uint32_t FlexSPI_NOR_Config[128] = {
    	// 448 byte common FlexSPI configuration block, 8.6.3.1 page 223 (RT1060 rev 0)
    	// MCU_Flashloader_Reference_Manual.pdf, 8.2.1, Table 8-2, page 72-75
    	0x42464346,		// Tag				0x00
    	0x56010000,		// Version
    	0,			// reserved
    	0x00020101,		// columnAdressWidth,dataSetupTime,dataHoldTime,readSampleClkSrc
    
    	0x00000000,		// waitTimeCfgCommands,-,deviceModeCfgEnable
    	0,			// deviceModeSeq
    	0, 			// deviceModeArg
    	0x00000000,		// -,-,-,configCmdEnable
    
    	0,			// configCmdSeqs		0x20
    	0,
    	0,
    	0,
    
    	0,			// cfgCmdArgs			0x30
    	0,
    	0,
    	0,
    
    	0x00000000,		// controllerMiscOption		0x40
    	0x00030401,		// lutCustomSeqEnable,serialClkFreq,sflashPadType,deviceType
    	0,			// reserved
    	0,			// reserved
    
    #if defined(ARDUINO_TEENSY40)
    	0x00200000,		// sflashA1Size			0x50
    #elif defined(ARDUINO_TEENSY41)
    	0x00800000,		// sflashA1Size			0x50
    #elif defined(ARDUINO_TEENSY_MICROMOD)
    	0x01000000,		// sflashA1Size			0x50
    #else
    #error "Unknow flash chip size";
    #endif
    	0,			// sflashA2Size
    	0,			// sflashB1Size
    	0,			// sflashB2Size
    
    	0,			// csPadSettingOverride		0x60
    	0,			// sclkPadSettingOverride
    	0,			// dataPadSettingOverride
    	0,			// dqsPadSettingOverride
    
    	0,			// timeoutInMs			0x70
    	0,			// commandInterval
    	0,			// dataValidTime
    	0x00000000,		// busyBitPolarity,busyOffset
    
    	0x0A1804EB,		// lookupTable[0]		0x80
    	0x26043206,		// lookupTable[1]
    	0,			// lookupTable[2]
    	0,			// lookupTable[3]
    
    	0x24040405,		// lookupTable[4]		0x90
    	0,			// lookupTable[5]
    	0,			// lookupTable[6]
    	0,			// lookupTable[7]
    
    	0,			// lookupTable[8]		0xA0
    	0,			// lookupTable[9]
    	0,			// lookupTable[10]
    	0,			// lookupTable[11]
    
    	0x00000406,		// lookupTable[12]		0xB0
    	0,			// lookupTable[13]
    	0,			// lookupTable[14]
    	0,			// lookupTable[15]
    
    	0,			// lookupTable[16]		0xC0
    	0,			// lookupTable[17]
    	0,			// lookupTable[18]
    	0,			// lookupTable[19]
    
    	0x08180420,		// lookupTable[20]		0xD0
    	0,			// lookupTable[21]
    	0,			// lookupTable[22]
    	0,			// lookupTable[23]
    
    	0,			// lookupTable[24]		0xE0
    	0,			// lookupTable[25]
    	0,			// lookupTable[26]
    	0,			// lookupTable[27]
    
    	0,			// lookupTable[28]		0xF0
    	0,			// lookupTable[29]
    	0,			// lookupTable[30]
    	0,			// lookupTable[31]
    
    	0x081804D8,		// lookupTable[32]		0x100
    	0,			// lookupTable[33]
    	0,			// lookupTable[34]
    	0,			// lookupTable[35]
    
    	0x08180402,		// lookupTable[36]		0x110
    	0x00002004,		// lookupTable[37]
    	0,			// lookupTable[38]
    	0,			// lookupTable[39]
    
    	0,			// lookupTable[40]		0x120
    	0,			// lookupTable[41]
    	0,			// lookupTable[42]
    	0,			// lookupTable[43]
    
    	0x00000460,		// lookupTable[44]		0x130
    	0,			// lookupTable[45]
    	0,			// lookupTable[46]
    	0,			// lookupTable[47]
    
    	0,			// lookupTable[48]		0x140
    	0,			// lookupTable[49]
    	0,			// lookupTable[50]
    	0,			// lookupTable[51]
    
    	0,			// lookupTable[52]		0x150
    	0,			// lookupTable[53]
    	0,			// lookupTable[54]
    	0,			// lookupTable[55]
    
    	0,			// lookupTable[56]		0x160
    	0,			// lookupTable[57]
    	0,			// lookupTable[58]
    	0,			// lookupTable[59]
    
    	0,			// lookupTable[60]		0x170
    	0,			// lookupTable[61]
    	0,			// lookupTable[62]
    	0,			// lookupTable[63]
    
    	0,			// LUT 0: Read			0x180
    	0,			// LUT 1: ReadStatus
    	0,			// LUT 3: WriteEnable
    	0,			// LUT 5: EraseSector
    
    	0,			// LUT 9: PageProgram		0x190
    	0,			// LUT 11: ChipErase
    	0,			// LUT 15: Dummy
    	0,			// LUT unused?
    
    	0,			// LUT unused?			0x1A0
    	0,			// LUT unused?
    	0,			// LUT unused?
    	0,			// LUT unused?
    
    	0,			// reserved			0x1B0
    	0,			// reserved
    	0,			// reserved
    	0,			// reserved
    
    	// 64 byte Serial NOR configuration block, 8.6.3.2, page 346
    
    	256,			// pageSize			0x1C0
    	4096,			// sectorSize
    	1,			// ipCmdSerialClkFreq
    	0,			// reserved
    
    	0x00010000,		// block size			0x1D0
    	0,			// reserved
    	0,			// reserved
    	0,			// reserved
    
    	0,			// reserved			0x1E0
    	0,			// reserved
    	0,			// reserved
    	0,			// reserved
    
    	0,			// reserved			0x1F0
    	0,			// reserved
    	0,			// reserved
    	0			// reserved
    };
    Again not sure how much of these changes made the difference. Like the differences in address nor the align statement

    Edit: the lines in red are the ones I changed (edit or added)

  16. #16
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    23,051
    Likewise, NOW is the moment to bring up any issue you believe I might be able to fix quickly, like tonight only.

    If I can't reproduce a problem within 5 minutes, I definitely will not work on it right now. But if I can, and if it's not a major rewrite or tough design trade-off to solve it, odds are good I might get a quick fix in tonight.

  17. #17
    Senior Member
    Join Date
    May 2015
    Location
    USA
    Posts
    729

  18. #18
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    12,710
    Quote Originally Posted by KurtE View Post
    I did some hacking and my T4.1 programs now... More or less reverted some of it...

    my imxrt1062_t41.ld right now looks like:
    Code:
    SECTIONS
    {
    	.text.progmem : {
    		KEEP(*(.flashconfig))
    		FILL(0xFF)
    		. = ORIGIN(FLASH) + 0x1000;
    		KEEP(*(.ivt))
    		KEEP(*(.bootdata))
    		KEEP(*(.vectors))
    		KEEP(*(.startup))
    		*(.flashmem*)

    My bootdata.c looks like:
    Code:
    //#include "imxrt.h"
    
    #include <stdint.h>
    
    extern void ResetHandler(void);
    extern unsigned long _estack;
    extern unsigned long _flashimagelen;
    
    __attribute__ ((section(".vectors"), used))
    const uint32_t vector_table[2] = {
    #if defined(__IMXRT1062__)
    	0x20010000, // 64K DTCM for boot, ResetHandler configures stack after ITCM/DTCM setup
    #endif
    	(uint32_t)&ResetHandler
    };
    
    Edit: the lines in red are the ones I changed (edit or added)
    Have running BLINK and no delay - can edit and upload to work.

    I made just the edits shown above ( bootdata.c color coding was on existing code - it was the block above that was needed )

  19. #19
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    23,051
    Ugh, this makes no sense to me....

    But adding a single nop instruction at the beginning of ResetHandler (without the vector_table array in bootdata.c) also fixes the problem with Teensy 4.1.

  20. #20
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    23,051
    Even stranger, adding a single nop instruction *later* in ResetHandler also makes Teensy 4.1 work!

    Very mysterious......

  21. #21
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    12,710
    Nice to be in good company ... err - well not really ...

    Can confirm both blinks work with this in startup.c:
    Code:
    void ResetHandler(void)
    {
    	unsigned int i;
    
    #if defined(__IMXRT1062__)
    	asm volatile("nop": : :"memory"); // why oh why?
    	IOMUXC_GPR_GPR17 = (uint32_t)&_flexram_bank_config;
    Also confirm the only changes made before are as in p#18 - and they were undone to see the nop work.

  22. #22
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    12,710
    @Paul - for this post using T_1.54b1 : Schematic-error-in-T4-0-or-T4-1-on-SD-pins

    I put a 16GB SD card on a T_4.0 breakout ( the FRDM4236 ) and it worked to sdFat-Beta build and run Formatter and SdInfo.

    Then with above 'nop' edit place both sketches ran and built for T_4.1 as well.

    And for added fun - I restored startup.c to no added "nop"

    And put back the p#18 edited files, both sketches ran and built for T_4.1 as well.

    // why oh why?
    // why oh why?
    // why oh why?

    Indeed ...

    Then to complete the TriFecta of confusion: Restored the td1.54b1 sources
    sdFormatter - builds and fails to show on reset after upload, and on program push programs again and won't come up
    sdInfo - builds and fails to show on reset after upload, and on program push programs again and comes up running, but won't come up when unplugged/replugged to USB.

  23. #23
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    5,897
    Morning all
    Going to add to the confusion this morning. I retested BLINK on a T4.1 with compile options from smallest to fastest with the even stranger result that at all compile options BLINK WORKED!!!!!! Compiled and loaded. Also ran the sm_alloc simple sketch and worked as well. Note: This is with absolutely no changes to bootdata.c!

  24. #24
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    23,051
    Quote Originally Posted by KurtE View Post
    I also was seeing some screwy stuff when I was building using the Sublimetext with my app that displays information about the build... It is screwy again with the release.
    I'm pretty sure these problems are due to not-so-robust parsing of symbol table data, and lack of error detection. I'd recommend adding a boolean for each item which defaults to false. Set each boolean to true as your parser finds each number. Or maybe use a bitmask and set a particular bit as you find each item. Or if you don't want to add extra variables, at least initialize all of these with a highly unlikely non-zero number.

    Code:
            unsigned teensy_model_identifier = 0;
            unsigned stext = 0;
            unsigned etext = 0;
            unsigned sdata = 0;
            unsigned ebss = 0;
            unsigned flashimagelen = 0;
            unsigned heap_start = 0;
            unsigned flexram_bank_config = 0;
            unsigned estack = 0;
    Then after you're done parsing, check the booleans / bits / numbers to detect if your parser didn't find any of the required info. Probably best to print an error message about which info wasn't found and quit. If you go on to call printnumbers() when some info is missing, you'll get wrong results.

  25. #25
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    7,921
    Quote Originally Posted by PaulStoffregen View Post
    I'm pretty sure these problems are due to not-so-robust parsing of symbol table data, and lack of error detection. I'd recommend adding a boolean for each item which defaults to false. Set each boolean to true as your parser finds each number. Or maybe use a bitmask and set a particular bit as you find each item. Or if you don't want to add extra variables, at least initialize all of these with a highly unlikely non-zero number.

    Code:
            unsigned teensy_model_identifier = 0;
            unsigned stext = 0;
            unsigned etext = 0;
            unsigned sdata = 0;
            unsigned ebss = 0;
            unsigned flashimagelen = 0;
            unsigned heap_start = 0;
            unsigned flexram_bank_config = 0;
            unsigned estack = 0;
    Then after you're done parsing, check the booleans / bits / numbers to detect if your parser didn't find any of the required info. Probably best to print an error message about which info wasn't found and quit. If you go on to call printnumbers() when some info is missing, you'll get wrong results.
    Yep - it was a quick and dirty (originally from Frank ), that I have played with and find useful. I probably should cleaned up some. Especially how it depends on exact strings...
    Also maybe look to extend it's output some to maybe print out additional information (if we have it) of if the code has variables defined up in PSRAM...

    Besides may have to add section for MICROMOD

    EDIT: - I mentioned this app more because I noticed the change a couple of days ago and builds had stopped working with the github CORES linked into my builds and so I removed the link and went back to released version of cores and things worked again. I just assumed I must have screwed up something locally. Probably should have mentioned it then and debugged.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •