<?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: RT1024 second bootloader double bank in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/RT1024-second-bootloader-double-bank/m-p/2044598#M234027</link>
    <description>&lt;P&gt;Finally I tested with a hello world image and it works, so we have a problem, but it does not come from the bootloader, nor from the image configuration, but from the code itself.&lt;BR /&gt;Thank you very much for your help!&lt;/P&gt;</description>
    <pubDate>Fri, 14 Feb 2025 14:33:31 GMT</pubDate>
    <dc:creator>Gaetan</dc:creator>
    <dc:date>2025-02-14T14:33:31Z</dc:date>
    <item>
      <title>RT1024 second bootloader double bank</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1024-second-bootloader-double-bank/m-p/2041077#M233826</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Our final goal: &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;- Be able to write an image from the RAM into a bank of the flash (with a dual bank system) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;- After restarting the uP, check the integrity of the image and then boot on this new bank&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;After reading different documentation we found the document MCUOTASBLSFWUG and reconfigured the RT1020 example to be compatible with the RT1024. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;When we load the bootloader generated, in flash, using the software 'LINKFLASH', we can connect via ISP using the software 'MCU-BOOT-Utility'.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;First problem if we restart the uP we can no longer connect.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;The configuration of the boot pins is '10' internal boot, for the others BOOT_CFGX they are all zero.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Second problem, we try to load our image at the configured address (0x60200000) and the image does not boot.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;We set this Defined symbols : XIP_BOOT_HEADER_ENABLE to 0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Our questions are:&lt;BR /&gt;- Is the SBL project the most relevant to use to develop our second bootloader?&lt;BR /&gt;- After programming our bootloader, is the pin configuration correct?&lt;BR /&gt;- Is there a special configuration at the project level on MCUExpresso to make the image bootable with the second bootloader?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 17:29:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1024-second-bootloader-double-bank/m-p/2041077#M233826</guid>
      <dc:creator>Gaetan</dc:creator>
      <dc:date>2025-02-10T17:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: RT1024 second bootloader double bank</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1024-second-bootloader-double-bank/m-p/2042756#M233937</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/246648"&gt;@Gaetan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for contacting us and for your interest!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just want to understand this phrase better:&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;When we load the bootloader generated, in flash, using the software 'LINKFLASH', we can connect via ISP using the software 'MCU-BOOT-Utility'&lt;/STRONG&gt;.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;First problem if we restart the uP we can no longer connect.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;After programming the ported SBL, do you see this bootloader executing ? After testing by loading a blinky with the LINKFLASH on RT1024, I had to make a reset to see the blinky running. The SBL prints to UART, when it is running. Have you ever seen any bootloader messages?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regarding -&lt;STRONG&gt; Is the SBL project the most relevant to use to develop our second bootloader?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;The SBL is not under active development since 2021, still is is a good reference thanks to the security features and OTA capabilities that it provides. If we check the &lt;A href="https://github.com/nxp-mcuxpresso/sbl/commit/416aa95c78a18a57357a08f6436d883cde41e0a8" target="_self"&gt;readme&lt;/A&gt;, on the github, you will find that development team recommends the MCU boot opensource project. However, the this project is also not ported for the&amp;nbsp; RT1024, but it is for the RT1020, as I mentioned on this &lt;A href="https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Jump-to-ROM-bootloader-from-application-in-i-MX-RT1024/m-p/2042074#M33435" target="_self"&gt;thread&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;I am not recommending you to jump directly to the MCU boot open source, feel free to pick the option that works better for you. Instead I mention this, in case you want&amp;nbsp; to consider other option, simply because the MCU boot open source is on active development.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regarding - &lt;STRONG&gt;After programming our bootloader, is the pin configuration correct?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;The SBL needs to boot on internal bootloader mode, so I think&amp;nbsp; the boot mode settings are correct.&lt;/P&gt;
&lt;P&gt;Regarding&amp;nbsp;&lt;SPAN&gt;-&lt;STRONG&gt; Is there a special configuration at the project level on MCUExpresso to make the image bootable with the second bootloader?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;I can not tell, because I do not know all the steps you followed from the SBL user guide. If you follow all the steps, I do not see a missing step to boot the target SFW image.&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;Please correct me, if I am wrong, but I have not seen the SBL for the MCUXpresso IDE tool chain. Which IDE are you using? is ARM GCC instead?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I hope I could help you&lt;/P&gt;
&lt;P&gt;Diego&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2025 16:58:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1024-second-bootloader-double-bank/m-p/2042756#M233937</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2025-02-12T16:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: RT1024 second bootloader double bank</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1024-second-bootloader-double-bank/m-p/2044476#M234013</link>
      <description>&lt;P&gt;Thank you for your answer.&lt;BR /&gt;Following your advice we switched to MCUBoot.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;As we also have an RT1064 uP in our application, we took the example from the SDK for this uP.&lt;BR /&gt;The bootloader compiles well, we can load it in flash, but our application does not work, we have a hardfault.&lt;BR /&gt;We have tried different configurations, which all lead to the same result.&lt;/P&gt;&lt;P&gt;We do not want, for the moment, to go through the imgtool tool to create a header, this is not very practical, because we are in the development phase, so first, we added a partition MCUBoot_header to the address 0x70040000 of our flash and added the necessary structure. We put our application at the address 0x70040400.&lt;BR /&gt;We removed the key verification.&lt;/P&gt;&lt;P&gt;And we have enabled the SINGLE_IMAGE parameter&lt;BR /&gt;After loading our program in flash, we restart the bootloader in debug mode.&lt;BR /&gt;The bootloader does the header check and it is valid.&lt;BR /&gt;When arriving at the jump there is the following code :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;vt &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;struct&lt;/SPAN&gt; &lt;SPAN&gt;arm_vector_table&lt;/SPAN&gt; &lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt;)(&lt;/SPAN&gt;&lt;SPAN&gt;flash_base&lt;/SPAN&gt; &lt;SPAN&gt;+&lt;/SPAN&gt; &lt;SPAN&gt;rsp&lt;/SPAN&gt;&lt;SPAN&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;br_image_off&lt;/SPAN&gt; &lt;SPAN&gt;+ &lt;/SPAN&gt;&lt;SPAN&gt;rsp&lt;/SPAN&gt;&lt;SPAN&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;br_hdr&lt;/SPAN&gt;&lt;SPA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&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;at this time vt = 0x0x7004000, which seems correct.&lt;BR /&gt;And vt.msp = 0x20020000 and vt.reset = 0x7004071D.&lt;BR /&gt;The address of the ResetISR does not match that of the .map which is = 0x7004071C.&lt;BR /&gt;We tried to hardcode the address, but the result is the same.&lt;BR /&gt;&lt;BR /&gt;Do you have any advice?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 10:06:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1024-second-bootloader-double-bank/m-p/2044476#M234013</guid>
      <dc:creator>Gaetan</dc:creator>
      <dc:date>2025-02-14T10:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: RT1024 second bootloader double bank</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/RT1024-second-bootloader-double-bank/m-p/2044598#M234027</link>
      <description>&lt;P&gt;Finally I tested with a hello world image and it works, so we have a problem, but it does not come from the bootloader, nor from the image configuration, but from the code itself.&lt;BR /&gt;Thank you very much for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 14:33:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/RT1024-second-bootloader-double-bank/m-p/2044598#M234027</guid>
      <dc:creator>Gaetan</dc:creator>
      <dc:date>2025-02-14T14:33:31Z</dc:date>
    </item>
  </channel>
</rss>

