Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: Cannot get Lockable Teensy 4 to pass tests and lock

  1. #1

    Cannot get Lockable Teensy 4 to pass tests and lock

    Step 1. Generate Key - Done
    Step 2 Fuse write sketch gave me this response:

    Code:
    Writing public key hash
    Okay: public key hash is good :-)
    
    Decryption key was previously written & locked, so
    it can not be directly verified, but the following
    test will confirm whether decryption works.
    
    
    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
    Not sure what that means but on to step 3

    AT this point i tried to load my own EHEX file into teensy loader and hit upload. THen I did this:

    Step 3: Verify Sketch
    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

  2. #2
    Senior Member+ mjs513's Avatar
    Join Date
    Jul 2014
    Location
    New York
    Posts
    7,852
    A little confused.

    In your Step 2 it says that the T4 you are using already has a key that was previously written:
    Decryption key was previously written & locked, so
    it can not be directly verified, but the following
    test will confirm whether decryption works.
    So when you go and run the verify sketch with a new key its going to fail because one was already written to the T4.

    At least that is my understanding.

  3. #3
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    25,487
    That result sure looks like your board got programmed with the HEX file, not EHEX.

    First, check Teensy Loader version with Help > About in the small Teensy Loader windows. If older than 1.55, quit and let Arduino restart it on your next Verify or Compile. Older versions don't know about EHEX files.

    If that doesn't solve everything, use Teensy Loader's Help > Verbose Info. It will tell you more detail about the board it's detecting.

  4. #4
    All good now. Was using an older version of teensyloader. Not sure how lol.

Posting Permissions

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