<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Setting up a LPC32x0 binary for serial boot in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-a-LPC32x0-binary-for-serial-boot/m-p/545177#M13024</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wellsk on Tue Aug 09 11:08:15 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to boot an image on the LPC32x0 from serial FLASH, the image must be setup to load and boot from address 0x0, have a correct serial header word, and the size of the image. Serial images are stored in serial FLASH as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Offset 0: Serial header word (0xDF 0x9B 0x57 -xz13)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Offset 4: Size in bytes, must not be larger than 56KBytes. Example: 0x2000 bytes = 0x00 0x20 0x00 0x00&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Offset 8: Boot data with size as defined in offset 4&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you already have a binary, you can use the tool attached to this topic to generate a binary with the correct serial header and size fields. The tool should work on Windows XP, Vista, and Win7 machines. Source code is included in the package.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To use the tool to convert an image for serial boot, use the following procedure:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;c:\nxpmcu\sboot&amp;gt;lpc32x0_sboot_format kickstart_nand_small_block_gnu.bin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC32x0 serial boot header generator&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Binary input file : kickstart_nand_small_block_gnu.bin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Binary input file size : 12266 bytes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Creating output file : kickstart_nand_small_block_gnu.bin.boot&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Inserting serial boot header at offset 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Inserting serial boot size at offset 4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shifting boot data to offset 8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Binary output file with serial header : kickstart_nand_small_block_gnu.bin.boot&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;c:\nxpmcu\sboot&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The binary file at offset contained the following data:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;06 00 00 EA FE FF FF EA FE FF FF EA FE FF FF EA FE FF FF EA FE FF FF EA FE FF FF EA FE FF FF EA&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After the program was run, the file size is 8 bytes bigger with the serial header and size attached at offset 0:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DF 9B 57 13 EA 2F 00 00 06 00 00 EA FE FF FF EA FE FF FF EA FE FF FF EA FE FF FF EA FE FF FF EA&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337983"&gt;lpc32x0_sboot_format.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:28:32 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:28:32Z</dc:date>
    <item>
      <title>Setting up a LPC32x0 binary for serial boot</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-a-LPC32x0-binary-for-serial-boot/m-p/545177#M13024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wellsk on Tue Aug 09 11:08:15 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to boot an image on the LPC32x0 from serial FLASH, the image must be setup to load and boot from address 0x0, have a correct serial header word, and the size of the image. Serial images are stored in serial FLASH as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Offset 0: Serial header word (0xDF 0x9B 0x57 -xz13)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Offset 4: Size in bytes, must not be larger than 56KBytes. Example: 0x2000 bytes = 0x00 0x20 0x00 0x00&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Offset 8: Boot data with size as defined in offset 4&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you already have a binary, you can use the tool attached to this topic to generate a binary with the correct serial header and size fields. The tool should work on Windows XP, Vista, and Win7 machines. Source code is included in the package.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To use the tool to convert an image for serial boot, use the following procedure:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;c:\nxpmcu\sboot&amp;gt;lpc32x0_sboot_format kickstart_nand_small_block_gnu.bin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC32x0 serial boot header generator&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Binary input file : kickstart_nand_small_block_gnu.bin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Binary input file size : 12266 bytes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Creating output file : kickstart_nand_small_block_gnu.bin.boot&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Inserting serial boot header at offset 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Inserting serial boot size at offset 4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shifting boot data to offset 8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Binary output file with serial header : kickstart_nand_small_block_gnu.bin.boot&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;c:\nxpmcu\sboot&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The binary file at offset contained the following data:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;06 00 00 EA FE FF FF EA FE FF FF EA FE FF FF EA FE FF FF EA FE FF FF EA FE FF FF EA FE FF FF EA&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After the program was run, the file size is 8 bytes bigger with the serial header and size attached at offset 0:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DF 9B 57 13 EA 2F 00 00 06 00 00 EA FE FF FF EA FE FF FF EA FE FF FF EA FE FF FF EA FE FF FF EA&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337983"&gt;lpc32x0_sboot_format.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:28:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Setting-up-a-LPC32x0-binary-for-serial-boot/m-p/545177#M13024</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:28:32Z</dc:date>
    </item>
  </channel>
</rss>

