<?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: Update image of signed application Fails for lwip_httpsrv_ota_enet demo on EVK-MIMXRT1064 in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Update-image-of-signed-application-Fails-for-lwip-httpsrv-ota/m-p/1500156#M20910</link>
    <description>&lt;P&gt;Dear&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/56840" target="_self"&gt;&lt;SPAN class=""&gt;jeremyzhou&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I found the problem. The&amp;nbsp;instruction in&amp;nbsp;&lt;STRONG&gt;readme.txt&lt;/STRONG&gt; file of &lt;EM&gt;lwip_httpsrv_ota_enet&lt;/EM&gt; project&amp;nbsp; lacks one important information!&lt;/P&gt;&lt;P&gt;In the section "&lt;EM&gt;Running the demo&lt;/EM&gt;" it is written:&lt;/P&gt;&lt;P&gt;"...&lt;/P&gt;&lt;P&gt;&lt;EM&gt;7. After the file is uploaded, click "Reboot" button to start newly uploaded firmware in test mode.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;8. Once the updated firmware executes, the "Accept update" button becomes active. Click it to make the update permanent.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;..etc"&lt;/P&gt;&lt;P&gt;Actually, after the step 7 the execution stalls and it is necessary those steps (just call them 7b and 7c )&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;7b:&amp;nbsp;&amp;nbsp;issue again command 'jump ResetISR'&amp;nbsp;from debugger console&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;7c:&amp;nbsp; resume the application to run it&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;After this the updated firmware finally executes!&lt;/P&gt;</description>
    <pubDate>Wed, 03 Aug 2022 09:40:40 GMT</pubDate>
    <dc:creator>ulivinico1</dc:creator>
    <dc:date>2022-08-03T09:40:40Z</dc:date>
    <item>
      <title>Update image of signed application Fails for lwip_httpsrv_ota_enet demo on EVK-MIMXRT1064</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Update-image-of-signed-application-Fails-for-lwip-httpsrv-ota/m-p/1498077#M20869</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm&amp;nbsp;testing the demo &lt;EM&gt;lwip_httpsrv_ota_enet&lt;/EM&gt; on EVK-MIMXRT1064.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;First, I've downloaded&amp;nbsp;mcuboot_opensource and executed Bootloader Version 1.7.2&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then&amp;nbsp;&lt;/SPAN&gt;I run the demo &lt;EM&gt;lwip_httpsrv_ota_enet&lt;/EM&gt; successfully, I give the command 'jump ResetISR' and&amp;nbsp;the terminal displays the following:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Initializing PHY...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;************************************************&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;mbedSSL HTTPS Server example&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;************************************************&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;IPv4 Address : 192.168.0.102&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;IPv4 Subnet mask : 255.255.255.0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;IPv4 Gateway : 192.168.0.100&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;************************************************&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Then, with a web browser I connect to&amp;nbsp;&lt;A href="https://192.168.0.102/" target="_blank" rel="noopener nofollow noreferrer"&gt;https://192.168.0.102&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see&amp;nbsp;the main web page of the example and I can upload a bin file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I make signed application image (i.e. of Hello_world) of a bin file with the command&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;python imgtool.py sign --key sign-rsa2048-priv.pem --align 4 --header-size 0x400 --pad-header --slot-size 0x200000 --max-sectors 800 --version "1.0" hello_world.bin hello_world_SIGNED.bin&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I obtain the signed file&amp;nbsp;&lt;FONT face="courier new,courier"&gt;hello_world_SIGNED.bin&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I upload that file from the web page button and I can read from serial&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;store_update_image: processed 14044 bytes&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;store_update_image: upload complete&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;After that I push the&amp;nbsp;"Reboot" button as requested in readme file, and the board communicates :&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;write magic number offset = 0x33ff00&lt;/FONT&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;update_image_state(1): 0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;SystemReset&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;And after that, the system &lt;U&gt;hangs&amp;nbsp;&lt;/U&gt;.&lt;/P&gt;&lt;P&gt;In theory, the application had to start and the browser had to activate the "Accept update" button. But nothing happens. I have to restart the board and I read the bootloader message&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Bootloader Version 1.7.2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Secondary image: magic=good, swap_type=0x1, copy_done=0x3, image_ok=0x3&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Boot source: none&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Failed reading image headers; Image=0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Unable to find bootable image&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;- What am i doing wrong in preparing the signed application?&lt;/P&gt;&lt;P&gt;- And why do I have to reprogram &lt;EM&gt;lwip_httpsrv_ota_enet&lt;/EM&gt; every time after failing to load the image?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 13:48:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Update-image-of-signed-application-Fails-for-lwip-httpsrv-ota/m-p/1498077#M20869</guid>
      <dc:creator>ulivinico1</dc:creator>
      <dc:date>2022-07-29T13:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Update image of signed application Fails for lwip_httpsrv_ota_enet demo on EVK-MIMXRT1064</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Update-image-of-signed-application-Fails-for-lwip-httpsrv-ota/m-p/1500145#M20909</link>
      <description>&lt;P&gt;Hi，&lt;BR /&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;I think I need more information, on whether you can illustrate the steps of testing you did via sharing screenshots, as it can help me to figure out the issue.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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;&amp;nbsp;&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;</description>
      <pubDate>Wed, 03 Aug 2022 09:23:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Update-image-of-signed-application-Fails-for-lwip-httpsrv-ota/m-p/1500145#M20909</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2022-08-03T09:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Update image of signed application Fails for lwip_httpsrv_ota_enet demo on EVK-MIMXRT1064</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Update-image-of-signed-application-Fails-for-lwip-httpsrv-ota/m-p/1500156#M20910</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/56840" target="_self"&gt;&lt;SPAN class=""&gt;jeremyzhou&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I found the problem. The&amp;nbsp;instruction in&amp;nbsp;&lt;STRONG&gt;readme.txt&lt;/STRONG&gt; file of &lt;EM&gt;lwip_httpsrv_ota_enet&lt;/EM&gt; project&amp;nbsp; lacks one important information!&lt;/P&gt;&lt;P&gt;In the section "&lt;EM&gt;Running the demo&lt;/EM&gt;" it is written:&lt;/P&gt;&lt;P&gt;"...&lt;/P&gt;&lt;P&gt;&lt;EM&gt;7. After the file is uploaded, click "Reboot" button to start newly uploaded firmware in test mode.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;8. Once the updated firmware executes, the "Accept update" button becomes active. Click it to make the update permanent.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;..etc"&lt;/P&gt;&lt;P&gt;Actually, after the step 7 the execution stalls and it is necessary those steps (just call them 7b and 7c )&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;7b:&amp;nbsp;&amp;nbsp;issue again command 'jump ResetISR'&amp;nbsp;from debugger console&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;7c:&amp;nbsp; resume the application to run it&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;After this the updated firmware finally executes!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 09:40:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Update-image-of-signed-application-Fails-for-lwip-httpsrv-ota/m-p/1500156#M20910</guid>
      <dc:creator>ulivinico1</dc:creator>
      <dc:date>2022-08-03T09:40:40Z</dc:date>
    </item>
  </channel>
</rss>

