<?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: MIMXRT1040 - Application doesn't start when Secured. in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/MIMXRT1040-Application-doesn-t-start-when-Secured/m-p/1782905#M218212</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/176747"&gt;@riccardo_carlot&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you import the axf file instead of the bin file? Actually I converted it into bin file and then import it in the Build image tab, with the same configuration, and wirte the image into RT1040 for the first time, but found the area started from 0x607f8000 contains 0xFF only, but if you use the flash program tool to modify some data within this area and write the image again, you will have the encrypted area from 0x607f8000 to 0x607f9000, I will check later if it was due to BEE ignore an just erased space .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, changing the data within the empty area would not affect app booting.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the problem is still there, is it possible to fetch the content in the flash and send to us for analyzation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&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;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jan 2024 09:28:17 GMT</pubDate>
    <dc:creator>Kan_Li</dc:creator>
    <dc:date>2024-01-04T09:28:17Z</dc:date>
    <item>
      <title>MIMXRT1040 - Application doesn't start when Secured.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIMXRT1040-Application-doesn-t-start-when-Secured/m-p/1779454#M217794</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've a couple of issues about the security on my XRT1040. I'm working with the EVK.MIMXRT1040.&lt;/P&gt;&lt;P&gt;I'm creating my L2BOOT but now, to make it easy, I turned it in a very simple led toggle code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="riccardo_carlot_0-1703425773382.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/255720iF3EB99B8FE230ECF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="riccardo_carlot_0-1703425773382.png" alt="riccardo_carlot_0-1703425773382.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is my flash configuration:&lt;/P&gt;&lt;P&gt;- BOARD FLASH area in which i put the application code&lt;BR /&gt;- ENCRYPTED AREA where I want to save some data that I want to encrypt with OTPMK&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="riccardo_carlot_1-1703425848248.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/255721iB241C4B527613732/image-size/medium?v=v2&amp;amp;px=400" role="button" title="riccardo_carlot_1-1703425848248.png" alt="riccardo_carlot_1-1703425848248.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Basically I'm in this situation, I have a large amount of empty flash between my boot code area and the area I reserved for encryption.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="riccardo_carlot_3-1703425998493.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/255723iE2B96C8B8903DABB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="riccardo_carlot_3-1703425998493.png" alt="riccardo_carlot_3-1703425998493.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As I already mentioned, I want the Encrypted area to be encrypted with the OTPMK, but I want also the authentication of the boot image, so this is how I set up the Provisioning Tool:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="riccardo_carlot_4-1703426229646.png" style="width: 588px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/255725iFB33C0C15C8E5A8A/image-dimensions/588x381?v=v2" width="588" height="381" role="button" title="riccardo_carlot_4-1703426229646.png" alt="riccardo_carlot_4-1703426229646.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After this, I loaded the application on my EVK and, after the reset, the application start as expected (just a simple toggle of the the green led).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now my problems:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I read the entire memory content using the Flash Programmer utility in the Provisioning Tool. What I saw is an encrypted region, at addres 0x607F8000, larger than the lenght I set in the building image settings. &lt;STRONG&gt;Why this difference?&lt;/STRONG&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="riccardo_carlot_6-1703426903650.png" style="width: 635px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/255727i5A64DCA0C7261443/image-dimensions/635x226?v=v2" width="635" height="226" role="button" title="riccardo_carlot_6-1703426903650.png" alt="riccardo_carlot_6-1703426903650.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. After the previous procedere my boot applications starts properly. But, when I try to&lt;U&gt; write some datas in my empty area&lt;/U&gt; (the space between the end of my application and the beggining of the encrypted area)&lt;STRONG&gt; the application doens't start.&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;For example, if I write just a simple value at address 0x6005E000 and then I restart the device, my boot application doesn't start the execution (it's easy to see since it is a simple toggle led example)&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="riccardo_carlot_7-1703427216169.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/255728iA5A83759A3DEAB1F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="riccardo_carlot_7-1703427216169.png" alt="riccardo_carlot_7-1703427216169.png" /&gt;&lt;/span&gt;&lt;P&gt;I suppose that the problem regards the HAB and the authentication process of the image. But this space should be outside my application code, so it shouldn't be interested about the HAB process...&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;It would be very appreciated your help.&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Dec 2023 14:22:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIMXRT1040-Application-doesn-t-start-when-Secured/m-p/1779454#M217794</guid>
      <dc:creator>riccardo_carlot</dc:creator>
      <dc:date>2023-12-24T14:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: MIMXRT1040 - Application doesn't start when Secured.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIMXRT1040-Application-doesn-t-start-when-Secured/m-p/1779830#M217840</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/176747"&gt;@riccardo_carlot&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I have the bin files for&amp;nbsp;&lt;SPAN&gt;led toggle code as well as the one for&amp;nbsp; encrypted area? I will try to reproduce this issue here with&amp;nbsp;EVK.MIMXRT1040.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&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;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 03:19:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIMXRT1040-Application-doesn-t-start-when-Secured/m-p/1779830#M217840</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2023-12-26T03:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: MIMXRT1040 - Application doesn't start when Secured.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIMXRT1040-Application-doesn-t-start-when-Secured/m-p/1780039#M217872</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/59276"&gt;@Kan_Li&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for the interest on my problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here attached the .bin of the toogle example. This is the flash configuration of the project:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="riccardo_carlot_0-1703586427069.png" style="width: 603px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/255909iECC271B7EDD2A17D/image-dimensions/603x47?v=v2" width="603" height="47" role="button" title="riccardo_carlot_0-1703586427069.png" alt="riccardo_carlot_0-1703586427069.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the ENCRYPTED AREA I saved just some dummy values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Riccardo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 10:29:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIMXRT1040-Application-doesn-t-start-when-Secured/m-p/1780039#M217872</guid>
      <dc:creator>riccardo_carlot</dc:creator>
      <dc:date>2023-12-26T10:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: MIMXRT1040 - Application doesn't start when Secured.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIMXRT1040-Application-doesn-t-start-when-Secured/m-p/1782905#M218212</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/176747"&gt;@riccardo_carlot&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you import the axf file instead of the bin file? Actually I converted it into bin file and then import it in the Build image tab, with the same configuration, and wirte the image into RT1040 for the first time, but found the area started from 0x607f8000 contains 0xFF only, but if you use the flash program tool to modify some data within this area and write the image again, you will have the encrypted area from 0x607f8000 to 0x607f9000, I will check later if it was due to BEE ignore an just erased space .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, changing the data within the empty area would not affect app booting.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the problem is still there, is it possible to fetch the content in the flash and send to us for analyzation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&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;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 09:28:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIMXRT1040-Application-doesn-t-start-when-Secured/m-p/1782905#M218212</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2024-01-04T09:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: MIMXRT1040 - Application doesn't start when Secured.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIMXRT1040-Application-doesn-t-start-when-Secured/m-p/1783308#M218246</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/176747"&gt;@riccardo_carlot&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking into your bin file, seems it occupies the encrypted area till 0x60800000, so HAB calculated all the areas , and even you just modified somewhere inside the empty area , the boot would fail. I think it was due to you defined encrypted area in the IDE, actually you may just let the SPT define this region for BEE, and let IDE only generate the application image that is signed by HAB, and in that case HAB will not take the empty area into consideration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that makes sense,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&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;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 02:31:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIMXRT1040-Application-doesn-t-start-when-Secured/m-p/1783308#M218246</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2024-01-05T02:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: MIMXRT1040 - Application doesn't start when Secured.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIMXRT1040-Application-doesn-t-start-when-Secured/m-p/1784498#M218389</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/59276"&gt;@Kan_Li&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry for the .bin file. I think the attached one is correct. It contains dummy data at 0x607f8000.&lt;/P&gt;&lt;P&gt;Yes I'm usign the .axf to buil the image, but I tried with the .bin too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Actually the SPT is able to make Authentication and Encryption all together (using OTPMK).&lt;/P&gt;&lt;P&gt;Perhaps, the solutions should come in two step:&lt;/P&gt;&lt;P&gt;1 - Build and Load the Authenticated L2BOOT&amp;nbsp;&lt;/P&gt;&lt;P&gt;2- Load the Encrypted area&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this way the SPT should not take in account the space in the middle ot the two areas. But it seems not possible the Encryption with OTPMK without HAB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 14:42:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIMXRT1040-Application-doesn-t-start-when-Secured/m-p/1784498#M218389</guid>
      <dc:creator>riccardo_carlot</dc:creator>
      <dc:date>2024-01-08T14:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: MIMXRT1040 - Application doesn't start when Secured.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIMXRT1040-Application-doesn-t-start-when-Secured/m-p/1784752#M218407</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/176747"&gt;@riccardo_carlot&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, your understanding is correct. Only when HAB is enabled the OTPMK can be used, but the steps for implementation should be :&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;&lt;SPAN&gt;&lt;SPAN class="ui-provider ee bpd bbm bpe bpf bpg bph bpi bpj bpk bpl bpm bpn bpo bpp bpq bpr bps bpt bpu bpv bpw bpx bpy bpz bqa bqb bqc bqd bqe bqf bqg bqh bqi bqj"&gt;Load plain text&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;data into&amp;nbsp;&lt;SPAN&gt;&lt;SPAN class="ui-provider ee bpd bbm bpe bpf bpg bph bpi bpj bpk bpl bpm bpn bpo bpp bpq bpr bps bpt bpu bpv bpw bpx bpy bpz bqa bqb bqc bqd bqe bqf bqg bqh bqi bqj"&gt;the encrypted area with the help of SPT's flash program tool.(make sure it is 16B aligned)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider ee bpd bbm bpe bpf bpg bph bpi bpj bpk bpl bpm bpn bpo bpp bpq bpr bps bpt bpu bpv bpw bpx bpy bpz bqa bqb bqc bqd bqe bqf bqg bqh bqi bqj"&gt;2.&amp;nbsp;&lt;SPAN&gt;Build and Load the BEE OTPMK Authenticated L2BOOT image by SPT which defines the encrypted area is set to 0x607f8000 and length is 0x1000. (Because the encrypted area does not cover L2BOOT, so it will not influence the authentication. And the preload encrypted area will not erase.)&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope that helps,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&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;</description>
      <pubDate>Tue, 09 Jan 2024 02:19:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIMXRT1040-Application-doesn-t-start-when-Secured/m-p/1784752#M218407</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2024-01-09T02:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: MIMXRT1040 - Application doesn't start when Secured.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIMXRT1040-Application-doesn-t-start-when-Secured/m-p/1784950#M218427</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/59276"&gt;@Kan_Li&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;following your suggestion I should load the plain text in the encrypted area first, then I should activate the decryption when I load the L2 BOOT in a region outside the project boundaries (&amp;nbsp;@&lt;SPAN&gt;0x607f8000&lt;/SPAN&gt;).&lt;BR /&gt;Maybe this procedure could avoid the HAB failure, but who make the Encryption of the plain text I saved in the encrypted region with OTPMK?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 07:00:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIMXRT1040-Application-doesn-t-start-when-Secured/m-p/1784950#M218427</guid>
      <dc:creator>riccardo_carlot</dc:creator>
      <dc:date>2024-01-09T07:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: MIMXRT1040 - Application doesn't start when Secured.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIMXRT1040-Application-doesn-t-start-when-Secured/m-p/1785060#M218444</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/176747"&gt;@riccardo_carlot&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DCP does the encryption during the 2nd step since you are using OTPMK, and you may test it as below:&lt;/P&gt;
&lt;P&gt;1. erase all&lt;/P&gt;
&lt;P&gt;2. do the 2nd step - after this the encrypted area starting&amp;nbsp;@0x607f8000 is still FF&lt;/P&gt;
&lt;P&gt;3. modify some content in the encrypted area by the flash program tool from SPT, it could be 00,11,22,,etc.&lt;/P&gt;
&lt;P&gt;4. do the 2nd step again, then you will have the cipher text in the encrypted area.&lt;/P&gt;
&lt;P&gt;DCP encryption can also be triggered in the application.&amp;nbsp; Please refer to&amp;nbsp;evkmimxrt1040\driver_examples\dcp for more details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&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;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 08:41:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIMXRT1040-Application-doesn-t-start-when-Secured/m-p/1785060#M218444</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2024-01-09T08:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: MIMXRT1040 - Application doesn't start when Secured.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIMXRT1040-Application-doesn-t-start-when-Secured/m-p/1786941#M218565</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/59276"&gt;@Kan_Li&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I tried your suggestion:&lt;/P&gt;&lt;P&gt;1- Erase all, then load the plain text on the encrypted area (some dummy 0x47 data at 0x607FC000)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="riccardo_carlot_0-1704957929147.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/257695i353059352F9D6CBD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="riccardo_carlot_0-1704957929147.png" alt="riccardo_carlot_0-1704957929147.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2 Execute the SPT procedure to load L2BOOT setting the ecryption area at the same address 0x607fc000&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="riccardo_carlot_1-1704958002204.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/257696i139ACC02AEC9FF31/image-size/medium?v=v2&amp;amp;px=400" role="button" title="riccardo_carlot_1-1704958002204.png" alt="riccardo_carlot_1-1704958002204.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After this, the content in the encrypted area (0x607fc000) didn't change. It seems the encryption didn't work on a region outside the L2BOOT memory definition:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="riccardo_carlot_2-1704958131767.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/257697iDB8C4D7EF8D0F850/image-size/medium?v=v2&amp;amp;px=400" role="button" title="riccardo_carlot_2-1704958131767.png" alt="riccardo_carlot_2-1704958131767.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Riccardo&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 07:31:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIMXRT1040-Application-doesn-t-start-when-Secured/m-p/1786941#M218565</guid>
      <dc:creator>riccardo_carlot</dc:creator>
      <dc:date>2024-01-11T07:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: MIMXRT1040 - Application doesn't start when Secured.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIMXRT1040-Application-doesn-t-start-when-Secured/m-p/1788487#M218691</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/176747"&gt;@riccardo_carlot&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry! My bad! The correct process should be:&lt;/P&gt;
&lt;P&gt;1. Erase All&lt;/P&gt;
&lt;P&gt;2. Write image via SPT&lt;/P&gt;
&lt;P&gt;3. Program the encrypted area via SPT's Flash Program Tool&lt;/P&gt;
&lt;P&gt;4. Verify/read the encrypted area via&amp;nbsp;SPT's Flash Program Tool&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;BR /&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;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 05:05:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIMXRT1040-Application-doesn-t-start-when-Secured/m-p/1788487#M218691</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2024-01-15T05:05:05Z</dc:date>
    </item>
  </channel>
</rss>

