General examples

Create a simple bootable image (i.MX-RT).

Located at: examples/image.py

This example shows how to create a simple bootable image (i.MX-RT).

After the image is created, the DCD part, application segment are added. The basic info of the whole segment is displayed. The image is saved to a file.

The application segment is a “plain load” image without a boot device header, IVT, boot data, etc.

Create a simple bootable image with DCD data.

Located at: examples/image_dcd.py

This example shows various ways how to create/parse Device Configuration Data (DCD).

Create fuses file (SRK) from certificates.

Located at: examples/image_srk.py

This example shows how to create fuses file (SRK) from certificates.

Create and Secure Boot image for LPC55xx and download it to the target.

Located at: examples/lpc55xx.py

This example demonstrates how to create and Secure Boot image for LPC55xx and download it to the target.

Create custom TrustZone and Protected Flash Region data for LPC55xx.

Located at: examples/lpc55xx_tz_pfr.py

This example demonstrates how to create TZM and PFR (IFR).

  • TZM - TrustZone

  • PFR - Protected Flash Region (divided into CMPA and CFPA regions)

Read properties of the target’s bootloader.

Located at: examples/mboot.py

This example shows how to read properties of the target’s bootloader.

Create the Secure Boot (SB) images.

Located at: examples/sbfile.py

This example shows methods how to create Secure Boot (SB) images.

  • The SB file version 2.0 and 2.1 is used

  • Boot image with and without a signature

Read memory using SDP.

Located at: examples/sdp.py

This example demonstrates how to read memory using SDP.

Download a flashloader into i.MX RT10xx device and read bootloader properties.

Located at: examples/sdp_mboot.py

This example shows how to download a flashloader into i.MX RT10xx device and read bootloader properties.

Write memory using SDPS.

Located at: examples/sdps.py

This example demonstrates how to write memory using SDPS.