<?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: i.MX RT1160 loading Zephyr image using blhost in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/i-MX-RT1160-loading-Zephyr-image-using-blhost/m-p/1736345#M27174</link>
    <description>&lt;P&gt;Hello Jing,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I don't want to store the image in flash. I would like to load it to the internal SRAM using SDP when the unit is powered on. The entirety of the image would reside in RAM.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2023 07:34:59 GMT</pubDate>
    <dc:creator>danielberhe</dc:creator>
    <dc:date>2023-10-10T07:34:59Z</dc:date>
    <item>
      <title>i.MX RT1160 loading Zephyr image using blhost</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/i-MX-RT1160-loading-Zephyr-image-using-blhost/m-p/1734249#M27115</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm currently successfully building and running the Zephyr project blinky sample on the imxrt1160 evk. I program the firmware to flash using Segger jlink and that happily works.&lt;/P&gt;&lt;P&gt;What I would now like to do is to get the Zephyr blinky app to run from the internal SRAM after being loaded using blhost over USB SDP.&lt;/P&gt;&lt;P&gt;- I've modified mimxrt1160_evk_cm7.dts chosen node to the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;chosen {
  zephyr,sram = &amp;amp;dtcm; //&amp;amp;sdram0;
  zephyr,dtcm = &amp;amp;dtcm;
  zephyr,itcm = &amp;amp;itcm;
  zephyr,console = &amp;amp;lpuart1;
  zephyr,shell-uart = &amp;amp;lpuart1;
  zephyr,canbus = &amp;amp;flexcan3;
  zephyr,flash-controller = &amp;amp;is25wp128;
  zephyr,flash = &amp;amp;is25wp128;
  zephyr,code-partition = &amp;amp;slot0_partition;
  zephyr,cpu1-region = &amp;amp;ocram;
  zephyr,ipc = &amp;amp;mailbox_a;
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Modified mimxrt1160_evk/Kconfig.defconfig CODE_LOCATION:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;choice CODE_LOCATION
  default CODE_ITCM
endchoice&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Made sure that the board is in SDP mode and verified by running blhost get-property:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ ./blhost.exe -u 0x1fc9,0x013d -- get-property 1
Inject command 'get-property'
Response status = 0 (0x0) Success.
Response word 1 = 1258487809 (0x4b030001)
Current Version = K3.0.1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- I then loaded the blinky binary file using blhost but I don't see the blinking LED:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ ./blhost.exe -u 0x1fc9,0x013d -- load-image zephyr.bin
Inject command 'load-image'
Preparing to send 35244 (0x89ac) bytes to the target.
(1/1)100% Completed!
Successful generic response to command 'load-image'
Response status = 0 (0x0) Success.
Response word 1 = 0 (0x0)
Wrote 35244 of 35244 bytes.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- looking at zephyr.bin (attached), I can see that the IVT is starting at offset 0x1000. Am I right in thinking that we want the IVT to be at offset 0?&lt;/P&gt;&lt;P&gt;- I came accross&amp;nbsp;&lt;A href="https://community.nxp.com/t5/i-MX-RT/mimxrt1024-EVK-flash-and-boot/m-p/1327990/highlight/true#M15997" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/i-MX-RT/mimxrt1024-EVK-flash-and-boot/m-p/1327990/highlight/true#M15997&lt;/A&gt; but a lot of the blhost commands mentioned there (read-memory, write-memory, and execute) are returning 'kStatus_UnknownCommand'.&lt;/P&gt;&lt;P&gt;Can someone please help with this issue?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 14:25:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/i-MX-RT1160-loading-Zephyr-image-using-blhost/m-p/1734249#M27115</guid>
      <dc:creator>danielberhe</dc:creator>
      <dc:date>2023-10-05T14:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX RT1160 loading Zephyr image using blhost</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/i-MX-RT1160-loading-Zephyr-image-using-blhost/m-p/1736301#M27172</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/158341"&gt;@danielberhe&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;It seems you want to save the code in flash and run in ITCM. But actually you image is still pure flash bass. You can see the application start address is 0x30003579, still in flash. It should be in ITCM, for example, 0x00003579. Then boot ROM will copy the image to ITCM.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jingpan_1-1696919880429.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/244233iFA534FA31F537698/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jingpan_1-1696919880429.png" alt="jingpan_1-1696919880429.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Moreover, the BOOT_IMAGE_BASE and BOOT_IMAGE_SIZE in g_boot_data structure should also be changed to ITCM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 06:46:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/i-MX-RT1160-loading-Zephyr-image-using-blhost/m-p/1736301#M27172</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2023-10-10T06:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX RT1160 loading Zephyr image using blhost</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/i-MX-RT1160-loading-Zephyr-image-using-blhost/m-p/1736345#M27174</link>
      <description>&lt;P&gt;Hello Jing,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I don't want to store the image in flash. I would like to load it to the internal SRAM using SDP when the unit is powered on. The entirety of the image would reside in RAM.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 07:34:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/i-MX-RT1160-loading-Zephyr-image-using-blhost/m-p/1736345#M27174</guid>
      <dc:creator>danielberhe</dc:creator>
      <dc:date>2023-10-10T07:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX RT1160 loading Zephyr image using blhost</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/i-MX-RT1160-loading-Zephyr-image-using-blhost/m-p/1736517#M27176</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/158341"&gt;@danielberhe&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;1.The image must be compile to 0, not 0x30000000.&lt;/P&gt;
&lt;P&gt;2. Then make a flashloader style binary like this.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jingpan_0-1696934882398.png" style="width: 705px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/244282i9869DC7A68F8484C/image-dimensions/705x164?v=v2" width="705" height="164" role="button" title="jingpan_0-1696934882398.png" alt="jingpan_0-1696934882398.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 10:48:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/i-MX-RT1160-loading-Zephyr-image-using-blhost/m-p/1736517#M27176</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2023-10-10T10:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX RT1160 loading Zephyr image using blhost</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/i-MX-RT1160-loading-Zephyr-image-using-blhost/m-p/1740177#M27228</link>
      <description>&lt;P&gt;Hello Jing,&lt;/P&gt;&lt;P&gt;I will give this a go and report back. Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 08:10:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/i-MX-RT1160-loading-Zephyr-image-using-blhost/m-p/1740177#M27228</guid>
      <dc:creator>danielberhe</dc:creator>
      <dc:date>2023-10-16T08:10:46Z</dc:date>
    </item>
  </channel>
</rss>

