<?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 SB2 file creation and load in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SB2-file-creation-and-load/m-p/974824#M38558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All&lt;/P&gt;&lt;P&gt;Now i am trying to create and load a sb2 file. Before doing it, i configured the keystore and CMPA and CFPA. Now bootloader is working in secure mode.&lt;/P&gt;&lt;P&gt;1. i use command " .\elftosb.exe -V -f lpc55xx -k ".\keys\sbkek.txt" -c ".\SB2 \commandFile.bd" -o image.sb2" to generate SB2 file.(why different sb2 files are generated using same sbkek.txt and commandFile.bd??)&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; use command ".\blhost.exe -p COM13 receive-sb-file .\image.sb2" to load sb2 file and get log below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PS C:\Users\sesa216564\Desktop\AN12283_LPC55Sxx_Secure_boot&amp;gt; .\blhost.exe -p COM13 receive-sb-file .\image.sb2&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Ping responded in 1 attempt(s)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Inject command 'receive-sb-file'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Preparing to send 7360 (0x1cc0) bytes to the target.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Successful generic response to command 'receive-sb-file'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Error: read_start_byte() timeout after 5.096 seconds&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Data phase write aborted by status 0x5 kStatus_Timeout&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Error: read_start_byte() timeout after 5.104 seconds&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Response status = 10004 (0x2714) No response packet from target device.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Wrote 0 of 7360 bytes.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why failed??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: i tried the same commands on another board without enabled security and got log below:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp;&amp;nbsp;Ping responded in 1 attempt(s)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Inject command 'receive-sb-file'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Preparing to send 7360 (0x1cc0) bytes to the target.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Successful generic response to command 'receive-sb-file'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Data phase write aborted by status 0x2712 kStatus_AbortDataPhase&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Possible JUMP or RESET command received.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Response status = 10101 (0x2775) kStatusRomLdrSignature&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Wrote 0 of 7360 bytes.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what's meaning of&amp;nbsp;kStatusRomLdrSignature??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Is it possible to check CMPA and CFPA memory when bootloader is working in secure mode?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attached files are used to generate sb2 file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Charles&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Nov 2019 05:28:57 GMT</pubDate>
    <dc:creator>binjun-charles_</dc:creator>
    <dc:date>2019-11-12T05:28:57Z</dc:date>
    <item>
      <title>SB2 file creation and load</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SB2-file-creation-and-load/m-p/974824#M38558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All&lt;/P&gt;&lt;P&gt;Now i am trying to create and load a sb2 file. Before doing it, i configured the keystore and CMPA and CFPA. Now bootloader is working in secure mode.&lt;/P&gt;&lt;P&gt;1. i use command " .\elftosb.exe -V -f lpc55xx -k ".\keys\sbkek.txt" -c ".\SB2 \commandFile.bd" -o image.sb2" to generate SB2 file.(why different sb2 files are generated using same sbkek.txt and commandFile.bd??)&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; use command ".\blhost.exe -p COM13 receive-sb-file .\image.sb2" to load sb2 file and get log below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PS C:\Users\sesa216564\Desktop\AN12283_LPC55Sxx_Secure_boot&amp;gt; .\blhost.exe -p COM13 receive-sb-file .\image.sb2&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Ping responded in 1 attempt(s)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Inject command 'receive-sb-file'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Preparing to send 7360 (0x1cc0) bytes to the target.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Successful generic response to command 'receive-sb-file'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Error: read_start_byte() timeout after 5.096 seconds&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Data phase write aborted by status 0x5 kStatus_Timeout&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Error: read_start_byte() timeout after 5.104 seconds&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Response status = 10004 (0x2714) No response packet from target device.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Wrote 0 of 7360 bytes.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why failed??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: i tried the same commands on another board without enabled security and got log below:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp;&amp;nbsp;Ping responded in 1 attempt(s)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Inject command 'receive-sb-file'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Preparing to send 7360 (0x1cc0) bytes to the target.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Successful generic response to command 'receive-sb-file'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Data phase write aborted by status 0x2712 kStatus_AbortDataPhase&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Possible JUMP or RESET command received.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Response status = 10101 (0x2775) kStatusRomLdrSignature&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Wrote 0 of 7360 bytes.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what's meaning of&amp;nbsp;kStatusRomLdrSignature??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Is it possible to check CMPA and CFPA memory when bootloader is working in secure mode?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attached files are used to generate sb2 file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Charles&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2019 05:28:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SB2-file-creation-and-load/m-p/974824#M38558</guid>
      <dc:creator>binjun-charles_</dc:creator>
      <dc:date>2019-11-12T05:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: SB2 file creation and load</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SB2-file-creation-and-load/m-p/974825#M38559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;why different sb2 files are generated using same sbkek.txt and commandFile.bd? It's normal. sbkek is the key that is used to encrypt the real key. mcu generates a different real key each time, nobody knows what's it. so the generated sb file must be different.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;SB file download error. you must follow the steps of an12283 to program sb file.&amp;nbsp; how did you config CMPA, for example, if it is configured to boot the signed image, you must make sure sure the file that used to generating sb file is also signed one. make sure the file syntax match.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jun Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2019 08:58:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SB2-file-creation-and-load/m-p/974825#M38559</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2019-11-18T08:58:14Z</dc:date>
    </item>
  </channel>
</rss>

