<?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 Re: Calling HAB API to authenticate signature on RT1052 in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Calling-HAB-API-to-authenticate-signature-on-RT1052/m-p/1076226#M9021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;Would you be able to share your HAB API code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;hy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Aug 2020 06:07:13 GMT</pubDate>
    <dc:creator>HeMyFAE</dc:creator>
    <dc:date>2020-08-27T06:07:13Z</dc:date>
    <item>
      <title>Calling HAB API to authenticate signature on RT1052</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Calling-HAB-API-to-authenticate-signature-on-RT1052/m-p/1076215#M9010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Being trapped in some troubles about HAB API, I wanted to&amp;nbsp;call HAB API in our bootloader to verify the bootloader its own&amp;nbsp;signature, even though ROM code has done that, but I just want to verify the process of calling HAB API does work, but the code got stuck once calling&amp;nbsp;hab_rvt.entry() function, let alone hab_rvt.authenticate_image(). I have read&amp;nbsp;AN12263, AN4581, AN12079, HAB4_API.pdf from cst-3.1.0 and so on, but no clues I could find. See the test code below, and a block of OCRAM has been reserved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By checking the RVT table, each member's address should be right according to&amp;nbsp;AN12263. For example function entry(), the variable is located at 0x00200304 and its function located at 0x00201A81(not alignment?). See code above, why does it get stuck while entering function hab_rvt-&amp;gt;entry()? Any else I missed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question 2, for function&amp;nbsp;authenticate_image(), the paramter "bytes", what does it include? HABr_API.pdf said it's "Initial (possibly partial) image size on entry. Final image size on exit", is it [IVT+BootData+DCD+signed_image]? Do you have any sample of the use of HAB API?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2020 05:55:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Calling-HAB-API-to-authenticate-signature-on-RT1052/m-p/1076215#M9010</guid>
      <dc:creator>ffloree</dc:creator>
      <dc:date>2020-06-22T05:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calling HAB API to authenticate signature on RT1052</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Calling-HAB-API-to-authenticate-signature-on-RT1052/m-p/1076216#M9011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="308322" data-username="ffloree" href="https://community.nxp.com/people/ffloree"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline; "&gt;tom fang&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;，&lt;/P&gt;&lt;P&gt;&amp;nbsp; Do you tried the flashloader to download the HAB signed app code directly, whether that works or not?&lt;/P&gt;&lt;P&gt;&amp;nbsp; Do you burn the fuse to close the HAB and the SRK?&lt;/P&gt;&lt;P&gt;&amp;nbsp; You want to do the HAB signed operation, not the HAB encrypted operation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; BTW, please also share your source code, I will help you to check it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="border: 0px currentColor; color: #51626f; font-size: 14px; background-color: #ffffff;"&gt;Kerry&lt;/P&gt;&lt;P style="border: 0px currentColor; color: #51626f; font-size: 14px; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px currentColor; color: #51626f; font-size: 14px; background-color: #ffffff;"&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 style="border: 0px currentColor; color: #51626f; font-size: 14px; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px currentColor; color: #51626f; font-size: 14px; background-color: #ffffff;"&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, 22 Jun 2020 09:37:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Calling-HAB-API-to-authenticate-signature-on-RT1052/m-p/1076216#M9011</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-06-22T09:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calling HAB API to authenticate signature on RT1052</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Calling-HAB-API-to-authenticate-signature-on-RT1052/m-p/1076217#M9012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="color: #3d9ce7; background-color: #ffffff; font-weight: 200;"&gt;tom fang&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please give me more time to analysis it , any updated information, will let you know.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks a lot for your understanding.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Kerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2020 10:40:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Calling-HAB-API-to-authenticate-signature-on-RT1052/m-p/1076217#M9012</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-06-23T10:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calling HAB API to authenticate signature on RT1052</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Calling-HAB-API-to-authenticate-signature-on-RT1052/m-p/1076218#M9013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kerry! With your help, I think we would fix it soon. :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2020 00:47:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Calling-HAB-API-to-authenticate-signature-on-RT1052/m-p/1076218#M9013</guid>
      <dc:creator>ffloree</dc:creator>
      <dc:date>2020-06-24T00:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calling HAB API to authenticate signature on RT1052</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Calling-HAB-API-to-authenticate-signature-on-RT1052/m-p/1076219#M9014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-userid="308322" data-username="ffloree" href="https://community.nxp.com/people/ffloree"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline; "&gt;tom fang&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please also attach the code piece, instead of just the pictures, otherwise, I need to type the code, not copy your code.&lt;/P&gt;&lt;P&gt;&amp;nbsp; BTW, I have an MIMXRT105-EVKB board which already do the HAB encrypted, fuse burned with SRK, HAB closed.&lt;/P&gt;&lt;P&gt;&amp;nbsp; When you close the HAB, you still can debug the code on your side with the debugger?&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please also tell me which IDE and the debugger you are using now? MCUXPresso IDE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P style="border: 0px currentColor; color: #51626f; font-size: 14px; background-color: #ffffff;"&gt;Kerry&lt;/P&gt;&lt;P style="border: 0px currentColor; color: #51626f; font-size: 14px; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px currentColor; color: #51626f; font-size: 14px; background-color: #ffffff;"&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 style="border: 0px currentColor; color: #51626f; font-size: 14px; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px currentColor; color: #51626f; font-size: 14px; background-color: #ffffff;"&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>Wed, 24 Jun 2020 08:52:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Calling-HAB-API-to-authenticate-signature-on-RT1052/m-p/1076219#M9014</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-06-24T08:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calling HAB API to authenticate signature on RT1052</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Calling-HAB-API-to-authenticate-signature-on-RT1052/m-p/1076220#M9015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/kerryzhou"&gt;kerryzhou&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;Could you review the code attached to the first content of this ticket? I want to explain my use case again, hope it helps for identifying the issues.&lt;/P&gt;&lt;P&gt;1. The attached code run in my bootloader, but the bootloader is also being signed and ROM code will authenticate it. This authenticate is correct, we have use it for a long time.&lt;/P&gt;&lt;P&gt;2. The attached code calls HAB API to verify my application which has a signature as well, but this signature is the same as my bootloader's, both use the same&amp;nbsp;imx-flexspinor-normal-signed.bd except for different "startAddress" and "ivtOffset" (boot:&amp;nbsp;startAddress = 0x60000000,&amp;nbsp;ivtOffset = 0x1000; APP:&amp;nbsp;startAddress = 0x60100000,&amp;nbsp;ivtOffset = 0x0000;)&lt;/P&gt;&lt;P&gt;3. After power cycle, we can see the log below:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Printing HAB events from boot application...&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;HAB Configuration: 0xcc, HAB State: 0x99&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;--------- HAB Event 1 -----------------&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;event data:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;&amp;lt;omitted content&amp;gt;&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;Calling HAB entry... &amp;lt;&amp;lt;being stuck here&amp;gt;&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, it means my bootloader signature verification is passed, but while calling HAB API&amp;nbsp;hab_rvt_entry(), MCU gets stuck.&amp;nbsp;I don't think the verification process in the code is to be a problem, but some IC modules forgotten to be enabled, here is only&amp;nbsp;OCOTP clock enabled, any clock else need to be enabled as well?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2020 08:18:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Calling-HAB-API-to-authenticate-signature-on-RT1052/m-p/1076220#M9015</guid>
      <dc:creator>ffloree</dc:creator>
      <dc:date>2020-06-29T08:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calling HAB API to authenticate signature on RT1052</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Calling-HAB-API-to-authenticate-signature-on-RT1052/m-p/1076221#M9016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp; When you close the HAB, you still can debug the code on your side with the debugger?&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;-&amp;nbsp;I can't debug the original code with signature, because the code run in flash, once JTAG downloads a new code into flash, the signature verification will be failed and the board couldn't bootup after power cycle.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp; Please also tell me which IDE and the debugger you are using now? MCUXPresso IDE?&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;- I am using IAR with debugger Jlink.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2020 08:25:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Calling-HAB-API-to-authenticate-signature-on-RT1052/m-p/1076221#M9016</guid>
      <dc:creator>ffloree</dc:creator>
      <dc:date>2020-06-29T08:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calling HAB API to authenticate signature on RT1052</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Calling-HAB-API-to-authenticate-signature-on-RT1052/m-p/1076222#M9017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this issue has been fixed, it was caused by some clock gates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2020 08:39:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Calling-HAB-API-to-authenticate-signature-on-RT1052/m-p/1076222#M9017</guid>
      <dc:creator>ffloree</dc:creator>
      <dc:date>2020-07-01T08:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calling HAB API to authenticate signature on RT1052</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Calling-HAB-API-to-authenticate-signature-on-RT1052/m-p/1076223#M9018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="308322" data-username="ffloree" href="https://community.nxp.com/people/ffloree" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: none; font-size: 1.286rem;"&gt;tom fang&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks for your updated information.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Which detail clock gates you modified to fix the issues?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Kerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2020 08:51:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Calling-HAB-API-to-authenticate-signature-on-RT1052/m-p/1076223#M9018</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-07-01T08:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calling HAB API to authenticate signature on RT1052</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Calling-HAB-API-to-authenticate-signature-on-RT1052/m-p/1076224#M9019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi @Kerryzhou&lt;/P&gt;&lt;P&gt;It's "dcp_clk" on register&amp;nbsp;CCM_CCGR0, this clock was off.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2020 03:33:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Calling-HAB-API-to-authenticate-signature-on-RT1052/m-p/1076224#M9019</guid>
      <dc:creator>ffloree</dc:creator>
      <dc:date>2020-07-02T03:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calling HAB API to authenticate signature on RT1052</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Calling-HAB-API-to-authenticate-signature-on-RT1052/m-p/1076225#M9020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="308322" data-username="ffloree" href="https://community.nxp.com/people/ffloree" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: underline; font-size: 1.286rem;"&gt;tom fang&lt;/A&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Thanks so much for your sharing!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Kerry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2020 08:01:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Calling-HAB-API-to-authenticate-signature-on-RT1052/m-p/1076225#M9020</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-07-02T08:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calling HAB API to authenticate signature on RT1052</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Calling-HAB-API-to-authenticate-signature-on-RT1052/m-p/1076226#M9021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;Would you be able to share your HAB API code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;hy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2020 06:07:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Calling-HAB-API-to-authenticate-signature-on-RT1052/m-p/1076226#M9021</guid>
      <dc:creator>HeMyFAE</dc:creator>
      <dc:date>2020-08-27T06:07:13Z</dc:date>
    </item>
  </channel>
</rss>

