<?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: Flashloader inside application in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951907#M4317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" class="" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="200917" data-objecttype="3" href="https://community.nxp.com/people/DanielePagani"&gt;Daniele Pagani&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;According to the steps you did, I don't find something wrong with them until now.&lt;BR /&gt;I'd like to know whether you do the same testing with the ivt_flashloader.bin I shared before.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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>Fri, 23 Aug 2019 07:30:30 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2019-08-23T07:30:30Z</dc:date>
    <item>
      <title>Flashloader inside application</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951889#M4299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Dear sirs,&lt;/P&gt;&lt;P&gt;we're&amp;nbsp;working with&amp;nbsp;&lt;SPAN style="color: #4a4a4d; background-color: #ffffff; font-size: 16px;"&gt;i.MX RT1060 EVK board and we're wondering&amp;nbsp;about best practices&amp;nbsp;for In-Application Programming.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4a4a4d; background-color: #ffffff; font-size: 16px;"&gt;We can correctly use Sdphost and Blhost utility, according to:&amp;nbsp;&lt;A href="https://www.nxp.com/webapp/Download?colCode=FLASHLOADER-RT106x-1-GA&amp;amp;appType=license"&gt;Flash loader i.MXRT1060&lt;/A&gt;&lt;A class="link-titled" href="https://cache.nxp.com/secured/assets/downloads/en/programmers/FLASHLOADER-RT106x-1-GA.zip?__gda__=1565027429_41912c0a860b0aec6a744589f0269b4f&amp;amp;fileExt=.zip" title="https://cache.nxp.com/secured/assets/downloads/en/programmers/FLASHLOADER-RT106x-1-GA.zip?__gda__=1565027429_41912c0a860b0aec6a744589f0269b4f&amp;amp;fileExt=.zip"&gt;https://cache.nxp.com/secured/assets/downloads/en/programmers/FLASHLOADER-RT106x-1-GA.zip?__gda__=1565027429_41912c0a860b0aec6a744589f0269b4f&amp;amp;fileExt=.zip&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4a4a4d; background-color: #ffffff; font-size: 16px;"&gt;However, we can not use&amp;nbsp;boot pin mode&amp;nbsp;for hardware's constraints.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4a4a4d; background-color: #ffffff; font-size: 16px;"&gt;So, we're using Rom Apis to set device programmatically into serial download mode:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="color: #333333; background-color: #f5f5f5;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #7a3e9d;"&gt;void&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;bl_serial_downloader&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;void&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt; run_bootloader_ctx_t boot_para;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt; boot_para.B.imageIndex = 0;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt; boot_para.B.serialBootInterface = kEnterBootloader_SerialInterface_USB;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt; boot_para.B.bootMode = kEnterBootloader_Mode_SerialDownloader;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt; boot_para.B.tag = kEnterBootloader_Tag;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt; g_bootloaderTree-&amp;gt;runBootloader( (void *)&amp;amp;boot_para );&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4a4a4d; background-color: #ffffff; font-size: 16px;"&gt;&lt;SPAN&gt;However, according to&amp;nbsp;&lt;A href="https://community.nxp.com/thread/508806"&gt;ROM APIs&lt;/A&gt;&amp;nbsp;this feature is not available for all i.MX RT processors and our project can require usage of other processors.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4a4a4d; background-color: #ffffff; font-size: 16px;"&gt;&lt;SPAN&gt;So, we guess to load Flashloader application inside main application and then run it if required.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #4a4a4d; font-size: medium; "&gt;We define an array&amp;nbsp;&lt;EM style="caret-color: #4a4a4d; "&gt;flashloader&lt;/EM&gt;&amp;nbsp;of bytes with Flashloader bin file and then we call a jump to application:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4a4a4d; background-color: #ffffff; font-size: 16px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;.data.flashloader&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;0x0000000020000000&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;0x161a1 ./source/led_blinky.o&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;0x0000000020000000&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;flashloader&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;*fill* &lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;0x00000000200161a1&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;0x3 ff&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4a4a4d; background-color: #ffffff; font-size: 16px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="color: #333333; background-color: #f5f5f5;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;JumpApplication&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;(*(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;*)&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;0x&lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;20000400&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;*(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;*)&lt;/SPAN&gt;&lt;SPAN style="color: #4b69c6;"&gt;0x&lt;/SPAN&gt;&lt;SPAN style="color: #9c5d27;"&gt;20000404&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="color: #4a4a4d; background-color: #ffffff; font-size: 16px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="color: #333333; background-color: #f5f5f5;"&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV style="color: #333333; background-color: #f5f5f5;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;__STATIC_FORCEINLINE &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;void&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;JumpApplication&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;topOfMainStack&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7a3e9d;"&gt;AppAddr&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;__ASM &lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;volatile&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;mov SP, &lt;/SPAN&gt;&lt;SPAN style="color: #660000;"&gt;%&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; : : &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;r&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;topOfMainStack&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; : &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;__ASM &lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;volatile&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;mov PC, &lt;/SPAN&gt;&lt;SPAN style="color: #660000;"&gt;%&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; : : &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;r&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;AppAddr&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; : &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #4a4a4d; font-size: medium; "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #4a4a4d; font-size: medium; "&gt;This solution doesn't work, so, can you suggest something about the matter?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #4a4a4d; font-size: medium; "&gt;BR,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #4a4a4d; font-size: medium; "&gt;Daniele&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2019 16:04:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951889#M4299</guid>
      <dc:creator>DanielePagani</dc:creator>
      <dc:date>2019-08-05T16:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Flashloader inside application</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951890#M4300</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="200917" data-username="DanielePagani" href="https://community.nxp.com/people/DanielePagani"&gt;Daniele Pagani&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;Before answer your question, I have one inquiry that needs to confirm with you.&lt;BR /&gt;According to your statement, it seems that you assign a flash area to storge the flashloader code, then jump to the flashloader code via executing the JumpApplication function, is it right? If not, I'll appreciate if you can introduce the mechanism of your implementation in details.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&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 style="min- padding: 0px;"&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;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2019 01:46:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951890#M4300</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-08-07T01:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Flashloader inside application</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951891#M4301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Hi,&lt;/P&gt;&lt;P&gt;we did tests using 4&amp;nbsp;scenario:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;iled_blinky in Ram&lt;UL&gt;&lt;LI&gt;compile&amp;nbsp;and link&amp;nbsp;iled_blinky SDK example&lt;/LI&gt;&lt;LI&gt;use&amp;nbsp;"Linking application in RAM" option&lt;/LI&gt;&lt;LI&gt;create&amp;nbsp;.bin file using Binary utilities&lt;/LI&gt;&lt;LI&gt;copy&amp;nbsp;.bin file's bytes to C array and put the array inside code&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;check the address of the array in Ram then jump to it &amp;lt;-- it works fine&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI style="margin: 0.2em 0px;"&gt;iled_blinky in&amp;nbsp;Flash&lt;UL style="margin: 0px; padding: 0px 0px 0px 30px;"&gt;&lt;LI style="margin: 0.2em 0px;"&gt;compile&amp;nbsp;and link&amp;nbsp;iled_blinky SDK example&lt;/LI&gt;&lt;LI style="margin: 0.2em 0px;"&gt;use&amp;nbsp;"Linking application in RAM" option&lt;/LI&gt;&lt;LI style="margin: 0.2em 0px;"&gt;create&amp;nbsp;.bin file using Binary utilities&lt;/LI&gt;&lt;LI style="margin: 0.2em 0px;"&gt;write .bin content to Flash at address 0x60100000 by using sdphost and blhost utilities&lt;/LI&gt;&lt;LI style="margin: 0.2em 0px;"&gt;during execution, copy Flash content (by address 0x60100000 for the right length) to Ram&lt;/LI&gt;&lt;LI style="margin: 0.2em 0px;"&gt;check the address of the array in Ram then jump to it &amp;lt;-- it doesn't work&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Flashloader in Ram&lt;UL&gt;&lt;LI&gt;use ivt_flashloader.bin provided with Flashloader's utilities&lt;/LI&gt;&lt;LI&gt;copy .bin file's bytes to C array and put the array inside code&lt;/LI&gt;&lt;LI&gt;check the address of the array in Ram then jump to it &amp;lt;-- it doesn't work&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Flashloader in &lt;/SPAN&gt; Flash&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;write ivt_flashloader.bin to Flash at address 0x60100000 by using sdphost and blhost utilities&lt;/LI&gt;&lt;LI&gt;copy Flash content (by address 0x60100000 for the right length) to Ram&lt;/LI&gt;&lt;LI&gt;check Ram address of the array in Ram and jump to it &amp;lt;-- it doesn't work&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code for scenario 1 - blinky in Ram:&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;uint8_t blinky[19584]={&lt;SPAN class=""&gt; &lt;/SPAN&gt;0x00, 0x00, 0x02, 0x20, 0x09, 0x03, 0x00, 0x20, 0x85, 0x03, 0x00, 0x20, 0x41, ...};&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt; address=(&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;)&amp;amp;blinky[0]; // address=0x20000000&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;JumpApplication(*(&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;*)address, *(&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;*)(address+4));&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;It works fine.&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P&gt;Code for scenario 2 - blinky in Flash:&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;uint8_t blinky[19584]={&lt;SPAN class=""&gt; &lt;/SPAN&gt;0x00, };&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;copy_data((&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;*)&lt;SPAN style="color: #3d3d3d;"&gt;blinky&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;,(&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;*)19584&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt; address=(&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;)&amp;amp;blinky[0]; // address=0x20000024&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;JumpApplication(*(&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;*)address, *(&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;*)(address+4));&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;It doesn't work.&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Code for scenario 3 - flashloader in Ram:&lt;/P&gt;&lt;P style="color: #3f7f5f; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #333333;"&gt;uint8_t flashloader[90529]={&lt;SPAN class=""&gt; &lt;/SPAN&gt;0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ...};&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt; address=(&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;)&amp;amp;&lt;SPAN style="color: #333333;"&gt;flashloader&lt;/SPAN&gt;[0];&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;JumpApplication(*(&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;*)address, *(&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;*)(address+4));&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Code for scenario 4&amp;nbsp;- flashloader in Flash:&lt;/P&gt;&lt;P style="color: #3f7f5f; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #333333;"&gt;uint8_t flashloader[90529]={&lt;SPAN class=""&gt; &lt;/SPAN&gt;0x00, };&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;copy_data((&lt;SPAN style="color: #7f0055;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;*)&lt;SPAN style="color: #333333;"&gt;flashloader&lt;/SPAN&gt;,(&lt;SPAN style="color: #7f0055;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;*)0x60100000,&lt;SPAN style="color: #333333;"&gt;90529&lt;/SPAN&gt;);&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt; address=(&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;)&amp;amp;&lt;SPAN style="color: #333333;"&gt;flashloader&lt;/SPAN&gt;[0];&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;JumpApplication(*(&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;*)address, *(&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;*)(address+4));&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #7f0055;"&gt;&lt;STRONG&gt;int&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;copy_data&lt;/STRONG&gt;(&lt;SPAN style="color: #7f0055;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;* destination_address,&lt;SPAN style="color: #7f0055;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;* source_address,&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt; length){&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;STRONG style="color: #642880;"&gt;memcpy&lt;/STRONG&gt;&lt;/SPAN&gt;(destination_address,source_address,length);&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #7f0055; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&amp;nbsp;return&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt; 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;}&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;We guess we're doing something wrong with start address of JumpApplication.&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Because ivt_flashloader.bin's structure, we tried to add an offset to&amp;nbsp;the start address of 0x400 (header), but it didn't solve the&amp;nbsp;problem.&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;At the end of the story, our idea is to copy from Flash to Ram a binary file (Flashloader) then jump to the execution of that application.&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;BR,&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;Daniele&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2019 06:07:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951891#M4301</guid>
      <dc:creator>DanielePagani</dc:creator>
      <dc:date>2019-08-07T06:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Flashloader inside application</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951892#M4302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jeremyzhou"&gt;jeremyzhou&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;I'm using iMXRT1050 EVK booting from&amp;nbsp; &lt;SPAN class=""&gt;QSPI Flash.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Above is the same as my problem which is likely:&lt;/P&gt;&lt;P&gt;I need a Custom Bootloader which is called 1st Application and being stored on 1st Flash segment. The Custom Bootloader will jump the 2nd Application which is stored on&amp;nbsp; another Flash Segment.&lt;/P&gt;&lt;P&gt;Can I do that way? If Yes, is there any example available?&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2019 08:52:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951892#M4302</guid>
      <dc:creator>thanhnguyenquoc</dc:creator>
      <dc:date>2019-08-07T08:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Flashloader inside application</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951893#M4303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="200917" data-objecttype="3" href="https://community.nxp.com/people/DanielePagani"&gt;Daniele Pagani&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Thanks for your detailed clarification.&lt;BR /&gt;I was wondering if you can share the demo code for the second scenario, as I'd like to do some testing with the MIMXRT1060 board and replicate the phenomenon on my site.&lt;BR /&gt;Looking forward to your reply.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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>Thu, 08 Aug 2019 02:48:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951893#M4303</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-08-08T02:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Flashloader inside application</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951894#M4304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jeremyzhou"&gt;jeremyzhou&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;scenario 2) has 2 projects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, consider Flash partitions:&lt;/P&gt;&lt;P&gt;0x60000000 to 0x60100000 -&amp;gt; Main application&lt;/P&gt;&lt;P&gt;0x60100000 to 0x60200000 -&amp;gt; Slave application (our goal is to start this not-XIP application from Main application)&lt;/P&gt;&lt;P&gt;0x60200000 to ... -&amp;gt; Free&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as first project is concerned (ram_iled_blinky.zip), please, start importing SDK EVK-MIMXRT1060 demo apps -&amp;gt; iled_blinky project.&lt;/P&gt;&lt;P&gt;Then, change C/C++ Build Settings -&amp;gt; Managed Linker Script -&amp;gt; select &lt;EM&gt;Link application to Ram&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;Then create .bin by using Binary Utilities -&amp;gt; Create binary on .axf&lt;/P&gt;&lt;P&gt;Now, we've to write resulting&amp;nbsp;.bin file to address 0x60100000 of Flash.&lt;/P&gt;&lt;P&gt;So, by using sdphost and blhost utilities from Flashloader 1060 Tools (please, boot board in &lt;EM&gt;Serial Downloader Mode&lt;/EM&gt;):&lt;/P&gt;&lt;DIV style="color: #333333; background-color: #f5f5f5;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;dp$ ./sdphost -V -u 0x1fc9,0x0135 -- error-status&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;Status &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;HAB mode&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; = 1450735702 &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;0x56787856&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; HAB disabled.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;Reponse Status = 4042322160 &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;0xf0f0f0f0&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; HAB Success.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;dp$ ./sdphost -V -u 0x1fc9,0x0135 -- write-file 0x20000000 ivt_flashloader.bin &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;Preparing to send 90529 &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;0x161a1&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; bytes to the target.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;1/1&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;0%Status &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;HAB mode&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; = 1450735702 &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;0x56787856&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; HAB disabled.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;Reponse Status = 2290649224 &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;0x88888888&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; Write File complete.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;dp$ ./sdphost -V -u 0x1fc9,0x0135 -- jump-address 0x20000400&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;Status &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;HAB mode&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; = 1450735702 &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;0x56787856&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; HAB disabled.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;dp$ &lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;cd&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; /[...]&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;/Flashloader_RT106x_1.0_GA/Tools/blhost/mac&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;dp$ ./blhost -u 0x15a2,0x0073 -- get-property 1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;Inject &lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;command&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;get-property&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;Response status = 0 &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;0x0&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; Success.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;Response word 1 = 1258422528 &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;0x4b020100&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;Current Version = K2.1.0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;dp$ ./blhost -u 0x15a2,0x0073 -- fill-memory 0x2000 4 0xc0000007&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;Inject &lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;command&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;fill-memory&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;Successful generic response to &lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;command&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;fill-memory&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;Response status = 0 &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;0x0&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; Success.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;dp$ ./blhost -u 0x15a2,0x0073 -- configure-memory 0x9 0x2000&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;Inject &lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;command&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;configure-memory&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;Successful generic response to &lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;command&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;configure-memory&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;Response status = 0 &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;0x0&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; Success.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;dp$ ./blhost -u 0x15a2,0x0073 -- flash-erase-region 0x60100000 0x100000&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;Inject &lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;command&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;flash-erase-region&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;sendCommandGetResponse.readPacket error 5.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;Response status = 10004 &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;0x2714&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; No response packet from target device.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;dp$ ./blhost -u 0x15a2,0x0073 -- flash-erase-region 0x60100000 0x100000&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;Inject &lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;command&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;flash-erase-region&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;Successful generic response to &lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;command&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;flash-erase-region&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;Response status = 0 &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;0x0&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; Success.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;dp$ ./blhost -u 0x15a2,0x0073 -- write-memory 0x60100000 ram_iled_blinky.bin &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;Inject &lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;command&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;write-memory&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;Preparing to send 19580 &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;0x4c7c&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; bytes to the target.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;usbhid: received data phase abort&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;Error: expected commandTag 0x7, received 0x4&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;Warning: Failed to get packet size. Using default size&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;32&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;Successful generic response to &lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;command&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;write-memory&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;1/1&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;100% Completed&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;Successful generic response to &lt;/SPAN&gt;&lt;SPAN style="color: #aa3731; font-weight: bold;"&gt;command&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: #448c27;"&gt;write-memory&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;Response status = 0 &lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt;0x0&lt;/SPAN&gt;&lt;SPAN style="color: #777777;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #333333;"&gt; Success.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333;"&gt;Wrote 19580 of 19580 bytes.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding second project (boot_iled_blinky.zip) , start by importing&amp;nbsp;&lt;SPAN&gt;SDK EVK-MIMXRT1060 demo apps -&amp;gt; iled_blinky project.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Change C/C++ Build Settings -&amp;gt;&amp;nbsp;MCU Settings -&amp;gt; Flash Location 0x60000000 Size 0x100000 (instead of 0x800000 because we've reserved 0x60100000 to 0x60200000 for .bin image of the first project).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #3f7f5f; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="color: #3f7f5f; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Now, create a header file and define two variables:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI style="color: #3f7f5f; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;int value; // this variable is useful for creating an offset of blinky variable address&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="color: #3f7f5f; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;uint8_t blinky[19584]; // this is the content of the previous generated .bin file&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Then, modify main for jumping to blinky's address.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;If we don't set SET_OFFSET, then blinky's address is 0x20000000 and everything works fine (IS_RAM enabled).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;If we set SET_OFFSET, then blinky's address is 0x20000004 and it doesn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;If we set IS_RAM, then blinky is populated by .bin defined array.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;If we don't set IS_RAM, then blinky is populated from Flash&amp;nbsp;(copy Flash to Ram).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Please, advice us if you need more details.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;BR,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Daniele&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #3f7f5f; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2019 07:39:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951894#M4304</guid>
      <dc:creator>DanielePagani</dc:creator>
      <dc:date>2019-08-08T07:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Flashloader inside application</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951895#M4305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="200917" data-objecttype="3" href="https://community.nxp.com/people/DanielePagani"&gt;Daniele Pagani&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;There're some suggestions for you.&lt;BR /&gt;1. Confirm the different image has been programmed to the related flash area.&lt;BR /&gt;2. Use the malloc() function to apply for the RAM area for store the slave application.&lt;BR /&gt;3. The SCB-&amp;gt;VTOR also need to be updated.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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>Fri, 09 Aug 2019 03:08:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951895#M4305</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-08-09T03:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Flashloader inside application</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951896#M4306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jeremyzhou"&gt;jeremyzhou&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;thanks for your suggestions.&lt;/P&gt;&lt;P&gt;I confirm that now we can correctly run XIP and not XIP application by jumping to Flash Address and setting SCB-&amp;gt;VTOR register.&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt; address=(&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;)&amp;amp;blinky[0];&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;SCB-&amp;gt;&lt;SPAN style="color: #0000c0;"&gt;VTOR&lt;/SPAN&gt; = address; // it must be 256 aligned&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;JumpApplication(*(&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;*)address, *(&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;*)(address+4));&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P&gt;As far as malloc is concerned, according to&amp;nbsp;&lt;A href="https://community.nxp.com/message/1100205"&gt;Re: Malloc failed in RT1060-EVK project CSI_RGB565&lt;/A&gt;, it seems that is better don't use it.&lt;/P&gt;&lt;P&gt;Then, according to "ARMv7-M Architecture Reference Manual" B3-13 and&amp;nbsp;&lt;A href="https://community.nxp.com/message/333804"&gt;Re: Relocate verctor table&lt;/A&gt;, SCB-&amp;gt;VTOR must be 256 bytes aligned, so, how can use malloc with custom alignment?&lt;/P&gt;&lt;P&gt;Flashloader demo application uses a custom Linker Script (MIMXRT1062_ram_flashloader.ld), so,&amp;nbsp;it's totally different running standard application (XIP or not-XIP) than this type of application (run from RAM). For standard application, we've to jump to Flash Address. For applications&amp;nbsp;like Flashloader, we've to jump to Ram Address. Is it correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Daniele&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2019 06:42:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951896#M4306</guid>
      <dc:creator>DanielePagani</dc:creator>
      <dc:date>2019-08-12T06:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Flashloader inside application</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951897#M4307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="200917" data-objecttype="3" href="https://community.nxp.com/people/DanielePagani"&gt;Daniele Pagani&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;1) Is it correct?&lt;BR /&gt;-- Yes, it's.&lt;BR /&gt;After reviewing the ARMv7-M Architecture Reference Manual, I confirm that the SCB-&amp;gt;VTOR should be subjected to the constraint of 256 bytes aligned, so the malloc function is not suited for your application anymore, in my opinion, you can use the linker management method as the thread (&lt;A href="https://community.nxp.com/thread/389100"&gt;Placing data into different RAM blocks&lt;/A&gt;&amp;nbsp;) shows.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&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 style="min-height: 8pt; padding: 0px;"&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;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2019 03:34:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951897#M4307</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-08-13T03:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Flashloader inside application</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951898#M4308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jeremyzhou"&gt;jeremyzhou&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;in order to avoid misunderstanding, please, consider we've to do two different steps for XIP and&amp;nbsp;for not-XIP application.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;XIP Application&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #7f0055;"&gt;&lt;STRONG&gt;#define&lt;/STRONG&gt;&lt;/SPAN&gt; JUMP_ADDRESS 0x60200000 // Flash address of your XIP bin file&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;SCB-&amp;gt;&lt;SPAN style="color: #0000c0;"&gt;VTOR&lt;/SPAN&gt; = (&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;)JUMP_ADDRESS;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;JumpApplication(*(&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;*)JUMP_ADDRESS, *(&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;*)(JUMP_ADDRESS+4));&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;not-XIP Application&lt;/STRONG&gt;, using&lt;EM&gt; C/C++ Build -&amp;gt; Settings -&amp;gt; MCU Linker -&amp;gt; Managed Linker Script -&amp;gt;&lt;/EM&gt;&amp;nbsp;&lt;EM&gt;Link Application to RAM&lt;/EM&gt; option&lt;UL&gt;&lt;LI&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #7f0055;"&gt;&lt;STRONG&gt;#define&lt;/STRONG&gt;&lt;/SPAN&gt; RAM_ADDRESS 0x20000000 // we've to change Heap Size to 0x8000 for .bin space's requirement&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #7f0055;"&gt;&lt;STRONG&gt;#define&lt;/STRONG&gt;&lt;/SPAN&gt; JUMP_ADDRESS 0x60100000 // Flash address of your not-XIP bin file&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #642880;"&gt;&lt;STRONG&gt;memcpy&lt;/STRONG&gt;&lt;/SPAN&gt;((&lt;SPAN style="color: #7f0055;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;*)RAM_ADDRESS,(&lt;SPAN style="color: #7f0055;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;*)(JUMP_ADDRESS),19580); // copy from Flash to Ram, for size&amp;nbsp;of .bin file&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;SCB-&amp;gt;&lt;SPAN style="color: #0000c0;"&gt;VTOR&lt;/SPAN&gt; = (&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;)RAM_ADDRESS;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;JumpApplication(*(&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;*)RAM_ADDRESS, *(&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;*)(RAM_ADDRESS+4));&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;That means, for not-XIP application, it's mandatory to copy .bin from Flash to Ram then it's possible to jump to that Ram's address.&lt;/P&gt;&lt;P&gt;Is it correct?&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Daniele&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2019 14:12:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951898#M4308</guid>
      <dc:creator>DanielePagani</dc:creator>
      <dc:date>2019-08-13T14:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Flashloader inside application</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951899#M4309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="200917" data-objecttype="3" href="https://community.nxp.com/people/DanielePagani"&gt;Daniele Pagani&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;1) Is it correct?&lt;BR /&gt;-- Yes, it's.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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>Wed, 14 Aug 2019 02:24:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951899#M4309</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-08-14T02:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Flashloader inside application</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951900#M4310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jeremyzhou"&gt;jeremyzhou&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;now,&amp;nbsp;do you have any suggestions about the main subject - &lt;EM&gt;Flashloader inside application&lt;/EM&gt;?&lt;/P&gt;&lt;P&gt;That means, we wrote ivt_flashloader.bin into &lt;A href="mailto:Flash@0x60300000"&gt;Flash@0x60300000&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Then, we tried to do the same thing as not-XIP&amp;nbsp;Blinky application:&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #7f0055;"&gt;&lt;STRONG&gt;#define&lt;/STRONG&gt;&lt;/SPAN&gt; JUMP_ADDRESS 0x60300000&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7f0055;"&gt;&lt;STRONG&gt;#define&lt;/STRONG&gt;&lt;/SPAN&gt; RAM_ADDRESS 0x20000000&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #642880;"&gt;&lt;STRONG&gt;memcpy&lt;/STRONG&gt;&lt;/SPAN&gt;((&lt;SPAN style="color: #7f0055;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;*)RAM_ADDRESS,(&lt;SPAN style="color: #7f0055;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;*)(JUMP_ADDRESS),90532); &lt;SPAN style="color: #3f7f5f;"&gt;//&amp;nbsp;.bin size&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;SCB-&amp;gt;&lt;SPAN style="color: #0000c0;"&gt;VTOR&lt;/SPAN&gt; = (&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;)(RAM_ADDRESS);&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;JumpApplication(*(&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;*)(RAM_ADDRESS+0x400), *(&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;*)(RAM_ADDRESS+0x400+4)); // 0x400 ivt offset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it doesn't work.&lt;/P&gt;&lt;P&gt;The question is: how can we run ivt_flashloader.bin from our application?&lt;/P&gt;&lt;P&gt;Can we copy it from Flash to Ram and Jump to its Ram's address?&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Daniele&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2019 13:56:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951900#M4310</guid>
      <dc:creator>DanielePagani</dc:creator>
      <dc:date>2019-08-14T13:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Flashloader inside application</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951901#M4311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="200917" data-username="DanielePagani" href="https://community.nxp.com/people/DanielePagani"&gt;Daniele Pagani&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;I've attached the ivt_flashloader.bin which is consist of the IVT and application code, the offset of IVT is 0x400 versus the 0x2000 for the application code.&lt;BR /&gt;So you should jump to the application code instead of the IVT.&lt;BR /&gt;Hope this is clear.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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>Thu, 15 Aug 2019 03:25:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951901#M4311</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-08-15T03:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Flashloader inside application</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951902#M4312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jeremyzhou"&gt;jeremyzhou&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;according to&amp;nbsp;&lt;A href="https://community.nxp.com/message/1058017"&gt;non-xip example with MCUXpresso&lt;/A&gt;&amp;nbsp;we've to add:&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;SCB_DisableDCache();&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;SCB_DisableICache();&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;instructions before:&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;SCB-&amp;gt;&lt;SPAN style="color: #0000c0;"&gt;VTOR&lt;/SPAN&gt; = (&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;)(RAM_ADDRESS+0x2000);&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;JumpApplication(*(&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;*)(RAM_ADDRESS+0x2000), *(&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;*)(RAM_ADDRESS+0x2000+4));&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;USB is now correctly recognized:&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;MacOs$&amp;nbsp;system_profiler SPUSBDataType&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;[...]&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;USB COMPOSITE DEVICE:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Product ID: 0x0073&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Vendor ID: 0x15a2&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;(Freescale Semiconductor, Inc.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Version: 0.02&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Speed: Up to 480 Mb/sec&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Manufacturer: FREESCALE SEMICONDUCTOR INC.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Location ID: 0x14230000 / 14&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Current Available (mA): 500&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Current Required (mA): 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;Extra Operating Current (mA): 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;but blhost's commands don't work:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;MacOs$ ./blhost -u 0x15a2,0x0073 -- get-property 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;Inject command 'get-property'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;sendCommandGetResponse.readPacket error 5.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;Response status = 10004 (0x2714) No response packet from target device.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;If we try with SerialDownloader Mode and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="caret-color: #000000; color: #000000; "&gt;sophost/blhost utilities everything works fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;So, we're wondering if&amp;nbsp;we've to set Memory Configuration to something different than default.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;We've attached Managed Linker Script settings and MCU Settings.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="caret-color: #000000; color: #000000; "&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Managed Linker Script.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/87478i00C3261FC58A2552/image-size/large?v=v2&amp;amp;px=999" role="button" title="Managed Linker Script.png" alt="Managed Linker Script.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="MCU Settings.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/87521iD33AF5C47C6D4C00/image-size/large?v=v2&amp;amp;px=999" role="button" title="MCU Settings.png" alt="MCU Settings.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;BR,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #000000;"&gt;Daniele&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2019 14:07:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951902#M4312</guid>
      <dc:creator>DanielePagani</dc:creator>
      <dc:date>2019-08-15T14:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Flashloader inside application</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951903#M4313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="200917" data-objecttype="3" href="https://community.nxp.com/people/DanielePagani"&gt;Daniele Pagani&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Please follow the thread (&lt;A href="https://community.nxp.com/docs/DOC-341317"&gt;Generating a Bootable Image for the RT1050&lt;/A&gt;&amp;nbsp;) to create a boot image for the RAM and give a try again.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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>Fri, 16 Aug 2019 02:37:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951903#M4313</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-08-16T02:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Flashloader inside application</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951904#M4314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jeremyzhou"&gt;jeremyzhou&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;we followed the indications of&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-341317"&gt;Generating a Bootable Image for the RT1050&lt;/A&gt;,&amp;nbsp;&amp;nbsp;&lt;EM&gt;Bootable Image Generation - SRAM&amp;nbsp;&lt;/EM&gt;mostly.&lt;/P&gt;&lt;P&gt;We read &lt;A href="https://community.nxp.com/message/1136966"&gt;How to generate ivt_flashloader.bin for IMXRT?&lt;/A&gt;‌ carefully, as well as &lt;EM&gt;Chapter 4.2 Generate unsigned normal i.MX RT bootable image&lt;/EM&gt; of i.NX RT1060 Manufacturing User's Guide Document at doc directory distributed with Flashloader 1060 utilities.&lt;/P&gt;&lt;P&gt;At the moment, the USB interface is recognized, but we receive a &lt;EM&gt;No response packet from target device&lt;/EM&gt; report.&lt;/P&gt;&lt;P&gt;So, we've some questions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Then go to settings &amp;gt; MCU C compiler &amp;gt; preprocessor and set the XIP_boot_header enable and and XIP_boot_header_DCD_enable both to 0" &amp;lt;--&amp;nbsp;&lt;SPAN style="color: #3d3d3d;"&gt;we guess it isn't necessary because these preprocessor's options are not present&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d; "&gt;Settings -&amp;gt; Managed Linker Script is different for Flashloader project; it uses a custom&amp;nbsp;MIMXRT1062_ram_flashloader.ld Linker script&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d; "&gt;do we have to modify&amp;nbsp;&lt;EM&gt;imx-dtcm-unsigned-dcd.bd&lt;/EM&gt; with reference to dcd path DCDFilePath = "dcd.bin";?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d; "&gt;where can we find the correct dcd.bin file?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d; "&gt;we're not using MFG tool because we're working with Mac, but we guess sdphost/blshost utilities can work fine, is it correct?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d; "&gt;SCB-&amp;gt;VTOR must be set with a 0x2000 offset?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;So, we guess Flashloader&amp;nbsp;project is different than Led Blinky project used in the suggested&amp;nbsp;discussion and, probably, some different step is required.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Daniele&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Aug 2019 14:28:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951904#M4314</guid>
      <dc:creator>DanielePagani</dc:creator>
      <dc:date>2019-08-17T14:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Flashloader inside application</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951905#M4315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="200917" data-objecttype="3" href="https://community.nxp.com/people/DanielePagani"&gt;Daniele Pagani&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;1. Do we have to modify imx-dtcm-unsigned-dcd.bd with reference to dcd path DCDFilePath = "dcd.bin";?&lt;BR /&gt;-- I'd like to suggest you use the imx-dtcm-unsigned.bd instead of &lt;BR /&gt;imx-dtcm-unsigned-dcd.bd, please check the attachment.&lt;BR /&gt;2) we're not using MFG tool because we're working with Mac, but we guess sdphost/blshost utilities can work fine, is it correct?&lt;BR /&gt;-- Yes, maybe you can give a try if you have other PC on hand.&lt;BR /&gt;3) SCB-&amp;gt;VTOR must be set with a 0x2000 offset?&lt;BR /&gt;-- Yes.&lt;/P&gt;&lt;P&gt;TIC&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&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 style="min-height: 8pt; padding: 0px;"&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;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2019 02:19:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951905#M4315</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-08-20T02:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Flashloader inside application</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951906#M4316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jeremyzhou"&gt;jeremyzhou&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;we followed these steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Compile&amp;nbsp;evkmimxrt1060_flashloader&lt;/LI&gt;&lt;LI&gt;Create S-Record by using Binary Utilities&lt;/LI&gt;&lt;LI&gt;Create .bin file by using:&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;./elftosb -f imx -V -c imx-dtcm-unsigned.bd -o ivt_flashloader_unsigned.bin test_flashloader.s19&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Use sdphost to write on RAM this file and jump to its execution:&amp;nbsp;&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;./sdphost -V -u 0x1fc9,0x0135 -- error-status&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;./sdphost -V -u 0x1fc9,0x0135 -- write-file 0x20000000 &lt;SPAN&gt;ivt_flashloader_unsigned.bin&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;./sdphost -V -u 0x1fc9,0x0135 -- jump-address 0x20000400&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Check it's right by doing:&amp;nbsp;&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;./blhost -u 0x15a2,0x0073 -- get-property 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;Inject command 'get-property'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;Response status = 0 (0x0) Success.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;Response word 1 = 1258424064 (0x4b020700)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;Current Version = K2.7.0&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;So, in our opinion the generated ivt_flashloader_unsigned.bin file is ok.&lt;/P&gt;&lt;P&gt;Then, we wrote the same file to Flash and our application copy this file from Flash to Ram and try to execute it without success.&lt;/P&gt;&lt;P&gt;We guess the problem is regarding the way the application try to execute it:&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7f0055;"&gt;&lt;STRONG&gt;#define&lt;/STRONG&gt;&lt;/SPAN&gt; JUMP_ADDRESS 0x60300000&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7f0055;"&gt;&lt;STRONG&gt;#define&lt;/STRONG&gt;&lt;/SPAN&gt; RAM_ADDRESS 0x20000000&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #642880;"&gt;&lt;STRONG&gt;memcpy&lt;/STRONG&gt;&lt;/SPAN&gt;((&lt;SPAN style="color: #7f0055;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;*)RAM_ADDRESS,(&lt;SPAN style="color: #7f0055;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;*)(JUMP_ADDRESS),91632);&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #7f0055;"&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;&lt;/SPAN&gt;(&lt;SPAN style="color: #642880;"&gt;&lt;STRONG&gt;memcmp&lt;/STRONG&gt;&lt;/SPAN&gt;((&lt;SPAN style="color: #7f0055;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;*)(RAM_ADDRESS),(&lt;SPAN style="color: #7f0055;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;*)JUMP_ADDRESS, 91632)==0){&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;DisableGlobalIRQ();&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;SCB_DisableDCache();&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;SCB_DisableICache();&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;SCB-&amp;gt;&lt;SPAN style="color: #0000c0;"&gt;VTOR&lt;/SPAN&gt; = (&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;)(RAM_ADDRESS+0x2000);&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;JumpApplication(*(&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;*)(RAM_ADDRESS+0x2000), *(&lt;SPAN style="color: #005032;"&gt;uint32_t&lt;/SPAN&gt;*)(RAM_ADDRESS+0x2000+4));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Daniele&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2019 13:34:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951906#M4316</guid>
      <dc:creator>DanielePagani</dc:creator>
      <dc:date>2019-08-22T13:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Flashloader inside application</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951907#M4317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" class="" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="200917" data-objecttype="3" href="https://community.nxp.com/people/DanielePagani"&gt;Daniele Pagani&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;According to the steps you did, I don't find something wrong with them until now.&lt;BR /&gt;I'd like to know whether you do the same testing with the ivt_flashloader.bin I shared before.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&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>Fri, 23 Aug 2019 07:30:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951907#M4317</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-08-23T07:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Flashloader inside application</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951908#M4318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jeremyzhou"&gt;jeremyzhou&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;we confirm we did the same testing with ivt_flashloader.bin you provided.&lt;/P&gt;&lt;P&gt;It seems to be the same of Flashloader distribution package:&lt;/P&gt;&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;Mac$ md5 ivt_flashloader.bin&lt;SPAN class=""&gt;&amp;nbsp;(&lt;EM&gt;your&lt;/EM&gt; ivt_flashloader.bin)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;MD5 (ivt_flashloader.bin) = 30d7da95013ce979aacfff39f7252aeb&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;Mac$ md5 /Users/?/Downloads/Flashloader_RT106x_1.0_GA/Tools/mfgtools-rel/Profiles/MXRT106X/OS\ Firmware/ivt_flashloader.bin&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;MD5 (/Users/danielepagani/Downloads/Flashloader_RT106x_1.0_GA/Tools/mfgtools-rel/Profiles/MXRT106X/OS Firmware/ivt_flashloader.bin) = 30d7da95013ce979aacfff39f7252aeb&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;We're wondering if we can ask you how&amp;nbsp;you managed to generate this file: did you start with the SDK&amp;nbsp;flash loader - example?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;/P&gt;&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;BR,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #000000; margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN&gt;Daniele&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2019 13:01:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Flashloader-inside-application/m-p/951908#M4318</guid>
      <dc:creator>DanielePagani</dc:creator>
      <dc:date>2019-08-23T13:01:25Z</dc:date>
    </item>
  </channel>
</rss>

