<?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 4370 USB boot DFU header question in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/4370-USB-boot-DFU-header-question/m-p/552648#M14428</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Thu Sep 18 15:36:40 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am just starting with the 4370 (LPC-Link2 board) and I have a question about the 16 byte header that has to be&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;prefixed to the DFU download image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does the image size field (i.e the 512-byte block count) have to include the DFU header itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With the rounding going on, in most cases it will not matter if the header is included or not,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but imagine this ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The actual code image is EXACTLY 512 bytes and (by definition) the DFU header is 16 bytes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Would the 'HASH_SIZE' be 1 (= 512) or 2 (512+16 round up to 1024)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Secondly, I suppose that the code image will start with a vector table (with initial SP and reset address etc.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you confirm this and indicate if the code image should be based a zero (and rely on the Boot ROM setting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the M4MEMMAP to hex 10000000) or base the image at absolute hex 10000000?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The 4370 is not an AES capable device, and the 'HASH_VALUE' will be zero.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards, Mike&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:37:42 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:37:42Z</dc:date>
    <item>
      <title>4370 USB boot DFU header question</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/4370-USB-boot-DFU-header-question/m-p/552648#M14428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Thu Sep 18 15:36:40 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am just starting with the 4370 (LPC-Link2 board) and I have a question about the 16 byte header that has to be&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;prefixed to the DFU download image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does the image size field (i.e the 512-byte block count) have to include the DFU header itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With the rounding going on, in most cases it will not matter if the header is included or not,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but imagine this ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The actual code image is EXACTLY 512 bytes and (by definition) the DFU header is 16 bytes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Would the 'HASH_SIZE' be 1 (= 512) or 2 (512+16 round up to 1024)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Secondly, I suppose that the code image will start with a vector table (with initial SP and reset address etc.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you confirm this and indicate if the code image should be based a zero (and rely on the Boot ROM setting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the M4MEMMAP to hex 10000000) or base the image at absolute hex 10000000?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The 4370 is not an AES capable device, and the 'HASH_VALUE' will be zero.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards, Mike&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:37:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/4370-USB-boot-DFU-header-question/m-p/552648#M14428</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:37:42Z</dc:date>
    </item>
  </channel>
</rss>

