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

Thread: Teensyduino 1.55 Beta #2

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

    Teensyduino 1.55 Beta #2

    Here is a second beta test for Teensyduino 1.55.


    Linux 32 bit:
    https://www.pjrc.com/teensy/td_155-b...nstall.linux32

    Linux 64 bit:
    https://www.pjrc.com/teensy/td_155-b...nstall.linux64

    Linux ARM:
    https://www.pjrc.com/teensy/td_155-b...stall.linuxarm

    Linux ARM64:
    https://www.pjrc.com/teensy/td_155-b...l.linuxaarch64

    MacOS 10.10 to 11.x:
    https://www.pjrc.com/teensy/td_155-b...S_Catalina.zip

    MacOS 10.8 to 10.14:
    https://www.pjrc.com/teensy/td_155-b...inoInstall.dmg

    Windows:
    https://www.pjrc.com/teensy/td_155-b...inoInstall.exe


    Changes since Teensyduino 1.55-beta1:

    Support for Arduino 1.8.16
    Remove Arduino 1.8.14
    Fix teensy_size crash with very large programs (Frank B)
    Lockable Teensy support on MacOS
    Fix Windows 7 communication with locked chips
    File base class changed to File & FileImpl
    Update SD & LittleFS for FileImpl class
    Preliminary work for unusable locked chip to not stall Teensy Loader
    Fix startup crash when compiled with gcc version 10 (Frank B)
    Fix LittleFS_Program size (mjs513)
    Improve LittleFS examples & readme (mjs513)

  2. #2
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    7,551
    Downloaded and installed TD1.55b2 into Arduino IDE 1.8.16 with no issues on a Windows 10x64 home edition PC. No bluescreen warnings for TD but did get for Arduino IDE since I install via zip but that was no issue.

    Now to put all the FS-Date stuff back into SD/FS/SD-Fat and will be good to go,,,

  3. #3
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    9,564
    Downloaded, installed over 1.8.16, verified the test program for ST7735 runs on T4 (lockable not locked)
    Code:
    05:57:06.888 (loader): using encrypted ehex (optional - secure mode not yet locked)
    05:57:06.930 (loader): begin operation
    05:57:06.949 (reboot 8): Status: 1, 1, 1, 1, 0, 1, C:\Users\kurte\AppData\Local\Temp\arduino_build_190887\, graphicstest.ino.hex
    I also had it program the locked one (program button)...
    Code:
    06:03:19.590 (loader): elf binary data matches hex file
    06:03:19.596 (loader): elf file is for Teensy 4.0 (IMXRT1062)
    06:03:19.609 (loader): using encrypted ehex (required - secure mode is locked)
    06:03:19.661 (loader): begin operation
    Newer T4 - not beta boards:
    Code:
    06:05:50.344 (loader): ehex is valid, key hash: FB63C934 9683889D 3A20DB52 811A0593 83BEA33F 0F810CDF D6AD3C83 5DF1DA1A
    06:05:50.352 (loader): elf appears to be for Teensy 4.0 (IMXRT1062) (2031616 bytes)
    06:05:50.361 (loader): elf binary data matches hex file
    06:05:50.369 (loader): elf file is for Teensy 4.0 (IMXRT1062)
    06:05:50.391 (loader): using hex file - Teensy not configured for encryption
    06:05:50.444 (loader): begin operation
    06:05:50.478 (loader): flash, block=0, bs=1024, auto=1
    06:05:50.484 (loader): flash, block=1, bs=1024, auto=1

  4. #4
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    7,551
    Updated FS.h, SD.h to include the addition of FS-dates as well as updating SDFat to MAINTAIN_FREE_CLUSTER_COUNT.

    Ran a test USB_MTP_Datalogger example that Kurt and I was working on to test memory sticks on the locked T4. So using a 64GB stick I compiled and loaded it 10x to try and duplicate @defragster's issue in post https://forum.pjrc.com/threads/67989...l=1#post287847. RESULTS: No issues with the Dual LEDS or sketch hanging on upload or not loading.

    As for the MTP-USB test this is the windows explorer:
    Click image for larger version. 

Name:	Capture.PNG 
Views:	16 
Size:	43.0 KB 
ID:	25762

  5. #5
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    9,564
    @Paul - As for T4 not loading ehex and differences between the New T4 and the older OSHPark Purple T4:

    There is additional information up on the Beta1 thread starting I think at: https://forum.pjrc.com/threads/67989...l=1#post286906

    Quick summary: The new one ran the fuse write sketch
    Code:
    Writing public key hash
    public key hash is good :-)
    Writing secret key
    key written, setting config
    
    Testing Bus Encryption Engine
    Success: ciphertext decryption test passed :-)
    
    Error: JTAG can not be disabled
    
    Error: Secure mode can not be set
    The OSHPark one is a few posts later.

  6. #6
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    7,551
    Starting with an unsecured T4 but lockable T4.
    1. Verified that a normal sketch without any key.pem file in directory will upload
    Code:
    10:28:51.005 (loader): File "C:\Users\Merli\AppData\Local\Temp\arduino_build_28030\BlinkAnyPinT4.ino.hex", 38912 bytes
    10:28:51.007 (loader): elf appears to be for Teensy 4.0 (IMXRT1062) (2031616 bytes)
    10:28:51.007 (loader): elf binary data matches hex file
    10:28:51.007 (loader): elf file is for Teensy 4.0 (IMXRT1062)
    2 Process of locking T4.
    a. Generate Key still works to create a key.pem file in the Arduino Directory.
    b. Fuse Write Sketch (Step 2):
    Code:
    Writing public key hash
    public key hash is good :-)
    Writing secret key
    key written, setting config
    
    Testing Bus Encryption Engine
    Success: ciphertext decryption test passed :-)
    
    Notice: JTAG is still enabled
    
    Notice: Secure mode is not yet set, unencrypted
            programs are still allowed to run
    c. Uploaded Blink as a test to see what verbose said:
    Code:
    10:38:44.920 (loader): File "C:\Users\Merli\AppData\Local\Temp\arduino_build_577357\Blink.pde.hex", 18432 bytes
    10:38:44.925 (loader): File "C:\Users\Merli\AppData\Local\Temp\arduino_build_577357\Blink.pde.ehex", 18432 bytes, 4960 extra
    10:38:44.925 (loader): ehex is valid, key hash: Ccccccccccccc
    10:38:44.925 (loader): elf appears to be for Teensy 4.0 (IMXRT1062) (2031616 bytes)
    10:38:44.925 (loader): elf binary data matches hex file
    10:38:44.925 (loader): elf file is for Teensy 4.0 (IMXRT1062)
    10:38:44.925 (loader): using encrypted ehex (optional - secure mode not yet locked)
    10:38:44.960 (loader): begin operation
    d. Ran LittleFS_PROG with 1472x1024 blocks seems to work with just the secure fuses set. HMMM - was curious pressed the PGM button on T4 but failed to upload - port shows HID Device Maybe it looks like it works. Going to do a bit more on this before I lock the T4.

    UPDATE: Did a double check and it must have been me- tried it about 10 times dumping memory as a check. With and Without hitting the PGM button. In all cases it worked without a problem ... So ignore this as an error.

    d. Lock Security Sketch: TBD
    UPDATE
    : After running the lock security sketch showed the lock was successful
    Code:
    Set Lockable Teensy into secure mode
    Success: Secure mode set
    On upload of Blink as an test sketch and it failed -
    Code:
    1:41:18.011 (loader): nxp_write: success
    11:41:18.012 (loader):  security: 03  12 34 34 12
    11:41:18.013 (loader):  response: 04  33 30 E1 1E
    11:41:18.013 (loader): HAB security error 3330E11E
    11:41:18.013 (loader): Error detecting HAB mode
    11:41:18.020 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    11:41:18.021 (ports 5): nothing new, skipping HID & Ports enum
    Will attach the whole log

    Tried to reload blink sketch and Teensyloader is stuck on upload
    Code:
    Teensy Loader is currently busy with another operation (p).  Please try again in a few seconds, or restart Teensy Loader.
    quitexit status 1
    Error compiling for board Teensy 4.0.
    and the loader window shows the secure T4 picture.

    Hit program button but lost T4 as a port - cycled power and T4 came back on line. Recompiled and loaded BLINK and this time worked - second try.

    Second try showed:
    Code:
    11:47:49.010 (loader): elf file is for Teensy 4.0 (IMXRT1062)
    11:47:49.010 (loader): using encrypted ehex (required - secure mode is locked)
    11:47:49.045 (loader): begin operation
    Attached Files Attached Files
    Last edited by mjs513; 09-06-2021 at 03:50 PM.

  7. #7
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    7,551
    @mjs513 - Any chance I can talk you into retrying this test with the LittleFS filesystem size of 960K for secure mode or 1472K for normal mode?
    Confirmed on a locked T4 with b2 that program is erased on restart/power cycle when using 1472K and works when using 960k.

  8. #8
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    15,081
    Windows 11 here
    downloaded IDE 1.8.16 ZIP. :: >> Changelog doesn't look to suggest any issues for Teensy usage
    > unzip exec of Arduino.exe was Windows Blocked, had to 'Unblock'

    Downloaded TD 1.55.beta2
    > T_Install and T_Loader : No blocking or security hassles

    First build failed - Teensy Board T_3.2 didn't have enough room for RAM drive

    Board T_4.0 : Beta Locked
    IDE Verify of DMAMEM.ino uploaded with TyComm 'Ctrl+B' (Bootloader)
    -- make some DMAMEM drive data and TyComm Ctrl+R (Restart)
    > Teensy restarted and drive data was lost

    TLoader window for Locked T4 triggered some images 'Locked 1062', ... and noted FAILED programming?
    >> Repeated same twice more and it shows locked then no issue with attempted programming.
    Code:
    10:42:33.763 (ports 5): Begin, version=1.55-beta2, high-res time
    10:42:33.763 (ports 5): LoadLibrary cfgmgr32 ok
    10:42:33.763 (ports 5): LoadLibrary ntdll ok
    10:42:33.769 (ports 5): callback 0024
    10:42:33.769 (ports 5): callback 0081
    10:42:33.772 (ports 5): callback 0083
    10:42:33.772 (ports 5): hWnd = 2232986
    10:42:33.778 (ports 5): found_usb_device, id=\\?\usb#vid_16c0&pid_0483#10379970#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    10:42:33.778 (ports 5): found_usb_device, loc=usb:0/140000/0/6/1/1    Port_#0001.Hub_#0009
    10:42:33.778 (ports 5): found_usb_device, devinst=00000005
    10:42:33.778 (ports 5): found_usb_device, hwid=USB\VID_16C0&PID_0483&REV_0279
    10:42:33.778 (ports 5): add: loc=usb:0/140000/0/6/1/1, class=USB, vid=16C0, pid=0483, ver=0279, serial=10379970, dev=\\?\usb#vid_16c0&pid_0483#10379970#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    10:42:33.778 (ports 5):   comport_from_devinst_list attempt
    10:42:33.778 (ports 5):   found Ports in classguid_list at index=1
    10:42:33.778 (ports 5):   port COM9 found from devnode
    10:42:33.778 (ports 5): found_usb_device complete
    10:42:33.781 (ports 5): usb_add: usb:0/140000/0/6/1/1  COM9 (Teensy 4.0) Serial
    10:49:07.716 (post_compile 1): Begin, version=1.55-beta2, high-res time
    10:49:08.162 (loader): Teensy Loader 1.55-beta2, begin program
    10:49:08.304 (loader): File "C:\Users\Tim\AppData\Local\Temp\arduino_build_812954\RAM.ino.hex", 105472 bytes
    10:49:08.319 (loader): File "C:\Users\Tim\AppData\Local\Temp\arduino_build_812954\RAM.ino.ehex", 105472 bytes, 4960 extra
    10:49:08.320 (loader): ehex is valid, key hash: 85A79CC1 B7C7F866 7F5BB3ED 0F9C9BA5 B4149EE2 72846D35 86B63863 B0699942
    10:49:08.357 (loader): Listening for remote control on port 3149
    10:49:08.358 (loader): initialized, showing main window
    10:49:08.383 (loader): remote connection 1316 opened
    10:49:08.384 (post_compile 1): Sending command: comment: Teensyduino 1.55-beta2 - WINDOWS (teensy_post_compile)
    10:49:08.385 (loader): remote cmd from 1316: "comment: Teensyduino 1.55-beta2 - WINDOWS (teensy_post_compile)"
    10:49:08.388 (loader): remote cmd from 1316: "status"
    10:49:08.394 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:49:08.395 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:49:08.395 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:49:08.396 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/3
    10:49:08.396 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:49:08.397 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/3
    10:49:08.397 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/3
    10:49:08.398 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:49:08.402 (post_compile 1): Status: 1, 0, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_812954\, RAM.ino.hex
    10:49:08.402 (post_compile 1): Sending command: dir:C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\
    10:49:08.403 (loader): remote cmd from 1316: "dir:C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\"
    10:49:08.403 (loader): remote cmd from 1316: "file:DMAMEM.ino.hex"
    10:49:08.403 (post_compile 1): Sending command: file:DMAMEM.ino.hex
    10:49:08.421 (loader): File "C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\DMAMEM.ino.hex", 105472 bytes
    10:49:08.434 (loader): File "C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\DMAMEM.ino.ehex", 105472 bytes, 4960 extra
    10:49:08.434 (loader): ehex is valid, key hash: 85A79CC1 B7C7F866 7F5BB3ED 0F9C9BA5 B4149EE2 72846D35 86B63863 B0699942
    10:49:08.441 (loader): remote cmd from 1316: "status"
    10:49:08.444 (post_compile 1): Status: 1, 0, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:08.444 (post_compile 1): Sending command: auto:on
    10:49:08.446 (loader): remote cmd from 1316: "auto:on"
    10:49:08.446 (post_compile 1): Disconnect
    10:49:08.470 (loader): remote connection 1316 closed
    10:49:08.794 (post_compile 2): Begin, version=1.55-beta2, high-res time
    10:49:08.798 (loader): remote connection 1316 opened
    10:49:08.798 (loader): remote cmd from 1316: "comment: Teensyduino 1.55-beta2 - WINDOWS (teensy_post_compile)"
    10:49:08.799 (post_compile 2): Sending command: comment: Teensyduino 1.55-beta2 - WINDOWS (teensy_post_compile)
    10:49:08.799 (loader): remote cmd from 1316: "status"
    10:49:08.802 (loader): remote cmd from 1316: "dir:C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\"
    10:49:08.802 (loader): remote cmd from 1316: "file:DMAMEM.ino.hex"
    10:49:08.802 (post_compile 2): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:08.802 (post_compile 2): Sending command: dir:C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\
    10:49:08.802 (post_compile 2): Sending command: file:DMAMEM.ino.hex
    10:49:08.817 (loader): File "C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\DMAMEM.ino.hex", 105472 bytes
    10:49:08.830 (loader): File "C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\DMAMEM.ino.ehex", 105472 bytes, 4960 extra
    10:49:08.830 (loader): ehex is valid, key hash: 85A79CC1 B7C7F866 7F5BB3ED 0F9C9BA5 B4149EE2 72846D35 86B63863 B0699942
    10:49:08.833 (loader): remote cmd from 1316: "status"
    10:49:08.836 (post_compile 2): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:08.836 (post_compile 2): Disconnect
    10:49:08.849 (loader): remote connection 1316 closed
    10:49:08.849 (post_compile 3): Running teensy_reboot: "T:\Arduino_1.8.16_155\hardware\teensy\..\tools\teensy_reboot.exe" teensy_reboot.exe "-board=TEENSY40" "-port=usb:0/140000/0/6/1/1" "-portlabel=COM9 Serial" "-portprotocol=Teensy"
    10:49:08.850 (loader): remote connection 1380 opened
    10:49:08.888 (reboot 4): Begin, version=1.55-beta2, high-res time
    10:49:08.888 (reboot 4): location = usb:0/140000/0/6/1/1
    10:49:08.888 (reboot 4): portlabel = COM9 Serial
    10:49:08.888 (reboot 4): portprotocol = Teensy
    10:49:08.888 (reboot 4): Only location usb:0/140000/0/6/1/1 will be tried
    10:49:08.888 (reboot 4): LoadLibrary cfgmgr32 ok
    10:49:08.888 (reboot 4): LoadLibrary ntdll ok
    10:49:08.890 (reboot 4): found_usb_device, id=\\?\usb#vid_16c0&pid_0483#10379970#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    10:49:08.890 (reboot 4): found_usb_device, loc=usb:0/140000/0/6/1/1    Port_#0001.Hub_#0009
    10:49:08.890 (reboot 4): found_usb_device, devinst=00000005
    10:49:08.890 (reboot 4): found_usb_device, hwid=USB\VID_16C0&PID_0483&REV_0279
    10:49:08.890 (reboot 4): add: loc=usb:0/140000/0/6/1/1, class=USB, vid=16C0, pid=0483, ver=0279, serial=10379970, dev=\\?\usb#vid_16c0&pid_0483#10379970#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    10:49:08.890 (reboot 4):   comport_from_devinst_list attempt
    10:49:08.890 (reboot 4):   found Ports in classguid_list at index=1
    10:49:08.890 (reboot 4):   port COM9 found from devnode
    10:49:08.890 (reboot 4): found_usb_device complete
    10:49:08.899 (loader): remote connection 1384 opened
    10:49:08.899 (loader): remote cmd from 1384: "show:arduino_attempt_reboot"
    10:49:08.899 (loader): got request to show arduino rebooting message
    10:49:08.899 (reboot 4): found Teensy Loader, version 1.55
    10:49:08.899 (reboot 4): Sending command: show:arduino_attempt_reboot
    10:49:08.900 (loader): remote cmd from 1384: "comment: Teensyduino 1.55-beta2 - WINDOWS (teensy_reboot)"
    10:49:08.901 (reboot 4): Sending command: comment: Teensyduino 1.55-beta2 - WINDOWS (teensy_reboot)
    10:49:08.901 (loader): remote cmd from 1384: "status"
    10:49:08.903 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:08.903 (reboot 4): do_reset (serial) COM9
    10:49:08.904 (loader): remote cmd from 1384: "status"
    10:49:08.907 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:08.907 (reboot 4): status read, retry 0
    10:49:09.020 (loader): remote cmd from 1384: "status"
    10:49:09.023 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:09.023 (reboot 4): status read, retry 1
    10:49:09.130 (loader): remote cmd from 1384: "status"
    10:49:09.133 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:09.133 (reboot 4): status read, retry 2
    10:49:09.241 (loader): remote cmd from 1384: "status"
    10:49:09.244 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:09.244 (reboot 4): status read, retry 3
    10:49:09.351 (loader): remote cmd from 1384: "status"
    10:49:09.354 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:09.354 (reboot 4): status read, retry 4
    10:49:09.461 (loader): remote cmd from 1384: "status"
    10:49:09.464 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:09.464 (reboot 4): status read, retry 5
    10:49:09.571 (loader): remote cmd from 1384: "status"
    10:49:09.576 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:09.576 (reboot 4): status read, retry 6
    10:49:09.681 (loader): remote cmd from 1384: "status"
    10:49:09.686 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:09.686 (reboot 4): status read, retry 7
    10:49:09.791 (loader): remote cmd from 1384: "status"
    10:49:09.795 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:09.795 (reboot 4): status read, retry 8
    10:49:09.902 (loader): remote cmd from 1384: "status"
    10:49:09.905 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:09.905 (reboot 4): status read, retry 9
    10:49:10.012 (loader): remote cmd from 1384: "status"
    10:49:10.015 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:10.015 (reboot 4): status read, retry 10
    10:49:10.124 (loader): remote cmd from 1384: "status"
    10:49:10.127 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:10.127 (reboot 4): status read, retry 11
    10:49:10.234 (loader): remote cmd from 1384: "status"
    10:49:10.237 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:10.237 (reboot 4): status read, retry 12
    10:49:10.345 (loader): remote cmd from 1384: "status"
    10:49:10.348 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:10.348 (reboot 4): status read, retry 13
    10:49:10.453 (loader): remote cmd from 1384: "status"
    10:49:10.456 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:10.456 (reboot 4): status read, retry 14
    10:49:10.563 (loader): remote cmd from 1384: "status"
    10:49:10.566 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:10.566 (reboot 4): status read, retry 15
    10:49:10.675 (loader): remote cmd from 1384: "status"
    10:49:10.678 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:10.678 (reboot 4): status read, retry 16
    10:49:10.787 (loader): remote cmd from 1384: "status"
    10:49:10.791 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:10.791 (reboot 4): status read, retry 17
    10:49:10.899 (loader): remote cmd from 1384: "status"
    10:49:10.902 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:10.902 (reboot 4): status read, retry 18
    10:49:11.011 (loader): remote cmd from 1384: "status"
    10:49:11.014 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:11.014 (reboot 4): status read, retry 19
    10:49:11.121 (loader): remote cmd from 1384: "status"
    10:49:11.124 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:11.124 (reboot 4): status read, retry 20
    10:49:11.232 (loader): remote cmd from 1384: "status"
    10:49:11.235 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:11.235 (reboot 4): status read, retry 21
    10:49:11.344 (loader): remote cmd from 1384: "status"
    10:49:11.347 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:11.347 (reboot 4): status read, retry 22
    10:49:11.456 (loader): remote cmd from 1384: "status"
    10:49:11.459 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:11.459 (reboot 4): status read, retry 23
    10:49:11.568 (loader): remote cmd from 1384: "status"
    10:49:11.571 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:11.571 (reboot 4): status read, retry 24
    10:49:11.680 (loader): remote cmd from 1384: "status"
    10:49:11.684 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:11.684 (reboot 4): status read, retry 25
    10:49:11.792 (loader): remote cmd from 1384: "status"
    10:49:11.796 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:11.796 (reboot 4): status read, retry 26
    10:49:11.903 (loader): remote cmd from 1384: "status"
    10:49:11.907 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:11.907 (reboot 4): status read, retry 27
    10:49:12.015 (loader): remote cmd from 1384: "status"
    10:49:12.018 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:12.018 (reboot 4): status read, retry 28
    10:49:12.125 (loader): remote cmd from 1384: "status"
    10:49:12.128 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:12.128 (reboot 4): status read, retry 29
    10:49:12.233 (loader): remote cmd from 1384: "status"
    10:49:12.237 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:12.237 (reboot 4): status read, retry 30
    10:49:12.345 (loader): remote cmd from 1384: "status"
    10:49:12.349 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:12.349 (reboot 4): status read, retry 31
    10:49:12.455 (loader): remote cmd from 1384: "status"
    10:49:12.459 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:12.459 (reboot 4): status read, retry 32
    10:49:12.566 (loader): remote cmd from 1384: "status"
    10:49:12.570 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:12.570 (reboot 4): status read, retry 33
    10:49:12.678 (loader): remote cmd from 1384: "status"
    10:49:12.681 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:12.681 (reboot 4): status read, retry 34
    10:49:12.790 (loader): remote cmd from 1384: "status"
    10:49:12.794 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:12.794 (reboot 4): status read, retry 35
    10:49:12.902 (loader): remote cmd from 1384: "status"
    10:49:12.906 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:12.906 (reboot 4): status read, retry 36
    10:49:13.013 (loader): remote cmd from 1384: "status"
    10:49:13.017 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:13.017 (reboot 4): status read, retry 37
    10:49:13.124 (loader): remote cmd from 1384: "status"
    10:49:13.128 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:13.128 (reboot 4): status read, retry 38
    10:49:13.233 (loader): remote cmd from 1384: "status"
    10:49:13.237 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:13.237 (reboot 4): status read, retry 39
    10:49:13.344 (loader): remote cmd from 1384: "status"
    10:49:13.348 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:13.348 (reboot 4): status read, retry 40
    10:49:13.457 (loader): remote cmd from 1384: "status"
    10:49:13.461 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:13.461 (reboot 4): status read, retry 41
    10:49:13.568 (loader): remote cmd from 1384: "status"
    10:49:13.572 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:13.572 (reboot 4): status read, retry 42
    10:49:13.680 (loader): remote cmd from 1384: "status"
    10:49:13.684 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:13.684 (reboot 4): status read, retry 43
    10:49:13.791 (loader): remote cmd from 1384: "status"
    10:49:13.795 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:13.795 (reboot 4): status read, retry 44
    10:49:13.903 (loader): remote cmd from 1384: "status"
    10:49:13.907 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:13.907 (reboot 4): status read, retry 45
    10:49:14.014 (loader): remote cmd from 1384: "status"
    10:49:14.017 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:14.017 (reboot 4): status read, retry 46
    10:49:14.123 (loader): remote cmd from 1384: "status"
    10:49:14.127 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:14.127 (reboot 4): status read, retry 47
    10:49:14.235 (loader): remote cmd from 1384: "status"
    10:49:14.239 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:14.239 (reboot 4): status read, retry 48
    10:49:14.346 (loader): remote cmd from 1384: "status"
    10:49:14.350 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:14.350 (reboot 4): status read, retry 49
    10:49:14.454 (loader): remote cmd from 1384: "status"
    10:49:14.458 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:14.458 (reboot 4): status read, retry 50
    10:49:14.565 (loader): remote cmd from 1384: "status"
    10:49:14.569 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:14.569 (reboot 4): status read, retry 51
    10:49:14.677 (loader): remote cmd from 1384: "status"
    10:49:14.681 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:14.681 (reboot 4): status read, retry 52
    10:49:14.787 (loader): remote cmd from 1384: "status"
    10:49:14.791 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:14.791 (reboot 4): status read, retry 53
    10:49:14.899 (loader): remote cmd from 1384: "status"
    10:49:14.903 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:14.903 (reboot 4): status read, retry 54
    10:49:15.008 (loader): remote cmd from 1384: "status"
    10:49:15.011 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:15.011 (reboot 4): status read, retry 55
    10:49:15.120 (loader): remote cmd from 1384: "status"
    10:49:15.124 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:15.124 (reboot 4): status read, retry 56
    10:49:15.232 (loader): remote cmd from 1384: "status"
    10:49:15.235 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:15.235 (reboot 4): status read, retry 57
    10:49:15.343 (loader): remote cmd from 1384: "status"
    10:49:15.347 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:15.347 (reboot 4): status read, retry 58
    10:49:15.455 (loader): remote cmd from 1384: "status"
    10:49:15.459 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:15.459 (reboot 4): status read, retry 59
    10:49:15.567 (loader): remote cmd from 1384: "status"
    10:49:15.571 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:15.571 (reboot 4): status read, retry 60
    10:49:15.677 (loader): remote cmd from 1384: "status"
    10:49:15.681 (reboot 4): Status: 1, 1, 0, 0, 0, 0, C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\, DMAMEM.ino.hex
    10:49:15.681 (reboot 4): status read, retry 61
    10:49:15.788 (reboot 4): Teensy did not respond to a USB-based request to automatically reboot.
    10:49:15.792 (loader): remote connection 1384 closed
    10:49:15.795 (loader): remote connection 1380 closed
    10:49:24.021 (ports 5): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    10:49:24.029 (loader): remote connection 1460 opened
    10:49:24.031 (ports 5): remove: loc=usb:0/140000/0/6/1/1
    10:49:24.031 (ports 5): usb_remove: usb:0/140000/0/6/1/1
    10:49:24.031 (ports 5): nothing new, skipping HID & Ports enum
    10:49:24.040 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    10:49:24.041 (ports 5): nothing new, skipping HID & Ports enum
    10:49:24.041 (ports 5): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    10:49:24.041 (ports 5): nothing new, skipping HID & Ports enum
    10:49:24.201 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
    10:49:24.201 (ports 5): nothing new, skipping HID & Ports enum
    10:49:24.289 (loader): handle 624
    10:49:24.289 (loader): Device came online, code_size = 100
    10:49:24.289 (loader): Board is: NXP IMXRT1062 ROM
    10:49:24.289 (loader): begin operation
    10:49:24.311 (loader): File "C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\DMAMEM.ino.hex", 105472 bytes
    10:49:24.325 (loader): File "C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\DMAMEM.ino.ehex", 105472 bytes, 4960 extra
    10:49:24.325 (loader): ehex is valid, key hash: 85A79CC1 B7C7F866 7F5BB3ED 0F9C9BA5 B4149EE2 72846D35 86B63863 B0699942
    10:49:24.325 (loader): set background IMG_ONLINE
    10:49:24.328 (loader): state STATE_NXP_BEGIN
    10:49:24.328 (loader): nxp_write: handle 624, size=17  01 02 02 20 20
    10:49:24.328 (loader): nxp_write: success
    10:49:24.330 (loader):  security: 03  12 34 34 12
    10:49:24.331 (loader):  response: 04  12 8A 8A 12
    10:49:24.331 (loader): HAB locked secure mode
    10:49:24.332 (loader): state STATE_NXP_CLOSED
    10:49:24.333 (loader): sending ehex access, 4960 bytes
    10:49:24.333 (loader): nxp_write: handle 624, size=17  01 04 04 20 20
    10:49:24.333 (loader): nxp_write: success
    10:49:24.333 (loader): nxp_write: handle 624, size=1025  02 D1 00 20 40
    10:49:24.333 (loader): nxp_write: success
    10:49:24.333 (loader): nxp_write: handle 624, size=1025  02 20 46 1F 40
    10:49:24.333 (loader): nxp_write: success
    10:49:24.333 (loader): nxp_write: handle 624, size=1025  02 A9 57 3D EA
    10:49:24.334 (loader): nxp_write: success
    10:49:24.334 (loader): nxp_write: handle 624, size=1025  02 09 60 86 48
    10:49:24.334 (loader): nxp_write: success
    10:49:24.334 (loader): nxp_write: handle 624, size=1025  02 00 00 00 00
    10:49:24.334 (loader): nxp_write: success
    10:49:24.336 (loader):  security: 03  12 34 34 12
    10:49:24.337 (loader):  response: 04  88 88 88 88
    10:49:24.337 (loader): run it..
    10:49:24.337 (loader): nxp_write: handle 624, size=17  01 0B 0B 20 20
    10:49:24.337 (loader): nxp_write: success
    10:49:24.339 (loader):  security: 03  12 34 34 12
    10:49:24.352 (loader): end operation, total time = 0.063 seconds
    10:49:24.358 (ports 5): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    10:49:24.359 (ports 5): nothing new, skipping HID & Ports enum
    10:49:24.360 (loader): redraw timer set, image 80 to show for 2000 ms
    10:49:24.526 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:49:24.526 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:49:24.526 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:49:24.527 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/3
    10:49:24.527 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:49:24.527 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/3
    10:49:24.527 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/3
    10:49:24.528 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:49:24.546 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    10:49:24.546 (ports 5): nothing new, skipping HID & Ports enum
    10:49:24.765 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
    10:49:24.766 (ports 5): found_usb_device, id=\\?\usb#vid_16c0&pid_0478#000fd6ad#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    10:49:24.766 (ports 5): found_usb_device, loc=usb:0/140000/0/6/1/1    Port_#0001.Hub_#0009
    10:49:24.766 (ports 5): found_usb_device, hwid=USB\VID_16C0&PID_0478&REV_0107
    10:49:24.766 (ports 5): found_usb_device, devinst=0000001a
    10:49:24.766 (ports 5): add: loc=usb:0/140000/0/6/1/1, class=HID, vid=16C0, pid=0478, ver=0107, serial=000fd6ad, dev=\\?\usb#vid_16c0&pid_0478#000fd6ad#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    10:49:24.766 (ports 5): hiddev_from_devinst_list: iface=0
    10:49:24.766 (ports 5): found_usb_device complete
    10:49:24.767 (ports 5): usb_add: usb:0/140000/0/6/1/1  [no_device] (Teensy 4.0) Bootloader
    10:49:24.778 (loader): encryption is required, public key hash: 85A79CC1 B7C7F866 7F5BB3ED 0F9C9BA5 B4149EE2 72846D35 86B63863 B0699942
    10:49:24.778 (loader): Device came online, code_size = 2031616
    10:49:24.778 (loader): Board is: Teensy 4.0 (IMXRT1062), version 1.07
    10:49:24.794 (loader): File "C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\DMAMEM.ino.hex", 105472 bytes
    10:49:24.807 (loader): File "C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\DMAMEM.ino.ehex", 105472 bytes, 4960 extra
    10:49:24.808 (loader): ehex is valid, key hash: 85A79CC1 B7C7F866 7F5BB3ED 0F9C9BA5 B4149EE2 72846D35 86B63863 B0699942
    10:49:24.810 (loader): set background IMG_ONLINE
    10:49:24.830 (loader): File "C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\DMAMEM.ino.hex", 105472 bytes
    10:49:24.844 (loader): File "C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\DMAMEM.ino.ehex", 105472 bytes, 4960 extra
    10:49:24.844 (loader): ehex is valid, key hash: 85A79CC1 B7C7F866 7F5BB3ED 0F9C9BA5 B4149EE2 72846D35 86B63863 B0699942
    10:49:24.846 (loader): elf appears to be for Teensy 4.0 (IMXRT1062) (2031616 bytes)
    10:49:24.846 (loader): elf binary data matches hex file
    10:49:24.846 (loader): elf file is for Teensy 4.0 (IMXRT1062)
    10:49:24.846 (loader): using encrypted ehex (required - secure mode is locked)
    10:49:24.885 (loader): begin operation
    10:49:24.901 (loader): flash, block=0, bs=1024, auto=1
    10:49:24.901 (loader): flash, block=1, bs=1024, auto=1
    10:49:24.903 (loader): flash, block=2, bs=1024, auto=1
    10:49:25.206 (loader): flash, block=3, bs=1024, auto=1
    10:49:25.208 (loader): flash, block=4, bs=1024, auto=1
    10:49:25.213 (loader): flash, block=5, bs=1024, auto=1
    10:49:25.216 (loader): flash, block=6, bs=1024, auto=1
    10:49:25.219 (loader): flash, block=7, bs=1024, auto=1
    10:49:25.219 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    10:49:25.220 (ports 5): update_usb_device, devinst list change, old had 1, new has 2
    10:49:25.220 (ports 5): hiddev_from_devinst_list: iface=0
    10:49:25.220 (loader): flash, block=8, bs=1024, auto=1
    10:49:25.220 (ports 5): hid, found devinst=0000001B
    10:49:25.220 (ports 5): hid, path=\\?\hid#vid_16c0&pid_0478#8&31719e78&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
    10:49:25.220 (ports 5): hid,  opened handle
    10:49:25.221 (ports 5):  devinst=0000001B, location=usb:0/140000/0/6/1/1
    10:49:25.221 (ports 5):  vid=16C0, pid=0478, ver=0107, usepage=FF9C, use=0024
    10:49:25.221 (ports 5):  devpath=\\?\hid#vid_16c0&pid_0478#8&31719e78&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
    10:49:25.221 (ports 5): usb_add: usb:0/140000/0/6/1/1  hid#vid_16c0&pid_0478 (Teensy 4.0) Bootloader
    10:49:25.224 (loader): flash, block=9, bs=1024, auto=1
    10:49:25.227 (loader): flash, block=10, bs=1024, auto=1
    10:49:25.252 (loader): flash, block=11, bs=1024, auto=1
    10:49:25.254 (loader): flash, block=12, bs=1024, auto=1
    10:49:25.286 (loader): flash, block=13, bs=1024, auto=1
    10:49:25.292 (loader): flash, block=14, bs=1024, auto=1
    10:49:25.297 (loader): flash, block=15, bs=1024, auto=1
    10:49:25.301 (loader): flash, block=16, bs=1024, auto=1
    10:49:25.303 (loader): flash, block=17, bs=1024, auto=1
    10:49:25.304 (loader): flash, block=18, bs=1024, auto=1
    10:49:25.332 (loader): flash, block=19, bs=1024, auto=1
    10:49:25.333 (loader): flash, block=20, bs=1024, auto=1
    10:49:25.363 (loader): flash, block=21, bs=1024, auto=1
    10:49:25.364 (loader): flash, block=22, bs=1024, auto=1
    10:49:25.393 (loader): flash, block=23, bs=1024, auto=1
    10:49:25.394 (loader): flash, block=24, bs=1024, auto=1
    10:49:25.423 (loader): flash, block=25, bs=1024, auto=1
    10:49:25.424 (loader): flash, block=26, bs=1024, auto=1
    10:49:25.458 (loader): flash, block=27, bs=1024, auto=1
    10:49:25.459 (loader): flash, block=28, bs=1024, auto=1
    10:49:25.461 (loader): flash, block=29, bs=1024, auto=1
    10:49:25.463 (loader): flash, block=30, bs=1024, auto=1
    10:49:25.486 (loader): flash, block=31, bs=1024, auto=1
    10:49:25.487 (loader): flash, block=32, bs=1024, auto=1
    10:49:25.516 (loader): flash, block=33, bs=1024, auto=1
    10:49:25.517 (loader): flash, block=34, bs=1024, auto=1
    10:49:25.548 (loader): flash, block=35, bs=1024, auto=1
    10:49:25.549 (loader): flash, block=36, bs=1024, auto=1
    10:49:25.580 (loader): flash, block=37, bs=1024, auto=1
    10:49:25.581 (loader): flash, block=38, bs=1024, auto=1
    10:49:25.611 (loader): flash, block=39, bs=1024, auto=1
    10:49:25.612 (loader): flash, block=40, bs=1024, auto=1
    10:49:25.643 (loader): flash, block=41, bs=1024, auto=1
    10:49:25.644 (loader): flash, block=42, bs=1024, auto=1
    10:49:25.675 (loader): flash, block=43, bs=1024, auto=1
    10:49:25.676 (loader): flash, block=44, bs=1024, auto=1
    10:49:25.707 (loader): flash, block=45, bs=1024, auto=1
    10:49:25.708 (loader): flash, block=46, bs=1024, auto=1
    10:49:25.739 (loader): flash, block=47, bs=1024, auto=1
    10:49:25.740 (loader): flash, block=48, bs=1024, auto=1
    10:49:25.771 (loader): flash, block=49, bs=1024, auto=1
    10:49:25.772 (loader): flash, block=50, bs=1024, auto=1
    10:49:25.803 (loader): flash, block=51, bs=1024, auto=1
    10:49:25.804 (loader): flash, block=52, bs=1024, auto=1
    10:49:25.835 (loader): flash, block=53, bs=1024, auto=1
    10:49:25.836 (loader): flash, block=54, bs=1024, auto=1
    10:49:25.866 (loader): flash, block=55, bs=1024, auto=1
    10:49:25.867 (loader): flash, block=56, bs=1024, auto=1
    10:49:25.898 (loader): flash, block=57, bs=1024, auto=1
    10:49:25.899 (loader): flash, block=58, bs=1024, auto=1
    10:49:25.930 (loader): flash, block=59, bs=1024, auto=1
    10:49:25.931 (loader): flash, block=60, bs=1024, auto=1
    10:49:25.961 (loader): flash, block=61, bs=1024, auto=1
    10:49:25.962 (loader): flash, block=62, bs=1024, auto=1
    10:49:25.994 (loader): flash, block=63, bs=1024, auto=1
    10:49:25.995 (loader): flash, block=64, bs=1024, auto=1
    10:49:26.025 (loader): flash, block=65, bs=1024, auto=1
    10:49:26.027 (loader): flash, block=66, bs=1024, auto=1
    10:49:26.055 (loader): flash, block=67, bs=1024, auto=1
    10:49:26.056 (loader): flash, block=68, bs=1024, auto=1
    10:49:26.086 (loader): flash, block=69, bs=1024, auto=1
    10:49:26.087 (loader): flash, block=70, bs=1024, auto=1
    10:49:26.116 (loader): flash, block=71, bs=1024, auto=1
    10:49:26.117 (loader): flash, block=72, bs=1024, auto=1
    10:49:26.147 (loader): flash, block=73, bs=1024, auto=1
    10:49:26.149 (loader): flash, block=74, bs=1024, auto=1
    10:49:26.179 (loader): flash, block=75, bs=1024, auto=1
    10:49:26.180 (loader): flash, block=76, bs=1024, auto=1
    10:49:26.211 (loader): flash, block=77, bs=1024, auto=1
    10:49:26.212 (loader): flash, block=78, bs=1024, auto=1
    10:49:26.243 (loader): flash, block=79, bs=1024, auto=1
    10:49:26.244 (loader): flash, block=80, bs=1024, auto=1
    10:49:26.275 (loader): flash, block=81, bs=1024, auto=1
    10:49:26.277 (loader): flash, block=82, bs=1024, auto=1
    10:49:26.307 (loader): flash, block=83, bs=1024, auto=1
    10:49:26.309 (loader): flash, block=84, bs=1024, auto=1
    10:49:26.339 (loader): flash, block=85, bs=1024, auto=1
    10:49:26.340 (loader): flash, block=86, bs=1024, auto=1
    10:49:26.371 (loader): flash, block=87, bs=1024, auto=1
    10:49:26.372 (loader): flash, block=88, bs=1024, auto=1
    10:49:26.403 (loader): flash, block=89, bs=1024, auto=1
    10:49:26.404 (loader): flash, block=90, bs=1024, auto=1
    10:49:26.436 (loader): flash, block=91, bs=1024, auto=1
    10:49:26.437 (loader): flash, block=92, bs=1024, auto=1
    10:49:26.467 (loader): flash, block=93, bs=1024, auto=1
    10:49:26.468 (loader): flash, block=94, bs=1024, auto=1
    10:49:26.498 (loader): flash, block=95, bs=1024, auto=1
    10:49:26.499 (loader): flash, block=96, bs=1024, auto=1
    10:49:26.530 (loader): flash, block=97, bs=1024, auto=1
    10:49:26.531 (loader): flash, block=98, bs=1024, auto=1
    10:49:26.562 (loader): flash, block=99, bs=1024, auto=1
    10:49:26.563 (loader): flash, block=100, bs=1024, auto=1
    10:49:26.594 (loader): flash, block=101, bs=1024, auto=1
    10:49:26.595 (loader): flash, block=102, bs=1024, auto=1
    10:49:26.633 (loader): sending reboot
    10:49:26.633 (loader): begin wait_until_offline
    10:49:26.666 (ports 5): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    10:49:26.667 (ports 5): remove: loc=usb:0/140000/0/6/1/1
    10:49:26.667 (ports 5): usb_remove: usb:0/140000/0/6/1/1
    10:49:26.667 (ports 5): nothing new, skipping HID & Ports enum
    10:49:26.687 (loader): offline, waited 1
    10:49:26.687 (loader): end operation, total time = 1.801 seconds
    10:49:26.687 (loader): set background IMG_REBOOT_OK
    10:49:26.690 (loader): redraw timer set, image 14 to show for 1200 ms
    10:49:26.694 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    10:49:26.694 (ports 5): nothing new, skipping HID & Ports enum
    10:49:26.810 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:49:26.810 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:49:26.811 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:49:26.811 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/3
    10:49:26.811 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:49:26.812 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/3
    10:49:26.812 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/3
    10:49:26.812 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:49:27.098 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
    10:49:27.098 (ports 5): found_usb_device, id=\\?\usb#vid_16c0&pid_0483#10379970#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    10:49:27.098 (ports 5): found_usb_device, loc=usb:0/140000/0/6/1/1    Port_#0001.Hub_#0009
    10:49:27.098 (ports 5): found_usb_device, devinst=00000005
    10:49:27.098 (ports 5): found_usb_device, hwid=USB\VID_16C0&PID_0483&REV_0279
    10:49:27.098 (ports 5): add: loc=usb:0/140000/0/6/1/1, class=USB, vid=16C0, pid=0483, ver=0279, serial=10379970, dev=\\?\usb#vid_16c0&pid_0483#10379970#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    10:49:27.098 (ports 5):   comport_from_devinst_list attempt
    10:49:27.098 (ports 5): found_usb_device complete
    10:49:27.099 (ports 5): usb_add: usb:0/140000/0/6/1/1  [no_device] (Teensy 4.0) Serial
    10:49:27.174 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
    10:49:27.175 (ports 5): update_usb_device, devinst list change, old had 1, new has 2
    10:49:27.175 (ports 5):   comport_from_devinst_list attempt
    10:49:27.175 (ports 5):   found Ports in classguid_list at index=1
    10:49:27.175 (ports 5):   port COM9 found from devnode
    10:49:27.175 (ports 5): usb_add: usb:0/140000/0/6/1/1  COM9 (Teensy 4.0) Serial
    10:49:27.888 (loader): redraw, image 9
    10:49:29.168 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    10:49:29.169 (ports 5): nothing new, skipping HID & Ports enum
    10:49:36.108 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    10:49:36.114 (ports 5): remove: loc=usb:0/140000/0/6/1/1
    10:49:36.114 (ports 5): usb_remove: usb:0/140000/0/6/1/1
    10:49:36.114 (ports 5): nothing new, skipping HID & Ports enum
    10:49:36.127 (ports 5): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    10:49:36.128 (ports 5): nothing new, skipping HID & Ports enum
    10:49:36.143 (ports 5): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    10:49:36.143 (ports 5): nothing new, skipping HID & Ports enum
    10:49:36.316 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    10:49:36.316 (ports 5): nothing new, skipping HID & Ports enum
    10:49:36.321 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
    10:49:36.351 (ports 5): nothing new, skipping HID & Ports enum
    10:49:36.416 (loader): handle 590
    10:49:36.416 (loader): Device came online, code_size = 100
    10:49:36.416 (loader): Board is: NXP IMXRT1062 ROM
    10:49:36.416 (loader): begin operation
    10:49:36.433 (loader): File "C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\DMAMEM.ino.hex", 105472 bytes
    10:49:36.453 (loader): File "C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\DMAMEM.ino.ehex", 105472 bytes, 4960 extra
    10:49:36.453 (loader): ehex is valid, key hash: 85A79CC1 B7C7F866 7F5BB3ED 0F9C9BA5 B4149EE2 72846D35 86B63863 B0699942
    10:49:36.454 (loader): set background IMG_ONLINE
    10:49:36.460 (loader): state STATE_NXP_BEGIN
    10:49:36.460 (loader): nxp_write: handle 590, size=17  01 02 02 20 20
    10:49:36.460 (loader): nxp_write: success
    10:49:36.462 (loader):  security: 03  12 34 34 12
    10:49:36.463 (loader):  response: 04  12 8A 8A 12
    10:49:36.463 (loader): HAB locked secure mode
    10:49:36.465 (loader): state STATE_NXP_CLOSED
    10:49:36.465 (loader): sending ehex access, 4960 bytes
    10:49:36.465 (loader): nxp_write: handle 590, size=17  01 04 04 20 20
    10:49:36.465 (loader): nxp_write: success
    10:49:36.465 (loader): nxp_write: handle 590, size=1025  02 D1 00 20 40
    10:49:36.466 (loader): nxp_write: success
    10:49:36.466 (loader): nxp_write: handle 590, size=1025  02 20 46 1F 40
    10:49:36.466 (loader): nxp_write: success
    10:49:36.466 (loader): nxp_write: handle 590, size=1025  02 A9 57 3D EA
    10:49:36.466 (loader): nxp_write: success
    10:49:36.466 (loader): nxp_write: handle 590, size=1025  02 09 60 86 48
    10:49:36.467 (loader): nxp_write: success
    10:49:36.467 (loader): nxp_write: handle 590, size=1025  02 00 00 00 00
    10:49:36.467 (loader): nxp_write: success
    10:49:36.469 (loader):  security: 03  12 34 34 12
    10:49:36.470 (loader):  response: 04  88 88 88 88
    10:49:36.470 (loader): run it..
    10:49:36.470 (loader): nxp_write: handle 590, size=17  01 0B 0B 20 20
    10:49:36.470 (loader): nxp_write: success
    10:49:36.472 (loader):  security: 03  12 34 34 12
    10:49:36.484 (loader): end operation, total time = 0.068 seconds
    10:49:36.487 (loader): redraw timer set, image 80 to show for 2000 ms
    10:49:36.489 (ports 5): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    10:49:36.490 (ports 5): nothing new, skipping HID & Ports enum
    10:49:36.666 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:49:36.666 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:49:36.666 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:49:36.666 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/3
    10:49:36.666 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:49:36.666 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/3
    10:49:36.667 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/3
    10:49:36.667 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:49:36.744 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    10:49:36.744 (ports 5): nothing new, skipping HID & Ports enum
    10:49:36.894 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
    10:49:36.895 (ports 5): found_usb_device, id=\\?\usb#vid_16c0&pid_0478#000fd6ad#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    10:49:36.895 (ports 5): found_usb_device, loc=usb:0/140000/0/6/1/1    Port_#0001.Hub_#0009
    10:49:36.895 (ports 5): found_usb_device, hwid=USB\VID_16C0&PID_0478&REV_0107
    10:49:36.895 (ports 5): found_usb_device, devinst=0000001a
    10:49:36.895 (ports 5): add: loc=usb:0/140000/0/6/1/1, class=HID, vid=16C0, pid=0478, ver=0107, serial=000fd6ad, dev=\\?\usb#vid_16c0&pid_0478#000fd6ad#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    10:49:36.895 (ports 5): hiddev_from_devinst_list: iface=0
    10:49:36.896 (ports 5): found_usb_device complete
    10:49:36.897 (ports 5): usb_add: usb:0/140000/0/6/1/1  [no_device] (Teensy 4.0) Bootloader
    10:49:36.917 (loader): encryption is required, public key hash: 85A79CC1 B7C7F866 7F5BB3ED 0F9C9BA5 B4149EE2 72846D35 86B63863 B0699942
    10:49:36.917 (loader): Device came online, code_size = 2031616
    10:49:36.917 (loader): Board is: Teensy 4.0 (IMXRT1062), version 1.07
    10:49:36.933 (loader): File "C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\DMAMEM.ino.hex", 105472 bytes
    10:49:36.946 (loader): File "C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\DMAMEM.ino.ehex", 105472 bytes, 4960 extra
    10:49:36.947 (loader): ehex is valid, key hash: 85A79CC1 B7C7F866 7F5BB3ED 0F9C9BA5 B4149EE2 72846D35 86B63863 B0699942
    10:49:36.950 (loader): set background IMG_ONLINE
    10:49:36.969 (loader): File "C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\DMAMEM.ino.hex", 105472 bytes
    10:49:36.981 (loader): File "C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\DMAMEM.ino.ehex", 105472 bytes, 4960 extra
    10:49:36.982 (loader): ehex is valid, key hash: 85A79CC1 B7C7F866 7F5BB3ED 0F9C9BA5 B4149EE2 72846D35 86B63863 B0699942
    10:49:36.983 (loader): elf appears to be for Teensy 4.0 (IMXRT1062) (2031616 bytes)
    10:49:36.983 (loader): elf binary data matches hex file
    10:49:36.983 (loader): elf file is for Teensy 4.0 (IMXRT1062)
    10:49:36.983 (loader): using encrypted ehex (required - secure mode is locked)
    10:49:37.021 (loader): begin operation
    10:49:37.036 (ports 5): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    10:49:37.037 (ports 5): remove: loc=usb:0/140000/0/6/1/1
    10:49:37.037 (ports 5): usb_remove: usb:0/140000/0/6/1/1
    10:49:37.037 (ports 5): nothing new, skipping HID & Ports enum
    10:49:37.041 (loader): flash, block=0, bs=1024, auto=1
    10:49:37.447 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
    10:49:37.450 (ports 5): found_usb_device, id=\\?\usb#vid_16c0&pid_0483#10379970#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    10:49:37.450 (ports 5): found_usb_device, loc=usb:0/140000/0/6/1/1    Port_#0001.Hub_#0009
    10:49:37.450 (ports 5): found_usb_device, hwid=USB\VID_16C0&PID_0483&REV_0279
    10:49:37.450 (ports 5): found_usb_device, devinst=00000005
    10:49:37.450 (ports 5): add: loc=usb:0/140000/0/6/1/1, class=USB, vid=16C0, pid=0483, ver=0279, serial=10379970, dev=\\?\usb#vid_16c0&pid_0483#10379970#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    10:49:37.450 (ports 5):   comport_from_devinst_list attempt
    10:49:37.450 (ports 5):   found Ports in classguid_list at index=1
    10:49:37.450 (ports 5):   port COM9 found from devnode
    10:49:37.450 (ports 5): found_usb_device complete
    10:49:37.451 (ports 5): usb_add: usb:0/140000/0/6/1/1  COM9 (Teensy 4.0) Serial
    10:49:42.473 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
    10:49:42.473 (ports 5): nothing new, skipping HID & Ports enum
    10:49:43.054 (loader): HID/win32:   write failure, num = 0
    10:49:43.054 (loader): program: write error
    10:49:43.054 (loader): HID/win32: HidD_GetPreparsedData failed, device assumed disconnected
    10:49:43.060 (loader): end operation, total time = 6.038 seconds
    10:49:43.061 (loader): set background IMG_DOWNLOAD_ERROR
    10:49:43.062 (loader): redraw timer set, image 11 to show for 4000 ms
    10:49:43.069 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    10:49:43.070 (ports 5): nothing new, skipping HID & Ports enum
    10:49:43.073 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:49:43.073 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:49:43.074 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:49:43.074 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/3
    10:49:43.074 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:49:43.074 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/3
    10:49:43.075 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/3
    10:49:43.075 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:49:43.305 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    10:49:43.306 (ports 5): nothing new, skipping HID & Ports enum
    10:49:47.072 (loader): redraw, image 9
    10:49:51.656 (loader): Verbose Info event
    10:58:16.544 (ports 5): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    10:58:16.546 (ports 5): remove: loc=usb:0/140000/0/6/1/1
    10:58:16.546 (ports 5): usb_remove: usb:0/140000/0/6/1/1
    10:58:16.546 (ports 5): nothing new, skipping HID & Ports enum
    10:58:16.613 (ports 5): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    10:58:16.614 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    10:58:16.614 (ports 5): nothing new, skipping HID & Ports enum
    10:58:16.727 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
    10:58:16.728 (ports 5): nothing new, skipping HID & Ports enum
    10:58:16.820 (loader): handle 644
    10:58:16.826 (loader): Device came online, code_size = 100
    10:58:16.838 (loader): Board is: NXP IMXRT1062 ROM
    10:58:16.847 (loader): begin operation
    10:58:16.873 (loader): File "C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\DMAMEM.ino.hex", 105472 bytes
    10:58:16.897 (loader): File "C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\DMAMEM.ino.ehex", 105472 bytes, 4960 extra
    10:58:16.905 (loader): ehex is valid, key hash: 85A79CC1 B7C7F866 7F5BB3ED 0F9C9BA5 B4149EE2 72846D35 86B63863 B0699942
    10:58:16.916 (loader): set background IMG_ONLINE
    10:58:16.932 (loader): state STATE_NXP_BEGIN
    10:58:16.938 (loader): nxp_write: handle 644, size=17  01 02 02 20 20
    10:58:16.950 (loader): nxp_write: success
    10:58:16.959 (loader):  security: 03  12 34 34 12
    10:58:16.968 (loader):  response: 04  12 8A 8A 12
    10:58:16.979 (loader): HAB locked secure mode
    10:58:16.986 (loader): state STATE_NXP_CLOSED
    10:58:16.996 (loader): sending ehex access, 4960 bytes
    10:58:17.005 (loader): nxp_write: handle 644, size=17  01 04 04 20 20
    10:58:17.016 (loader): nxp_write: success
    10:58:17.027 (loader): nxp_write: handle 644, size=1025  02 D1 00 20 40
    10:58:17.033 (loader): nxp_write: success
    10:58:17.043 (loader): nxp_write: handle 644, size=1025  02 20 46 1F 40
    10:58:17.051 (loader): nxp_write: success
    10:58:17.060 (loader): nxp_write: handle 644, size=1025  02 A9 57 3D EA
    10:58:17.070 (loader): nxp_write: success
    10:58:17.086 (loader): nxp_write: handle 644, size=1025  02 09 60 86 48
    10:58:17.107 (loader): nxp_write: success
    10:58:17.133 (loader): nxp_write: handle 644, size=1025  02 00 00 00 00
    10:58:17.139 (loader): nxp_write: success
    10:58:17.151 (loader):  security: 03  12 34 34 12
    10:58:17.160 (loader):  response: 04  88 88 88 88
    10:58:17.171 (loader): run it..
    10:58:17.187 (loader): nxp_write: handle 644, size=17  01 0B 0B 20 20
    10:58:17.218 (loader): nxp_write: success
    10:58:17.223 (loader):  security: 03  12 34 34 12
    10:58:17.234 (loader): end operation, total time = 0.378 seconds
    10:58:17.240 (ports 5): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    10:58:17.241 (ports 5): nothing new, skipping HID & Ports enum
    10:58:17.251 (loader): redraw timer set, image 80 to show for 2000 ms
    10:58:17.296 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    10:58:17.297 (ports 5): nothing new, skipping HID & Ports enum
    10:58:17.341 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:58:17.350 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:58:17.358 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:58:17.365 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/3
    10:58:17.374 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:58:17.381 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/3
    10:58:17.390 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/3
    10:58:17.399 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:58:17.539 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    10:58:17.539 (ports 5): nothing new, skipping HID & Ports enum
    10:58:17.669 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
    10:58:17.670 (ports 5): found_usb_device, id=\\?\usb#vid_16c0&pid_0478#000fd6ad#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    10:58:17.670 (ports 5): found_usb_device, loc=usb:0/140000/0/6/1/1    Port_#0001.Hub_#0009
    10:58:17.670 (ports 5): found_usb_device, hwid=USB\VID_16C0&PID_0478&REV_0107
    10:58:17.670 (ports 5): found_usb_device, devinst=0000001a
    10:58:17.670 (ports 5): add: loc=usb:0/140000/0/6/1/1, class=HID, vid=16C0, pid=0478, ver=0107, serial=000fd6ad, dev=\\?\usb#vid_16c0&pid_0478#000fd6ad#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    10:58:17.671 (ports 5): hiddev_from_devinst_list: iface=0
    10:58:17.672 (ports 5): found_usb_device complete
    10:58:17.673 (ports 5): usb_add: usb:0/140000/0/6/1/1  [no_device] (Teensy 4.0) Bootloader
    10:58:17.816 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    10:58:17.816 (ports 5): remove: loc=usb:0/140000/0/6/1/1
    10:58:17.816 (ports 5): usb_remove: usb:0/140000/0/6/1/1
    10:58:17.816 (ports 5): nothing new, skipping HID & Ports enum
    10:58:17.833 (ports 5): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    10:58:17.834 (ports 5): nothing new, skipping HID & Ports enum
    10:58:18.113 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    10:58:18.114 (ports 5): nothing new, skipping HID & Ports enum
    10:58:18.267 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
    10:58:18.269 (ports 5): found_usb_device, id=\\?\usb#vid_16c0&pid_0483#10379970#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    10:58:18.269 (ports 5): found_usb_device, loc=usb:0/140000/0/6/1/1    Port_#0001.Hub_#0009
    10:58:18.269 (ports 5): found_usb_device, hwid=USB\VID_16C0&PID_0483&REV_0279
    10:58:18.269 (ports 5): found_usb_device, devinst=00000005
    10:58:18.269 (ports 5): add: loc=usb:0/140000/0/6/1/1, class=USB, vid=16C0, pid=0483, ver=0279, serial=10379970, dev=\\?\usb#vid_16c0&pid_0483#10379970#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    10:58:18.269 (ports 5):   comport_from_devinst_list attempt
    10:58:18.269 (ports 5): found_usb_device complete
    10:58:18.270 (ports 5): usb_add: usb:0/140000/0/6/1/1  [no_device] (Teensy 4.0) Serial
    10:58:18.578 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    10:58:18.578 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
    10:58:18.579 (ports 5): update_usb_device, devinst list change, old had 1, new has 2
    10:58:18.579 (ports 5):   comport_from_devinst_list attempt
    10:58:18.579 (ports 5):   found Ports in classguid_list at index=1
    10:58:18.579 (ports 5):   port COM9 found from devnode
    10:58:18.579 (ports 5): usb_add: usb:0/140000/0/6/1/1  COM9 (Teensy 4.0) Serial
    10:58:19.019 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    10:58:19.020 (ports 5): nothing new, skipping HID & Ports enum
    10:58:19.245 (loader): redraw, image 9
    10:59:17.156 (ports 5): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    10:59:17.157 (ports 5): remove: loc=usb:0/140000/0/6/1/1
    10:59:17.157 (ports 5): usb_remove: usb:0/140000/0/6/1/1
    10:59:17.157 (ports 5): nothing new, skipping HID & Ports enum
    10:59:17.215 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    10:59:17.215 (ports 5): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    10:59:17.216 (ports 5): nothing new, skipping HID & Ports enum
    10:59:17.340 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
    10:59:17.341 (ports 5): nothing new, skipping HID & Ports enum
    10:59:17.378 (loader): handle 6d4
    10:59:17.384 (loader): Device came online, code_size = 100
    10:59:17.394 (loader): Board is: NXP IMXRT1062 ROM
    10:59:17.403 (loader): begin operation
    10:59:17.429 (loader): File "C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\DMAMEM.ino.hex", 105472 bytes
    10:59:17.451 (loader): File "C:\Users\Tim\AppData\Local\Temp\arduino_build_689021\DMAMEM.ino.ehex", 105472 bytes, 4960 extra
    10:59:17.461 (loader): ehex is valid, key hash: 85A79CC1 B7C7F866 7F5BB3ED 0F9C9BA5 B4149EE2 72846D35 86B63863 B0699942
    10:59:17.470 (loader): set background IMG_ONLINE
    10:59:17.489 (loader): state STATE_NXP_BEGIN
    10:59:17.500 (loader): nxp_write: handle 6d4, size=17  01 02 02 20 20
    10:59:17.518 (loader): nxp_write: success
    10:59:17.526 (loader):  security: 03  12 34 34 12
    10:59:17.554 (loader):  response: 04  12 8A 8A 12
    10:59:17.566 (loader): HAB locked secure mode
    10:59:17.578 (loader): state STATE_NXP_CLOSED
    10:59:17.603 (loader): sending ehex access, 4960 bytes
    10:59:17.609 (loader): nxp_write: handle 6d4, size=17  01 04 04 20 20
    10:59:17.639 (loader): nxp_write: success
    10:59:17.649 (loader): nxp_write: handle 6d4, size=1025  02 D1 00 20 40
    10:59:17.658 (loader): nxp_write: success
    10:59:17.667 (loader): nxp_write: handle 6d4, size=1025  02 20 46 1F 40
    10:59:17.676 (loader): nxp_write: success
    10:59:17.684 (loader): nxp_write: handle 6d4, size=1025  02 A9 57 3D EA
    10:59:17.693 (loader): nxp_write: success
    10:59:17.704 (loader): nxp_write: handle 6d4, size=1025  02 09 60 86 48
    10:59:17.713 (loader): nxp_write: success
    10:59:17.721 (loader): nxp_write: handle 6d4, size=1025  02 00 00 00 00
    10:59:17.729 (loader): nxp_write: success
    10:59:17.737 (loader):  security: 03  12 34 34 12
    10:59:17.745 (loader):  response: 04  88 88 88 88
    10:59:17.754 (loader): run it..
    10:59:17.762 (loader): nxp_write: handle 6d4, size=17  01 0B 0B 20 20
    10:59:17.770 (loader): nxp_write: success
    10:59:17.779 (loader):  security: 03  12 34 34 12
    10:59:17.787 (loader): end operation, total time = 0.375 seconds
    10:59:17.791 (ports 5): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    10:59:17.792 (ports 5): nothing new, skipping HID & Ports enum
    10:59:17.799 (loader): redraw timer set, image 80 to show for 2000 ms
    10:59:17.843 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    10:59:17.844 (ports 5): nothing new, skipping HID & Ports enum
    10:59:17.872 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:59:17.878 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:59:17.886 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:59:17.894 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/3
    10:59:17.901 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:59:17.909 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/3
    10:59:17.918 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/3
    10:59:17.926 (loader): HID/win32:  vid:046D pid:C52B ver:1211  usb:0/140000/0/9/4/2/4
    10:59:18.055 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    10:59:18.055 (ports 5): nothing new, skipping HID & Ports enum
    10:59:18.195 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
    10:59:18.197 (ports 5): found_usb_device, id=\\?\usb#vid_16c0&pid_0478#000fd6ad#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    10:59:18.197 (ports 5): found_usb_device, loc=usb:0/140000/0/6/1/1    Port_#0001.Hub_#0009
    10:59:18.197 (ports 5): found_usb_device, hwid=USB\VID_16C0&PID_0478&REV_0107
    10:59:18.197 (ports 5): found_usb_device, devinst=0000001a
    10:59:18.197 (ports 5): add: loc=usb:0/140000/0/6/1/1, class=HID, vid=16C0, pid=0478, ver=0107, serial=000fd6ad, dev=\\?\usb#vid_16c0&pid_0478#000fd6ad#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    10:59:18.197 (ports 5): hiddev_from_devinst_list: iface=0
    10:59:18.197 (ports 5): found_usb_device complete
    10:59:18.198 (ports 5): usb_add: usb:0/140000/0/6/1/1  [no_device] (Teensy 4.0) Bootloader
    10:59:18.296 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    10:59:18.297 (ports 5): hid, found devinst=0000001B
    10:59:18.297 (ports 5): hid, path=\\?\hid#vid_16c0&pid_0478#8&31719e78&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
    10:59:18.297 (ports 5): hid,  opened handle
    10:59:18.297 (ports 5):  devinst=0000001B, location=usb:0/140000/0/6/1/1
    10:59:18.297 (ports 5):  vid=16C0, pid=0478, ver=0107, usepage=FF9C, use=0024
    10:59:18.297 (ports 5):  devpath=\\?\hid#vid_16c0&pid_0478#8&31719e78&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
    10:59:18.298 (ports 5): usb_add: usb:0/140000/0/6/1/1  hid#vid_16c0&pid_0478 (Teensy 4.0) Bootloader
    10:59:18.331 (ports 5): WM_DEVICECHANGE DBT_DEVICEREMOVECOMPLETE
    10:59:18.332 (ports 5): remove: loc=usb:0/140000/0/6/1/1
    10:59:18.332 (ports 5): usb_remove: usb:0/140000/0/6/1/1
    10:59:18.332 (ports 5): nothing new, skipping HID & Ports enum
    10:59:18.509 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    10:59:18.509 (ports 5): nothing new, skipping HID & Ports enum
    10:59:18.733 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    10:59:18.733 (ports 5): nothing new, skipping HID & Ports enum
    10:59:18.735 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
    10:59:18.736 (ports 5): found_usb_device, id=\\?\usb#vid_16c0&pid_0483#10379970#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    10:59:18.736 (ports 5): found_usb_device, loc=usb:0/140000/0/6/1/1    Port_#0001.Hub_#0009
    10:59:18.736 (ports 5): found_usb_device, hwid=USB\VID_16C0&PID_0483&REV_0279
    10:59:18.736 (ports 5): found_usb_device, devinst=00000005
    10:59:18.736 (ports 5): add: loc=usb:0/140000/0/6/1/1, class=USB, vid=16C0, pid=0483, ver=0279, serial=10379970, dev=\\?\usb#vid_16c0&pid_0483#10379970#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
    10:59:18.736 (ports 5):   comport_from_devinst_list attempt
    10:59:18.736 (ports 5): found_usb_device complete
    10:59:18.737 (ports 5): usb_add: usb:0/140000/0/6/1/1  [no_device] (Teensy 4.0) Serial
    10:59:18.864 (ports 5): WM_DEVICECHANGE DBT_DEVICEARRIVAL
    10:59:18.864 (ports 5): update_usb_device, devinst list change, old had 1, new has 2
    10:59:18.864 (ports 5):   comport_from_devinst_list attempt
    10:59:18.864 (ports 5):   found Ports in classguid_list at index=1
    10:59:18.864 (ports 5):   port COM9 found from devnode
    10:59:18.865 (ports 5): usb_add: usb:0/140000/0/6/1/1  COM9 (Teensy 4.0) Serial
    10:59:18.954 (ports 5): WM_DEVICECHANGE DBT_DEVNODES_CHANGED
    10:59:18.955 (ports 5): nothing new, skipping HID & Ports enum
    10:59:19.798 (loader): redraw, image 9

  9. #9
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    15,081
    Returned to IDE Verify of Code4Code and it worked on the 4 T_4's: 1 Locked and 1 Secure Beta, and two production units. Will let them run and temp stabilize - though still not thinking TEMP is an issue related to Locking - given Production variability.

    Update on this post from TD1.55 Beta1 thread:
    The following tested to be true with Beta 2 of TD 1.55 on Locked

    However: It only applies to a LOCKED T4? On a production T_4.0 the LittleFS drive does persist using the second drive space alloc method: DMAMEM char LFS_BUF[ LFS_BUF_SIZE ];

    Will get back to this - seems the 32KB HAB Keepout area may not be enough? It is as awkward to program 32KB skip as the Hardcoded Ref from top of RAM2 Ptr* method - wastes 32KB and fails.

    Quote Originally Posted by defragster View Post
    @Paul
    I just saw the DUAL LED's flash again on Bootloader request (third time?). Perhaps the Orange noticeably ahead of the RED - but both then persist ON some second(s) of time and go out ... and repeat for several cycles.
    > No repro on trying: 10 Button presses, 10 tries with TLOader not in AUTO mode hitting 'Program' icon.

    LittleFS for DMAMEM.ino I find this to work reliably across Restart and Upload:
    Code:
    #define LFS_BUF_SIZE 430*1024 // Define the desired size that fits in DMAMEM
    void *LFS_BUF = (void*)(0x2027ff00-LFS_BUF_SIZE); // RAM2 Addr :: typically survives Restart/Upload, avoid lower 32KB 0x2020000, upper CrashReport area
         // ...
    void setup() {
      	if (!myfs.begin(LFS_BUF, LFS_BUF_SIZE)) {
    And this - Manually jumping the 32KB HAB and not using the explicit end of RAM2 ptr does not survive:
    <edit>:
    - Does survive only software commanded 'R'eset Teensy from sketch
    - does not survive Button upload of same code
    - does not survive TyComm bootloader upload of same code
    - does not survive TyComm USB commanded Reset
    Code:
    #define LFS_BUF_SIZE 430*1024 // Define the desired size that fits in DMAMEM
    #define BUF_OFFSET 32768 // Must be 32768 when using DMAMEM to survive warm restart
    DMAMEM char LFS_BUF[ LFS_BUF_SIZE ];  // DMAMEM Uses RAM2 :: Typically survives Restart/Upload
         // ...
    void setup() {
      if (!myfs.begin(&LFS_BUF[BUF_OFFSET], sizeof(LFS_BUF) - BUF_OFFSET)) {
    Last edited by defragster; 09-06-2021 at 08:45 PM.

  10. #10
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    25,055
    Quote Originally Posted by KurtE View Post
    Newer T4 - not beta boards:
    Code:
    06:05:50.391 (loader): using hex file - Teensy not configured for encryption
    Quote Originally Posted by KurtE View Post
    Testing Bus Encryption Engine
    Success: ciphertext decryption test passed :-)
    Oh, I see what's happening now...

    That standard Teensy could run the EHEX file, but it has bootloader version 1.05 which lacks the new feature to tell Teensy Loader whether it is capable.

    Edit: as a workaround just for experimentation, delete the HEX file and rename EHEX to HEX. Then Teensy Loader won't know it's special and will just blindly write it as raw data into Teensy's flash.

  11. #11
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    7,551
    Quote Originally Posted by PaulStoffregen View Post
    Oh, I see what's happening now...

    That standard Teensy could run the EHEX file, but it has bootloader version 1.05 which lacks the new feature to tell Teensy Loader whether it is capable.
    Is that the same for the Teensy Micromod - it has bootloader version 1.06

    EDIT: Hope you got enough rest ...

  12. #12
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    25,055
    Quote Originally Posted by mjs513 View Post
    Is that the same for the Teensy Micromod - it has bootloader version 1.06
    Yes and no.

    Yes, MicroMod also lacks the ability to tell Teensy Loader about encryption capability. Only version 1.07 has it. So in that sense, it is the same situation.


    But also no. Even if existing MicroMod were updated to bootloader 1.07, you still couldn't use encryption. If you run the fuse write sketch on any MicroMod board today, it will not give you this result because the permanent fuses aren't set up for BEE to work.

    Code:
    Testing Bus Encryption Engine
    Success: ciphertext decryption test passed :-)

    Newer Teensy 4.0 and 4.1 have those fuses set so BEE can work. So they can (unsecurely) run EHEX files. So when/if those newer boards update to 1.07, they will be able to run EHEX. But it will never be fully secure on those boards, because the permanent fuse config prevents locking secure mode.

    Edit: I should also mention future MicroMod boards will probably be offered in both standard and lockable format, though Sparkfun could decide they only want to sell one format (my guess is they'd go for the lockable version, if they don't want both). When that sort of update happens, and if Sparkfun decides to sell the stardard not-lockable version, the future standard MicroMod would get the fuse settings for BEE to work (unsecurely) the same as recent Teensy 4.0 and 4.1 have. But again, without locking security which is only possible on the lockable version, the level of protection is weak.
    Last edited by PaulStoffregen; 09-06-2021 at 08:57 PM.

  13. #13
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    7,551
    Thanks for the explanation Paul - that clears that up that confusion I had in my head.

  14. #14
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    7,551
    @defragster
    Re-ran my PrimeNumbers sketch as shown in the other thread and to compare the differences between 2 locked T4s:
    Click image for larger version. 

Name:	Capture.PNG 
Views:	10 
Size:	3.9 KB 
ID:	25765

    As shown almost the same results - both boards compared in my breakout board, room temp about the same, same location on my desk etc.......

    Temp is not a problem from what I can see.

  15. #15
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    25,055
    Quote Originally Posted by defragster View Post
    Will get back to this - seems the 32KB HAB Keepout area may not be enough? It is as awkward to program 32KB skip as the Hardcoded Ref from top of RAM2 Ptr* method - wastes 32KB and fails.
    Just another reminder, LittleFS_RAM persistence is going away. Probably not much point to testing this so much.

  16. #16
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    9,564
    Quote Originally Posted by PaulStoffregen View Post
    Oh, I see what's happening now...

    That standard Teensy could run the EHEX file, but it has bootloader version 1.05 which lacks the new feature to tell Teensy Loader whether it is capable.

    Edit: as a workaround just for experimentation, delete the HEX file and rename EHEX to HEX. Then Teensy Loader won't know it's special and will just blindly write it as raw data into Teensy's flash.
    I now have tried running the verify sketch on the newer T4...
    Did not double check but assuming it loaded the .hex file:
    Code:
    Verify secure code is running properly
    
    Fail: Bus Encryption Engine is not active
    Fail: Encryption region starts at wrong address
    Fail: Program data is not within encrypted region
    Fail: title_function() is not in encrypted region
    Now to delete the .hex rename .ehex... Try again... Would not run...
    OOPS had purple one plugged in...

    Now try the right one:
    Code:
    Verify secure code is running properly
    
    Pass: Bus Encryption Engine is active
    Pass: Encryption region starts at proper address
    Pass: Program data is entirely within encrypted region
    Pass: title_function() is within encrypted region
    
    All Tests Passed.  :-)
    Will now let Teensy do it back with .hex file...
    And sure enough:
    Code:
    Verify secure code is running properly
    
    Fail: Bus Encryption Engine is not active
    Fail: Encryption region starts at wrong address
    Fail: Program data is not within encrypted region
    Fail: title_function() is not in encrypted region
    So yes work around does properly program a newer T4 with the .ehex file (renamed as .hex)

  17. #17
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    25,055
    Quote Originally Posted by defragster View Post
    Windows 11 here
    Glad to hear you're testing with Windows 11. All my machines are probably too old... not really looking forward to buying yet another laptop for testing.


    TLoader window for Locked T4 triggered some images 'Locked 1062', ... and noted FAILED programming?
    >> Repeated same twice more and it shows locked then no issue with attempted programming.
    Looking at this verbose log, I'm getting the impression you're using both Teensy Loader and TyComm to access the same Teensy. Things seem to happen which aren't necessarily errors, but from only this log they shouldn't just happen spontaneously. The only explanation I can imagine is TyComm is doing things which of course don't show up in this log.

    If something is failing, to have any hope of figuring it out, I really need to see a log where only Teensyduino tools were in use.

  18. #18
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    15,081
    Win 11 was accidental carry over - didn't intend to have on main machine - tried older i7 MSFT Surface that failed, but left my account marked 'Try Me' - next desktop visit said 'reboot for update' ... BOOM ... Win 11
    > Seems just Win 10 with gratuitous GUI changes, and Explorer Drag and Drop was haltingly slow like 10 or more seconds for response, though may be fixed with recent update

    TyComm maybe triggering something - though typically when TLoader active it stands aside from SerMon duties and allows TLoader to do the upload without issue. When it puts a Teensy in Bootloader - it leaves it there - It has no 'AUTO' program.
    > If I can see it repro I'll start closing it off, but so far it is a rare thing. I will start disabling 'Serial' connect before triggering 'Bootloader'.
    -->> Not sure how similarly Kurt&Mike may be using it ???

    I have 5 T_4.0's online again - so selective SerMon is best done with TyComm. Put on each of the five the Code4Code and done multiple uploads since with no issue:
    Code:
    Teensy 4		Time		Temp	Build
    8710210 nor ns: @600	144.9477	52.02	Short Pinned
    6683800 nor ns: @600	144.1074	45.44	TallDog
    6052840 nor ns: @600	140.732		46.07	Long Pinned
    10379970 ENC SM @600	138.4129	51.16	TallDog
    10379960 ENC ns @600	133.1627	54.33	Short Pinned
    Just rebuilt at 528 MHz - temps looks to be down ~4-5C in a dozen minutes? The trend is the same - not sure it shows trouble or just PCB/MCU variability given #210 higher compare temp???
    Code:
    Memory Usage on Teensy 4.0:
      FLASH: code:1001792, data:325752, headers:8772   free for files:695300
       RAM1: variables:86752, code:37112, padding:28424   free for local variables:372000
       RAM2: variables:12384  free for malloc/new:511904
    Another set up Verify then TyComm triggered Bootloader for TLoader Programming - no upload issues
    Code:
    Teensy 4		Time	Temp	Build
    8710210 nor ns: @528	14.4502	47.72	Short Pinned
    6683800 nor ns: @528	14.4503	42.35	TallDog
    6052840 nor ns: @528	14.4511	41.99	Long Pinned
    10379970 ENC SM @528	15.0575	47.63	TallDog
    10379960 ENC ns @528	15.0585	49.67	Short Pinned
    *The #960 unit not yet locked - but using the same Encrypt Key as #970 unit

    Updated Code4Code : Defragster/T4LockBeta - giving above temp feedback
    WIP on LittleFS edit here so far: LittleFS/tree/main/examples/Integrity
    - > Sync without cache delete
    - > updated RAM, DMAMEM, DMAMEMt :: Have updated Dir Verify in functions.ino
    - > DMAMEMt is just interim DMAMEM has failing compile define versus DMAMEMt with hardcoded RAM2 ptr address as in p#9

    @Mike - Are you running same version of PrimeTemp? If so ( except for ambient temp, local power) the T_4.0's should compare on runs for temp.

  19. #19
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    7,551
    @Mike - Are you running same version of PrimeTemp? If so ( except for ambient temp, local power) the T_4.0's should compare on runs for temp.
    Pretty much the same - you have a few extra's in there I think but the loop looks the same. See attached.
    PrimeNumberTempTestCase.zip

  20. #20
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    15,081
    Quote Originally Posted by mjs513 View Post
    Pretty much the same - you have a few extra's in there I think but the loop looks the same. See attached.
    PrimeNumberTempTestCase.zip
    I put it up with isEncrypt update IIRC ( includes F_CPU in ID string szTeensy ) - you can edit that one. ... Or i'll try the zip

  21. #21
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    7,551
    @Paul
    Using the Arduino IDE must have uploaded 30 times or so sketches (maybe 4 different ones with the MTP one multiple times) with out:
    1. Failure to load or TL busy messages.
    2. RED led staying on
    3. No hangs on load

  22. #22
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    25,055
    Quote Originally Posted by defragster View Post
    or just PCB/MCU variability given #210 higher compare temp???
    Each PCB has a small 6 bit mark near the USB connector, which indicates which PCB fab made the raw board. Most of them should be ".|...|", ".|..||", ".||.|." or "|....|". All boards with the same mark should have the same or very similar material and layer stackup.

  23. #23
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    7,551
    Quote Originally Posted by defragster View Post
    I put it up with isEncrypt update IIRC ( includes F_CPU in ID string szTeensy ) - you can edit that one. ... Or i'll try the zip
    Doubt your temps are going to match mine - for one I am testing on a different breakout board that you. I am using the one I originally designed for the T4 during beta testing. As I said Temp isn't a problem even though we may differences in max temperatures. Lookiing at your data appears only a couple of degrees delta and that can be caused by any number of environmental or physical conditions.

    Click image for larger version. 

Name:	IMG-0462.png 
Views:	16 
Size:	733.1 KB 
ID:	25767
    Last edited by mjs513; 09-07-2021 at 12:48 AM.

  24. #24
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    15,081
    Quote Originally Posted by PaulStoffregen View Post
    Each PCB has a small 6 bit mark near the USB connector, which indicates which PCB fab made the raw board. Most of them should be ".|...|", ".|..||", ".||.|." or "|....|". All boards with the same mark should have the same or very similar material and layer stackup.
    I made some ref to the PCB Hashes before - two have NONE - assumed to be First Run? Here are the 5 I have online with two no marks 'XXXX' - having the lowest temps.
    Code:
    Teensy 4	PCB HASH
    8710210	|…|.
    6683800	XXXXX
    6052840	XXXXX
    10379970	|….|
    10379960	|….|
    8 others here are : Five: XXXXX , One: |...|., and Two: .|.||. (not on your list?)
    Last edited by defragster; 09-07-2021 at 01:22 AM.

  25. #25
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    15,081
    Added a sixth T_4.0 with diff PCH Hashmarks - Production with No pins - hottest yet:
    Code:
    Teensy 4		Time		Temp	Build		PCB hash
    8710210 nor ns: @600	144.9477	52.02	Short Pinned	||.
    6683800 nor ns: @600	144.1074	45.44	TallDog		XXXXX
    6052840 nor ns: @600	140.732		46.07	Long Pinned	XXXXX
    10379970 ENC SM @600	138.4129	51.16	TallDog		|.|
    10379960 ENC ns @600	133.1627	54.33	Short Pinned	|.|
    7734800 nor ns: @600	9.2699		56.11	NO PINS		.|.||.
    was running hours at 528 MHz so updated the numbers:
    Code:
    Teensy 4		Time		Temp	Build		PCB hash	
    8710210 nor ns: @528	382.4502	48.95	Short Pinned	||.
    6683800 nor ns: @528	382.4534	41.73	TallDog		XXXXX
    6052840 nor ns: @528	383.4354	40.63	Long Pinned	XXXXX
    10379970 ENC SM @528	383.4583	46.92	TallDog		|.|
    10379960 ENC ns @528	383.4824	50.33	Short Pinned	|.|
    7734800 nor ns: @528	13.4867		52.22	NO PINS		.|.||.

Posting Permissions

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