
Table 14-60. Command bits:
Bit
[31:
18]
[17] [16] [15] [14] [13] [12] [11] [10] [9]
[8]
[7]
[6]
[5]
[4]
[3]
[2]
[1]
[0]
Command
Reserved
Reserved
Reserved
FlashReadResource
FlashReadOnce
FlashProgramOnce
FlashEraseAllUnsecure
SetProperty
Reset
Call
Execute
ReceiveSBFile
GetProperty
FlashSecurityDisable
FillMemory
WriteMemory
ReadMemory
FlashEraseRegion
FlashEraseAll
14.5.1.4 TargetVersion Property
The value of this property is a 4-byte structure containing the target version of the
bootloader. The TargetVersion number returned returned for this device is 1.0.0.
Table 14-61. Fields of TargetVersion property:
Bits
[31:24]
[23:16]
[15:8]
[7:0]
Field
Name = 'T' (0x4B)
Major version
Minor version
Bugfix version
14.6 SB File Decryption Support
The bootloader supports the loading and flashing of applications using an encrypted SB
file format. Using the ReceiveSbFile command, the host can send an SB file that contains
various commands and data that will be executed on the Kinetis bootloader (the target).
An unencrypted SB file can be flashed to the target only when flash security is disabled.
When flash security is enabled, all memory writes and reads are disabled, with the
exception being an encrypted SB file that can be sent to the target. The SB file is
decrypted using an AES-128 style key (16 bytes). Before you send the encrypted file, the
key must be written to the target using the FlashProgramOnce command. The SB key
begins at offset 0x30 in the program once registers.
For example, to program a key of 000102030405060708090A0B0C0D0E0F:
• FlashProgramOnce to index 0x30 with 4 bytes of 0x03020100
• FlashProgramOnce to index 0x31 with 4 bytes of 0x07060504
• FlashProgramOnce to index 0x32 with 4 bytes of 0x0B0A0908
• FlashProgramOnce to index 0x33 with 4 bytes of 0x0F0E0D0C
SB File Decryption Support
K32 L2A Reference Manual, Rev. 2, 01/2020
316
NXP Semiconductors
Summary of Contents for K32 L2A Series
Page 2: ...K32 L2A Reference Manual Rev 2 01 2020 2 NXP Semiconductors...
Page 42: ...K32 L2A Reference Manual Rev 2 01 2020 42 NXP Semiconductors...
Page 122: ...Flash Memory Clock K32 L2A Reference Manual Rev 2 01 2020 122 NXP Semiconductors...
Page 158: ...Debug and security K32 L2A Reference Manual Rev 2 01 2020 158 NXP Semiconductors...
Page 174: ...Module Signal Description Tables K32 L2A Reference Manual Rev 2 01 2020 174 NXP Semiconductors...
Page 246: ...Application information K32 L2A Reference Manual Rev 2 01 2020 246 NXP Semiconductors...
Page 374: ...CMP Trigger Mode K32 L2A Reference Manual Rev 2 01 2020 374 NXP Semiconductors...
Page 384: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 384 NXP Semiconductors...
Page 592: ...Application Information K32 L2A Reference Manual Rev 2 01 2020 592 NXP Semiconductors...
Page 656: ...Functional Description K32 L2A Reference Manual Rev 2 01 2020 656 NXP Semiconductors...
Page 664: ...Functional Description K32 L2A Reference Manual Rev 2 01 2020 664 NXP Semiconductors...
Page 744: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 744 NXP Semiconductors...
Page 762: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 762 NXP Semiconductors...
Page 806: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 806 NXP Semiconductors...
Page 868: ...Integer square root K32 L2A Reference Manual Rev 2 01 2020 868 NXP Semiconductors...
Page 976: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 976 NXP Semiconductors...
Page 1012: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1012 NXP Semiconductors...
Page 1094: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1094 NXP Semiconductors...
Page 1132: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1132 NXP Semiconductors...
Page 1182: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1182 NXP Semiconductors...
Page 1290: ...Functional description K32 L2A Reference Manual Rev 2 01 2020 1290 NXP Semiconductors...