MCUXpresso SDK Documentation

ele_decrypt_sb3

ele_decrypt_sb3#

Overview#

This example showing how to read fuse, check it value and if its match expected value decrypt SB3 file.

Running the demo#

The following lines are printed to the serial terminal when the demo program is executed.

ELE SSSAPI Example
This example showing how to read fuse, check it value and if its match expected value decrypt SB3 file
SUCCESS: Readed fuse succesfully!!
SUCCESS: Expected fuse match fuse readed out of Security Subsystem, going to decrypt SB3 file!!
Encrypted SB3 block 1: 
2DC4802958BB799284CBCC18A680C387C7D1750975A9FDF2EF55E50F3C713593BD16199B38AA674122FBD4154F4B20DC3AFAE167BFAAA471A6511B79EEE469A1D85D61E853E82D023BF39E997FC211C1F32AED9DDDE6E59C125F0AAF9BB2E7CEA46FAA8844429782B47601CB0BE73B9D8391C90EAD344BDC2BEA1

Decrypted SB3 block 1: 
1000100080200000055AAAA550080480E8301000000000000000000055AAAA550080483920020000000000000000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

Encrypted SB3 block 2: 
670D38413F35BF90364B29C75D374C47A9BB132F4E4E1AF1355DD5B5D636D6324C8FC13F522DA7FC7D1B558B159428AC742AA5482864514BC46A87299242E3BB057CCBDE8A1E8A9F1B650447F9647D78D86F21A27D1944C67B7F685879198653B5D63A96A3C03C574F223D872A65BF7655139EAD4F991D30CBF11C

Decrypted SB3 block 2: 
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

Encrypted SB3 block 3: 
5E781BD7126382FD5A11B1D4A8680D3B028516A49D4732FB9A21C92F90A7F67BD318DF830F1AFA2655B966082581F41D2D679D9B1E2CAA442C411219C284A93A674C5B5E0EA895365A55E59B957CD1AA297B38B37DB1B35ACECB625B9699FB97CB64F491DAEA36F8F3C4B118CDF8AE5CB893877F2B7EADF972A9F

Decrypted SB3 block 3: 
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

SUCCESS: Decrypted SB3 file succesfully!!
Example end

Supported Boards#

FRDM-MCXW71
Hardware requirements
  • Micro USB cable

  • Personal Computer

  • FRDM-MCXW71 board

Board settings

No special settings are required.

Prepare the Demo
  1. Connect the micro and mini USB cable between the PC host and the USB ports on the board.

  2. Open a serial terminal on PC for the serial device with these settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

MCX-W71-EVK
Hardware requirements
  • Micro USB cable

  • Personal Computer

  • FRDM-MCXW71 board

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a USB cable between the host PC and the EVK board J14.

  2. Open a serial terminal on PC for the serial device with these settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

KW45B41Z-EVK
Hardware requirements
  • Micro USB cable

  • Personal Computer

  • KW45B41Z-EVK board

Board settings

No special settings are required.

Prepare the Demo
  1. Connect the micro and mini USB cable between the PC host and the USB ports on the board.

  2. Open a serial terminal on PC for the serial device with these settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.