Add KBOOT.

This commit is contained in:
László Monda
2016-08-10 01:45:15 +02:00
commit e6c1fce5b4
9392 changed files with 3751375 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
bin/Tools/blhost/mac/blhost Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,7 @@
simple.bin - binary example
simple.hex - hex example
simple.srec - SRecord example
simple.sb - SB file example
simple.bd - SB configuration file used to generate simple.sb
demo.bin - demo example. Just do an infinite loop.
flashConfig.bin - flash config data with backdoor key 0102030405060708, and KEYEN is set.

View File

@@ -0,0 +1 @@
<08><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>

View File

@@ -0,0 +1,8 @@
sources {
inputFile = extern(0);
}
section (0) {
erase 40K..42K;
load inputFile > 0x0000A000;
}

View File

@@ -0,0 +1,96 @@
:10A000000004FF1F9DA3000073A50000A3A500008E
:10A01000B9A50000BBA50000BDA500000000000020
:10A020000000000000000000BFA50000C1A5000066
:10A0300000000000C3A50000C5A50000C7A50000E2
:10A04000C7A50000C7A50000C7A50000C7A5000060
:10A05000C7A50000C7A50000C7A50000C7A5000050
:10A06000C7A50000C7A50000C7A50000C7A5000040
:10A07000C7A50000C7A50000C7A50000C7A5000030
:10A08000C7A50000C7A50000C7A50000C7A5000020
:10A09000C7A50000C7A50000C7A50000C7A5000010
:10A0A000C7A50000C7A50000C7A50000C7A5000000
:10A0B000C7A50000C7A50000C7A50000C7A50000F0
:10A0C000C7A50000C7A50000C7A50000C7A50000E0
:10A0D000C7A50000C7A50000C7A50000C7A50000D0
:10A0E000C7A50000C7A50000C7A50000C7A50000C0
:10A0F000C7A50000C7A50000C7A50000C7A50000B0
:10A10000C7A50000C7A50000C7A50000C7A500009F
:10A11000C7A50000C7A50000C7A50000C7A500008F
:10A12000C7A50000C7A50000C7A50000C7A500007F
:10A13000C7A50000C7A50000C7A50000C7A500006F
:10A14000C7A50000C7A50000C7A50000C7A500005F
:10A15000C7A50000C7A50000C7A50000C7A500004F
:10A16000C7A50000C7A50000C7A50000C7A500003F
:10A17000C7A50000C7A50000C7A50000C7A500002F
:10A18000C7A50000C7A50000C7A50000C7A500001F
:10A19000C7A50000C7A50000C7A50000C7A500000F
:10A1A000C7A50000C7A50000C7A50000C7A50000FF
:10A1B000C7A50000C7A50000C7A50000C7A50000EF
:10A1C000C7A50000C7A50000C7A50000C7A50000DF
:10A1D000C7A50000C7A50000C7A50000C7A50000CF
:10A1E000C7A50000C7A50000C7A50000C7A50000BF
:10A1F000C7A50000C7A50000C7A50000C7A50000AF
:10A20000C7A50000C7A50000C7A50000C7A500009E
:10A21000C7A50000C7A50000C7A50000C7A500008E
:10A22000C7A50000C7A50000C7A50000C7A500007E
:10A23000C7A50000C7A50000C7A50000C7A500006E
:10A24000C7A50000C7A50000C7A50000C7A500005E
:10A25000C7A50000C7A50000C7A50000C7A500004E
:10A26000C7A50000C7A50000C7A50000C7A500003E
:10A27000C7A50000C7A50000C7A50000C7A500002E
:10A28000C7A50000C7A50000C7A50000C7A500001E
:10A29000C7A50000C7A50000C7A50000C7A500000E
:10A2A000C7A50000C7A50000C7A50000C7A50000FE
:10A2B000C7A50000C7A50000C7A50000C7A50000EE
:10A2C000C7A50000C7A50000C7A50000C7A50000DE
:10A2D000C7A50000C7A50000C7A50000C7A50000CE
:10A2E000C7A50000C7A50000C7A50000C7A50000BE
:10A2F000C7A50000C7A50000C7A50000C7A50000AE
:10A30000C7A50000C7A50000C7A50000C7A500009D
:10A31000C7A50000C7A50000C7A50000C7A500008D
:10A32000C7A50000C7A50000C7A50000C7A500007D
:10A33000C7A50000C7A50000C7A50000C7A500006D
:10A34000C7A50000C7A50000C7A50000C7A500005D
:10A35000C7A50000C7A50000C7A50000C7A500004D
:10A36000C7A50000C7A50000C7A50000C7A500003D
:10A37000C7A50000C7A50000C7A50000C7A500002D
:10A38000C7A50000C7A50000C7A50000C7A500001D
:10A39000C7A50000C7A50000C7A5000072B60E48FB
:10A3A0000E49886000220023002400250026002793
:10A3B000B846B946BA46BB46BC4609488546094830
:10A3C0008047094880470948804762B6002000213D
:10A3D000074A9047FEE7000000A0000000ED00E003
:10A3E0000004FF1F3DA5000079A4000031A5000076
:10A3F00093A500005FF0FF30334908605FF0FF3045
:10A40000324908605FF0FF30314908605FF0FF308B
:10A41000304908605FF0FF302F4908605FF0FF307F
:10A420002E4908605FF0FF302D4908605FF0FF3073
:10A430002C49086070475FF0FF302B4908605FF0DF
:10A44000FF302A4908605FF0FF30294908605FF05B
:10A45000FF30284908605FF0FF30274908605FF04F
:10A46000FF30264908605FF0FF30254908605FF043
:10A47000FF30244908607047234824490860244875
:10A480002449254A521A884207D004E00B78037009
:10A49000491C401C521E002AF8D1204820490A1AA3
:10A4A00003E000210170401C521E002AF9D11D4812
:10A4B0001D491E4A521A04E00B780370491C401CC7
:10A4C000521E002AF8D1704780E100E084E100E0EC
:10A4D00088E100E08CE100E090E100E094E100E040
:10A4E00098E100E09CE100E080E200E084E200E02E
:10A4F00088E200E08CE200E090E200E094E200E01C
:10A5000098E200E09CE200E000A0000008ED00E01E
:10A51000000000000000000000000000000000003B
:10A52000000000000000FF1FD4A50000D4A500001B
:10A5300080B5FFF75FFFFFF77EFF01BD03480068AE
:10A5400050F4700001490860704700BF88ED00E0DA
:10A550004EF68851CEF20001086840F470000860A1
:10A56000BFF34F8FBFF36F8F4FF00070E1EE100A13
:10A570007047FEE700F00BF8002801D0C046C04647
:10A580000020C046C04600F004F800F003F80120A7
:10A590007047FEE700F000B80746384600F002F8C2
:10A5A000FBE7FEE780B5C046C046024A110018200E
:10A5B000ABBEFBE726000200FEE7FEE7FEE7FEE794
:10A5C000FEE7FEE7FEE7FEE7C046C046FFF7C0FF36
:04A5D000FFF7D0FFC2
:040000050000A5C989
:00000001FF

View File

@@ -0,0 +1,96 @@
S01A00006C65645F64656D6F5F4652444D2D4B3634462E7372656321
S113A0000004FF1F9DA3000073A50000A3A500008A
S113A010B9A50000BBA50000BDA50000000000001C
S113A0200000000000000000BFA50000C1A5000062
S113A03000000000C3A50000C5A50000C7A50000DE
S113A040C7A50000C7A50000C7A50000C7A500005C
S113A050C7A50000C7A50000C7A50000C7A500004C
S113A060C7A50000C7A50000C7A50000C7A500003C
S113A070C7A50000C7A50000C7A50000C7A500002C
S113A080C7A50000C7A50000C7A50000C7A500001C
S113A090C7A50000C7A50000C7A50000C7A500000C
S113A0A0C7A50000C7A50000C7A50000C7A50000FC
S113A0B0C7A50000C7A50000C7A50000C7A50000EC
S113A0C0C7A50000C7A50000C7A50000C7A50000DC
S113A0D0C7A50000C7A50000C7A50000C7A50000CC
S113A0E0C7A50000C7A50000C7A50000C7A50000BC
S113A0F0C7A50000C7A50000C7A50000C7A50000AC
S113A100C7A50000C7A50000C7A50000C7A500009B
S113A110C7A50000C7A50000C7A50000C7A500008B
S113A120C7A50000C7A50000C7A50000C7A500007B
S113A130C7A50000C7A50000C7A50000C7A500006B
S113A140C7A50000C7A50000C7A50000C7A500005B
S113A150C7A50000C7A50000C7A50000C7A500004B
S113A160C7A50000C7A50000C7A50000C7A500003B
S113A170C7A50000C7A50000C7A50000C7A500002B
S113A180C7A50000C7A50000C7A50000C7A500001B
S113A190C7A50000C7A50000C7A50000C7A500000B
S113A1A0C7A50000C7A50000C7A50000C7A50000FB
S113A1B0C7A50000C7A50000C7A50000C7A50000EB
S113A1C0C7A50000C7A50000C7A50000C7A50000DB
S113A1D0C7A50000C7A50000C7A50000C7A50000CB
S113A1E0C7A50000C7A50000C7A50000C7A50000BB
S113A1F0C7A50000C7A50000C7A50000C7A50000AB
S113A200C7A50000C7A50000C7A50000C7A500009A
S113A210C7A50000C7A50000C7A50000C7A500008A
S113A220C7A50000C7A50000C7A50000C7A500007A
S113A230C7A50000C7A50000C7A50000C7A500006A
S113A240C7A50000C7A50000C7A50000C7A500005A
S113A250C7A50000C7A50000C7A50000C7A500004A
S113A260C7A50000C7A50000C7A50000C7A500003A
S113A270C7A50000C7A50000C7A50000C7A500002A
S113A280C7A50000C7A50000C7A50000C7A500001A
S113A290C7A50000C7A50000C7A50000C7A500000A
S113A2A0C7A50000C7A50000C7A50000C7A50000FA
S113A2B0C7A50000C7A50000C7A50000C7A50000EA
S113A2C0C7A50000C7A50000C7A50000C7A50000DA
S113A2D0C7A50000C7A50000C7A50000C7A50000CA
S113A2E0C7A50000C7A50000C7A50000C7A50000BA
S113A2F0C7A50000C7A50000C7A50000C7A50000AA
S113A300C7A50000C7A50000C7A50000C7A5000099
S113A310C7A50000C7A50000C7A50000C7A5000089
S113A320C7A50000C7A50000C7A50000C7A5000079
S113A330C7A50000C7A50000C7A50000C7A5000069
S113A340C7A50000C7A50000C7A50000C7A5000059
S113A350C7A50000C7A50000C7A50000C7A5000049
S113A360C7A50000C7A50000C7A50000C7A5000039
S113A370C7A50000C7A50000C7A50000C7A5000029
S113A380C7A50000C7A50000C7A50000C7A5000019
S113A390C7A50000C7A50000C7A5000072B60E48F7
S113A3A00E4988600022002300240025002600278F
S113A3B0B846B946BA46BB46BC460948854609482C
S113A3C08047094880470948804762B60020002139
S113A3D0074A9047FEE7000000A0000000ED00E0FF
S113A3E00004FF1F3DA5000079A4000031A5000072
S113A3F093A500005FF0FF30334908605FF0FF3041
S113A400324908605FF0FF30314908605FF0FF3087
S113A410304908605FF0FF302F4908605FF0FF307B
S113A4202E4908605FF0FF302D4908605FF0FF306F
S113A4302C49086070475FF0FF302B4908605FF0DB
S113A440FF302A4908605FF0FF30294908605FF057
S113A450FF30284908605FF0FF30274908605FF04B
S113A460FF30264908605FF0FF30254908605FF03F
S113A470FF30244908607047234824490860244871
S113A4802449254A521A884207D004E00B78037005
S113A490491C401C521E002AF8D1204820490A1A9F
S113A4A003E000210170401C521E002AF9D11D480E
S113A4B01D491E4A521A04E00B780370491C401CC3
S113A4C0521E002AF8D1704780E100E084E100E0E8
S113A4D088E100E08CE100E090E100E094E100E03C
S113A4E098E100E09CE100E080E200E084E200E02A
S113A4F088E200E08CE200E090E200E094E200E018
S113A50098E200E09CE200E000A0000008ED00E01A
S113A5100000000000000000000000000000000037
S113A520000000000000FF1FD4A50000D4A5000017
S113A53080B5FFF75FFFFFF77EFF01BD03480068AA
S113A54050F4700001490860704700BF88ED00E0D6
S113A5504EF68851CEF20001086840F4700008609D
S113A560BFF34F8FBFF36F8F4FF00070E1EE100A0F
S113A5707047FEE700F00BF8002801D0C046C04643
S113A5800020C046C04600F004F800F003F80120A3
S113A5907047FEE700F000B80746384600F002F8BE
S113A5A0FBE7FEE780B5C046C046024A110018200A
S113A5B0ABBEFBE726000200FEE7FEE7FEE7FEE790
S113A5C0FEE7FEE7FEE7FEE7C046C046FFF7C0FF32
S107A5D0FFF7D0FFBE
S903A5C98E

View File

@@ -0,0 +1,33 @@
<!--
* Copyright (C) 2010-2015, Freescale Semiconductor, Inc. All Rights Reserved.
*
* The CFG element contains a list of recognized usb devices.
* DEV elements provide a name, class, vid and pid for each device.
*
* Each LIST element contains a list of update instructions.
*
* Each CMD element contains one update instruction of attribute type.
* "find" - Waits for "timeout" seconds for the "body" device to connect.
* "blhost" - Executes a blhost command.
-->
<UCL>
<CFG>
<STATE name="BootStrap" dev="KBL-CDC" vid="1366" pid="0105"/> <!--JLINK CDC-->
<STATE name="BootStrap" dev="KBL-CDC" vid="0d28" pid="0204"/> <!--mBed CDC-->
<STATE name="BootStrap" dev="KBL-CDC" vid="1357" pid="0707"/> <!--OpenSDK CDC-->
<STATE name="BootStrap" dev="KBL-CDC" vid="1357" pid="0089"/> <!--OpenSDA CDC-->
<STATE name="BootStrap" dev="KBL-CDC" vid="1a86" pid="7523"/> <!--CH340 CDC-->
<STATE name="BootStrap" dev="KBL-CDC" vid="067b" pid="2303"/> <!--PL2303 CDC-->
<STATE name="BootStrap" dev="KBL-HID" vid="15A2" pid="0073"/> <!--KBL USB-HID-->
</CFG>
<!--
The following Lists are for Kinetis Bootloader chips
-->
<LIST name="Kinetis-bootloader" desc="Choose Flash as media">
<CMD state="BootStrap" type="find" body="BootStrap" timeout="180"/>
<CMD state="BootStrap" type="blhost" body="flash-image \"Profiles\\Kinetis Bootloader\\OS Firmware\\files\\simple.hex\" erase">Flash Image</CMD>
<CMD state="BootStrap" type="blhost" body="Update Completed!">Done</CMD>
</LIST>
</UCL>

View File

@@ -0,0 +1,35 @@
<!--
* Copyright (C) 2010-2015, Freescale Semiconductor, Inc. All Rights Reserved.
*
* The CFG element contains a list of recognized usb devices.
* DEV elements provide a name, class, vid and pid for each device.
*
* Each LIST element contains a list of update instructions.
*
* Each CMD element contains one update instruction of attribute type.
* "find" - Waits for "timeout" seconds for the "body" device to connect.
* "blhost" - Executes a blhost command.
-->
<UCL>
<CFG>
<STATE name="BootStrap" dev="KBL-CDC" vid="1366" pid="0105"/> <!--JLINK CDC-->
<STATE name="BootStrap" dev="KBL-CDC" vid="0d28" pid="0204"/> <!--mBed CDC-->
<STATE name="BootStrap" dev="KBL-CDC" vid="1357" pid="0707"/> <!--OpenSDK CDC-->
<STATE name="BootStrap" dev="KBL-CDC" vid="1357" pid="0089"/> <!--OpenSDA CDC-->
<STATE name="BootStrap" dev="KBL-CDC" vid="1a86" pid="7523"/> <!--CH340 CDC-->
<STATE name="BootStrap" dev="KBL-CDC" vid="067b" pid="2303"/> <!--PL2303 CDC-->
<STATE name="BootStrap" dev="KBL-HID" vid="15A2" pid="0073"/> <!--KBL USB-HID-->
</CFG>
<!--
The following Lists are for Kinetis Bootloader chips
-->
<LIST name="Kinetis-bootloader" desc="Choose Flash as media">
<CMD state="BootStrap" type="find" body="BootStrap" timeout="180"/>
<!--Suggest including erser command in SB file-->
<!--CMD state="BootStrap" type="blhost" body="flash-erase-region 0xA000 0x800">Flash Erase Region</CMD-->
<CMD state="BootStrap" type="blhost" body="receive-sb-file \"Profiles\\Kinetis Bootloader\\OS Firmware\\files\\simple.sb\"">Receive SB File</CMD>
<CMD state="BootStrap" type="blhost" body="Update Completed!">Done</CMD>
</LIST>
</UCL>

View File

@@ -0,0 +1,33 @@
<!--
* Copyright (C) 2010-2015, Freescale Semiconductor, Inc. All Rights Reserved.
*
* The CFG element contains a list of recognized usb devices.
* DEV elements provide a name, class, vid and pid for each device.
*
* Each LIST element contains a list of update instructions.
*
* Each CMD element contains one update instruction of attribute type.
* "find" - Waits for "timeout" seconds for the "body" device to connect.
* "blhost" - Executes a blhost command.
-->
<UCL>
<CFG>
<STATE name="BootStrap" dev="KBL-CDC" vid="1366" pid="0105"/> <!--JLINK CDC-->
<STATE name="BootStrap" dev="KBL-CDC" vid="0d28" pid="0204"/> <!--mBed CDC-->
<STATE name="BootStrap" dev="KBL-CDC" vid="1357" pid="0707"/> <!--OpenSDK CDC-->
<STATE name="BootStrap" dev="KBL-CDC" vid="1357" pid="0089"/> <!--OpenSDA CDC-->
<STATE name="BootStrap" dev="KBL-CDC" vid="1a86" pid="7523"/> <!--CH340 CDC-->
<STATE name="BootStrap" dev="KBL-CDC" vid="067b" pid="2303"/> <!--PL2303 CDC-->
<STATE name="BootStrap" dev="KBL-HID" vid="15A2" pid="0073"/> <!--KBL USB-HID-->
</CFG>
<!--
The following Lists are for Kinetis Bootloader chips
-->
<LIST name="Kinetis-bootloader" desc="Choose Flash as media">
<CMD state="BootStrap" type="find" body="BootStrap" timeout="180"/>
<CMD state="BootStrap" type="blhost" body="flash-image \"Profiles\\Kinetis Bootloader\\OS Firmware\\files\\simple.srec\" erase">Flash Image</CMD>
<CMD state="BootStrap" type="blhost" body="Update Completed!">Done</CMD>
</LIST>
</UCL>

View File

@@ -0,0 +1,34 @@
<!--
* Copyright (C) 2010-2015, Freescale Semiconductor, Inc. All Rights Reserved.
*
* The CFG element contains a list of recognized usb devices.
* DEV elements provide a name, class, vid and pid for each device.
*
* Each LIST element contains a list of update instructions.
*
* Each CMD element contains one update instruction of attribute type.
* "find" - Waits for "timeout" seconds for the "body" device to connect.
* "blhost" - Executes a blhost command.
-->
<UCL>
<CFG>
<STATE name="BootStrap" dev="KBL-CDC" vid="1366" pid="0105"/> <!--JLINK CDC-->
<STATE name="BootStrap" dev="KBL-CDC" vid="0d28" pid="0204"/> <!--mBed CDC-->
<STATE name="BootStrap" dev="KBL-CDC" vid="1357" pid="0707"/> <!--OpenSDK CDC-->
<STATE name="BootStrap" dev="KBL-CDC" vid="1357" pid="0089"/> <!--OpenSDA CDC-->
<STATE name="BootStrap" dev="KBL-CDC" vid="1a86" pid="7523"/> <!--CH340 CDC-->
<STATE name="BootStrap" dev="KBL-CDC" vid="067b" pid="2303"/> <!--PL2303 CDC-->
<STATE name="BootStrap" dev="KBL-HID" vid="15A2" pid="0073"/> <!--KBL USB-HID-->
</CFG>
<!--
The following Lists are for Kinetis Bootloader chips
-->
<LIST name="Kinetis-bootloader" desc="Choose Flash as media">
<CMD state="BootStrap" type="find" body="BootStrap" timeout="180"/>
<CMD state="BootStrap" type="blhost" body="flash-erase-region 0xA000 0x800">Flash Erase Region</CMD>
<CMD state="BootStrap" type="blhost" body="write-memory 0xA000 \"Profiles\\Kinetis Bootloader\\OS Firmware\\files\\demo.bin\"">Write Memory</CMD>
<CMD state="BootStrap" type="blhost" body="Update Completed!">Done</CMD>
</LIST>
</UCL>

View File

@@ -0,0 +1,155 @@
<!--
* Copyright (C) 2010-2015, Freescale Semiconductor, Inc. All Rights Reserved.
*
* The CFG element contains a list of recognized usb devices.
* DEV elements provide a name, class, vid and pid for each device.
*
* Each LIST element contains a list of update instructions.
*
* Each CMD element contains one update instruction of attribute type.
* "find" - Waits for "timeout" seconds for the "body" device to connect.
* "blhost" - Executes a blhost command.
-->
<UCL>
<CFG>
<STATE name="BootStrap" dev="KBL-CDC" vid="1366" pid="0105"/> <!--JLINK CDC-->
<STATE name="BootStrap" dev="KBL-CDC" vid="0d28" pid="0204"/> <!--mBed CDC-->
<STATE name="BootStrap" dev="KBL-CDC" vid="1357" pid="0707"/> <!--OpenSDK CDC-->
<STATE name="BootStrap" dev="KBL-CDC" vid="1357" pid="0089"/> <!--OpenSDA CDC-->
<STATE name="BootStrap" dev="KBL-CDC" vid="1a86" pid="7523"/> <!--CH340 CDC-->
<STATE name="BootStrap" dev="KBL-CDC" vid="067b" pid="2303"/> <!--PL2303 CDC-->
<STATE name="BootStrap" dev="KBL-HID" vid="15A2" pid="0073"/> <!--KBL USB-HID-->
</CFG>
<!--
The following Lists are for Kinetis Bootloader chips
-->
<LIST name="Kinetis-bootloader" desc="Choose Flash as media">
<CMD state="BootStrap" type="find" body="BootStrap" timeout="180"/>
<!--Get/Set bootloader property-->
<CMD state="BootStrap" type="blhost" body="get-property 1">Get Property 1</CMD>
<CMD state="BootStrap" type="blhost" body="get-property 2">Get Property 2</CMD>
<CMD state="BootStrap" type="blhost" body="get-property 3">Get Property 3</CMD>
<CMD state="BootStrap" type="blhost" body="get-property 4">Get Property 4</CMD>
<CMD state="BootStrap" type="blhost" body="get-property 5">Get Property 5</CMD>
<CMD state="BootStrap" type="blhost" body="get-property 6">Get Property 6</CMD>
<CMD state="BootStrap" type="blhost" body="get-property 7">Get Property 7</CMD>
<CMD state="BootStrap" type="blhost" body="get-property 8">Get Property 8</CMD>
<!--Default is 1(enable verify flash program)-->
<CMD state="BootStrap" type="blhost" body="get-property 10">Get Property 10</CMD>
<CMD state="BootStrap" type="blhost" body="set-property 10 0">Set Property 10</CMD>
<CMD state="BootStrap" type="blhost" body="get-property 10">Get Property 10</CMD>
<CMD state="BootStrap" type="blhost" body="set-property 10 1">Set Property 10</CMD>
<CMD state="BootStrap" type="blhost" body="get-property 10">Get Property 10</CMD>
<CMD state="BootStrap" type="blhost" body="get-property 11">Get Property 11</CMD>
<CMD state="BootStrap" type="blhost" body="get-property 12">Get Property 12</CMD>
<CMD state="BootStrap" type="blhost" body="get-property 14">Get Property 14</CMD>
<CMD state="BootStrap" type="blhost" body="get-property 15">Get Property 15</CMD>
<CMD state="BootStrap" type="blhost" body="get-property 16">Get Property 16</CMD>
<CMD state="BootStrap" type="blhost" body="get-property 17">Get Property 17</CMD>
<CMD state="BootStrap" type="blhost" body="get-property 18">Get Property 18</CMD>
<CMD state="BootStrap" type="blhost" body="get-property 19">Get Property 19</CMD>
<CMD state="BootStrap" type="blhost" body="get-property 20">Get Property 20</CMD>
<CMD state="BootStrap" type="blhost" body="get-property 21">Get Property 21</CMD>
<!--Default is 1(user margin)-->
<CMD state="BootStrap" type="blhost" body="get-property 22">Get Property 22</CMD>
<CMD state="BootStrap" type="blhost" body="set-property 22 0">Set Property 22</CMD>
<CMD state="BootStrap" type="blhost" body="get-property 22">Get Property 22</CMD>
<CMD state="BootStrap" type="blhost" body="set-property 22 1">Set Property 22</CMD>
<CMD state="BootStrap" type="blhost" body="get-property 22">Get Property 22</CMD>
<!--Please check the target device's reference manual to check whether these properties are supported.-->
<!--CMD state="BootStrap" type="blhost" body="get-property 23">Get Property 23</CMD-->
<!--CMD state="BootStrap" type="blhost" body="get-property 24">Get Property 24</CMD-->
<!--CMD state="BootStrap" type="blhost" body="get-property 25 1">Get Property 25</CMD-->
<!--Fill flash memory-->
<CMD state="BootStrap" type="blhost" body="flash-erase-region 0xA000 0x10">Flash Erase Region</CMD>
<CMD state="BootStrap" type="blhost" body="read-memory 0xA000 0x10">Read Memory</CMD>
<CMD state="BootStrap" type="blhost" body="fill-memory 0xA000 0x10 0x5a byte">Fill Memory</CMD>
<CMD state="BootStrap" type="blhost" body="read-memory 0xA000 0x10">Read Memory</CMD>
<CMD state="BootStrap" type="blhost" body="flash-erase-region 0xA000 0x10">Flash Erase Region</CMD>
<CMD state="BootStrap" type="blhost" body="read-memory 0xA000 0x10">Read Memory</CMD>
<CMD state="BootStrap" type="blhost" body="fill-memory 0xA000 0x10 0x55aa short">Fill Memory</CMD>
<CMD state="BootStrap" type="blhost" body="read-memory 0xA000 0x10">Read Memory</CMD>
<CMD state="BootStrap" type="blhost" body="flash-erase-region 0xA000 0x10">Flash Erase Region</CMD>
<CMD state="BootStrap" type="blhost" body="read-memory 0xA000 0x10">Read Memory</CMD>
<CMD state="BootStrap" type="blhost" body="fill-memory 0xA000 0x10 0x5555aaaa word">Fill Memory</CMD>
<CMD state="BootStrap" type="blhost" body="read-memory 0xA000 0x10">Read Memory</CMD>
<!--Write memory-->
<CMD state="BootStrap" type="blhost" body="flash-erase-region 0xA000 0x10">Flash Erase Region</CMD>
<CMD state="BootStrap" type="blhost" body="read-memory 0xA000 0x10">Read Memory</CMD>
<CMD state="BootStrap" type="blhost" body="write-memory 0xA000 {{00112233445566778899aabbccddeeff}}">Write Memory</CMD>
<CMD state="BootStrap" type="blhost" body="read-memory 0xA000 0x10">Read Memory</CMD>
<CMD state="BootStrap" type="blhost" body="flash-erase-region 0xA000 0x800">Flash Erase Region</CMD>
<CMD state="BootStrap" type="blhost" body="read-memory 0xA000 0x800">Read Memory</CMD>
<CMD state="BootStrap" type="blhost" body="write-memory 0xA000 \"Profiles\\Kinetis Bootloader\\OS Firmware\\files\\simple.bin\"">Write Memory</CMD>
<CMD state="BootStrap" type="blhost" body="read-memory 0xA000 0x800">Read Memory</CMD>
<!--Flash HEX/Srecord image file-->
<CMD state="BootStrap" type="blhost" body="flash-image \"Profiles\\Kinetis Bootloader\\OS Firmware\\files\\simple.srec\" erase">Flash Image</CMD>
<CMD state="BootStrap" type="blhost" body="read-memory 0xA000 0x800">Read Memory</CMD>
<CMD state="BootStrap" type="blhost" body="flash-image \"Profiles\\Kinetis Bootloader\\OS Firmware\\files\\simple.hex\" erase">Flash Image</CMD>
<CMD state="BootStrap" type="blhost" body="read-memory 0xA000 0x800">Read Memory</CMD>
<!--Send SB file-->
<CMD state="BootStrap" type="blhost" body="receive-sb-file \"Profiles\\Kinetis Bootloader\\OS Firmware\\files\\simple.sb\"">Receive SB File</CMD>
<CMD state="BootStrap" type="blhost" body="read-memory 0xA000 0x800">Read Memory</CMD>
<!--Erase all flash memory-->
<!--CMD state="BootStrap" type="blhost" body="read-memory 0xA000 0x800">Read Memory</CMD>
<CMD state="BootStrap" type="blhost" body="read-memory 0x400 0x10">Read Memory</CMD>
<CMD state="BootStrap" type="blhost" body="flash-erase-all">Flash Erase All</CMD>
<CMD state="BootStrap" type="blhost" body="read-memory 0xA000 0x800">Read Memory</CMD-->
<!--For ROM bootloader, FTFx.FSEC will be cleared(1),-->
<!--For Flash bootloader, FTFx.FSEC locates at reserved region, no change.-->
<!--CMD state="BootStrap" type="blhost" body="read-memory 0x400 0x10">Read Memory</CMD-->
<!--For ROM bootloader, after reset, device will fall into secure state.-->
<!--For Flash bootloader, security will not be changed.-->
<!--CMD state="BootStrap" type="blhost" body="reset">Reset</CMD>
<CMD state="BootStrap" type="blhost" body="get-property 17">Get Property 17</CMD-->
<!--Erase all flash memory and unsecure the device(for ROM only)-->
<!--Flash bootloader doesn't support this command.-->
<!--CMD state="BootStrap" type="blhost" body="flash-erase-all-unsecure">Flash Erase All Unsecure</CMD>
<CMD state="BootStrap" type="blhost" body="get-property 17">Get Property 17</CMD-->
<!--Unlock device by backdoor key(for ROM only)-->
<!--For Flash bootloader, FTFx.FSEC locates at reserved region.-->
<!--CMD state="BootStrap" type="blhost" body="flash-erase-all">Flash Erase All</CMD>
<CMD state="BootStrap" type="blhost" body="write-memory 0x400 \"Profiles\\Kinetis Bootloader\\OS Firmware\\files\\flashConfig.bin\"">Write Memory</CMD>
<CMD state="BootStrap" type="blhost" body="reset">Reset</CMD>
<CMD state="BootStrap" type="blhost" body="get-property 17">Get Property 17</CMD>
<CMD state="BootStrap" type="blhost" body="flash-security-disable 0102030405060708">Flash Security Disable</CMD>
<CMD state="BootStrap" type="blhost" body="get-property 17">Get Property 17</CMD>
<CMD state="BootStrap" type="blhost" body="reset">Reset</CMD>
<CMD state="BootStrap" type="blhost" body="get-property 17">Get Property 17</CMD>
<CMD state="BootStrap" type="blhost" body="flash-erase-all-unsecure">Flash Erase All Unsecure</CMD-->
<!--Program IFR-->
<!--This command is not supported by all kinetis bootloader devices. Please refer to device's reference manual
to check whether it is supported and the supported index and length-->
<!--CMD state="BootStrap" type="blhost" body="flash-read-once 0x30 4">Flash Read Once</CMD>
<CMD state="BootStrap" type="blhost" body="flash-program-once 0x30 4 12345678">Flash Program Once</CMD>
<CMD state="BootStrap" type="blhost" body="flash-read-once 0x30 4">Flash Read Once</CMD>
<CMD state="BootStrap" type="blhost" body="flash-erase-all-unsecure">Flash Erase All Unsecure</CMD>
<CMD state="BootStrap" type="blhost" body="flash-read-once 0x30 4">Flash Read Once</CMD-->
<CMD state="BootStrap" type="blhost" body="flash-erase-region 0xA000 0x800">Flash Erase Region</CMD>
<CMD state="BootStrap" type="blhost" body="write-memory 0xA000 \"Profiles\\Kinetis Bootloader\\OS Firmware\\files\\demo.bin\"">Write Memory</CMD>
<CMD state="BootStrap" type="blhost" body="execute 0xA39D 0 0x1fff0400">Execute</CMD>
<CMD state="BootStrap" type="blhost" body="Update Completed!">Done</CMD>
</LIST>
</UCL>

View File

@@ -0,0 +1,9 @@
[PROFILE]
PLAYER=Kinetis Update
VERSION=2
[OPERATIONS]
UTP_UPDATE=OS Firmware,120,0
[OS Firmware]

View File

@@ -0,0 +1,2 @@
[UICfg]
PortMgrDlg=1

View File

@@ -0,0 +1,8 @@
[profiles]
chip = Kinetis Bootloader
[platform]
board =
[LIST]
name = Kinetis-bootloader