<?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>i.MX Processors中的主题 Trouble loading and running examples on M4 core</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Trouble-loading-and-running-examples-on-M4-core/m-p/1533457#M196055</link>
    <description>&lt;P&gt;I'm trying to load and run the "hello world" example on my IMX8MMEVK board by following this page:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/document/guide/get-started-with-the-i-mx-8m-mini-evkb:GS-iMX-8M-Mini-EVK" target="_blank"&gt;https://www.nxp.com/document/guide/get-started-with-the-i-mx-8m-mini-evkb:GS-iMX-8M-Mini-EVK&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have flashed the latest stock Linux BSP to EMMC and I have built my own stock image and flashed the SD card with that.&amp;nbsp; I can see that the examples are there on the SD card.&amp;nbsp; I get the following results on the Uboot console:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DDRINFO: start DRAM init&lt;BR /&gt;DDRINFO: DRAM rate 3000MTS&lt;BR /&gt;DDRINFO:ddrphy calibration done&lt;BR /&gt;DDRINFO: ddrmix config done&lt;BR /&gt;SEC0: &amp;nbsp;RNG instantiated&lt;BR /&gt;Normal Boot&lt;BR /&gt;Trying to boot from MMC1&lt;BR /&gt;NOTICE: &amp;nbsp;BL31: v2.6(release):lf-5.15.32-2.0.0-0-gc6a19b1a3&lt;BR /&gt;NOTICE: &amp;nbsp;BL31: Built : 06:37:22, Jun &amp;nbsp;7 2022&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;U-Boot 2022.04-lf_v2022.04+g1c881f4da8 (Jun 07 2022 - 05:16:02 +0000)&lt;BR /&gt;&lt;BR /&gt;CPU: &amp;nbsp;&amp;nbsp;i.MX8MMQ rev1.0 1800 MHz (running at 1200 MHz)&lt;BR /&gt;CPU: &amp;nbsp;&amp;nbsp;Commercial temperature grade (0C to 95C) at 39C&lt;BR /&gt;Reset cause: POR&lt;BR /&gt;Model: NXP i.MX8MM EVK board&lt;BR /&gt;DRAM: &amp;nbsp;2 GiB&lt;BR /&gt;TCPC: &amp;nbsp;Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C1 0x52]&lt;BR /&gt;Power supply on USB2&lt;BR /&gt;TCPC: &amp;nbsp;Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C1 0x50]&lt;BR /&gt;Core: &amp;nbsp;169 devices, 30 uclasses, devicetree: separate&lt;BR /&gt;MMC: &amp;nbsp;&amp;nbsp;FSL_SDHC: 1, FSL_SDHC: 2&lt;BR /&gt;Loading Environment from MMC... *** Warning - bad CRC, using default environment&lt;BR /&gt;&lt;BR /&gt;[*]-Video Link 0 (1920 x 1080)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[0] lcdif@32e00000, video&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[1] mipi_dsi@32e10000, video_bridge&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[2] adv7535@3d, panel&lt;BR /&gt;In: &amp;nbsp;&amp;nbsp;&amp;nbsp;serial&lt;BR /&gt;Out: &amp;nbsp;&amp;nbsp;serial&lt;BR /&gt;Err: &amp;nbsp;&amp;nbsp;serial&lt;BR /&gt;SEC0: &amp;nbsp;RNG instantiated&lt;BR /&gt;&lt;BR /&gt;BuildInfo:&lt;BR /&gt;&amp;nbsp;- ATF c6a19b1&lt;BR /&gt;&lt;BR /&gt;switch to partitions #0, OK&lt;BR /&gt;mmc1 is current device&lt;BR /&gt;flash target is MMC:1&lt;BR /&gt;Net: &amp;nbsp;&amp;nbsp;eth0: ethernet@30be0000&lt;BR /&gt;Fastboot: Normal&lt;BR /&gt;Normal Boot&lt;BR /&gt;Hit any key to stop autoboot: &amp;nbsp;0 &amp;nbsp;&lt;BR /&gt;u-boot=&amp;gt; fatload mmc 0:1 0x7e0000 imx8mm_m4_TCM_hello_world.bin&lt;BR /&gt;Couldn't find partition mmc 0:1&lt;BR /&gt;Can't set block device&lt;BR /&gt;u-boot=&amp;gt; fatload mmc 1:1 0x7e0000 imx8mm_m4_TCM_hello_world.bin&lt;BR /&gt;** Reading file would overwrite reserved memory **&lt;BR /&gt;Failed to load 'imx8mm_m4_TCM_hello_world.bin'&lt;BR /&gt;u-boot=&amp;gt; fatload mmc 1:1 0x800000 imx8mm_m4_TCM_hello_world.bin&lt;BR /&gt;** Reading file would overwrite reserved memory **&lt;BR /&gt;Failed to load 'imx8mm_m4_TCM_hello_world.bin'&lt;BR /&gt;u-boot=&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What am I missing or doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Oct 2022 14:48:34 GMT</pubDate>
    <dc:creator>mwilliams</dc:creator>
    <dc:date>2022-10-06T14:48:34Z</dc:date>
    <item>
      <title>Trouble loading and running examples on M4 core</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Trouble-loading-and-running-examples-on-M4-core/m-p/1533457#M196055</link>
      <description>&lt;P&gt;I'm trying to load and run the "hello world" example on my IMX8MMEVK board by following this page:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/document/guide/get-started-with-the-i-mx-8m-mini-evkb:GS-iMX-8M-Mini-EVK" target="_blank"&gt;https://www.nxp.com/document/guide/get-started-with-the-i-mx-8m-mini-evkb:GS-iMX-8M-Mini-EVK&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have flashed the latest stock Linux BSP to EMMC and I have built my own stock image and flashed the SD card with that.&amp;nbsp; I can see that the examples are there on the SD card.&amp;nbsp; I get the following results on the Uboot console:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DDRINFO: start DRAM init&lt;BR /&gt;DDRINFO: DRAM rate 3000MTS&lt;BR /&gt;DDRINFO:ddrphy calibration done&lt;BR /&gt;DDRINFO: ddrmix config done&lt;BR /&gt;SEC0: &amp;nbsp;RNG instantiated&lt;BR /&gt;Normal Boot&lt;BR /&gt;Trying to boot from MMC1&lt;BR /&gt;NOTICE: &amp;nbsp;BL31: v2.6(release):lf-5.15.32-2.0.0-0-gc6a19b1a3&lt;BR /&gt;NOTICE: &amp;nbsp;BL31: Built : 06:37:22, Jun &amp;nbsp;7 2022&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;U-Boot 2022.04-lf_v2022.04+g1c881f4da8 (Jun 07 2022 - 05:16:02 +0000)&lt;BR /&gt;&lt;BR /&gt;CPU: &amp;nbsp;&amp;nbsp;i.MX8MMQ rev1.0 1800 MHz (running at 1200 MHz)&lt;BR /&gt;CPU: &amp;nbsp;&amp;nbsp;Commercial temperature grade (0C to 95C) at 39C&lt;BR /&gt;Reset cause: POR&lt;BR /&gt;Model: NXP i.MX8MM EVK board&lt;BR /&gt;DRAM: &amp;nbsp;2 GiB&lt;BR /&gt;TCPC: &amp;nbsp;Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C1 0x52]&lt;BR /&gt;Power supply on USB2&lt;BR /&gt;TCPC: &amp;nbsp;Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C1 0x50]&lt;BR /&gt;Core: &amp;nbsp;169 devices, 30 uclasses, devicetree: separate&lt;BR /&gt;MMC: &amp;nbsp;&amp;nbsp;FSL_SDHC: 1, FSL_SDHC: 2&lt;BR /&gt;Loading Environment from MMC... *** Warning - bad CRC, using default environment&lt;BR /&gt;&lt;BR /&gt;[*]-Video Link 0 (1920 x 1080)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[0] lcdif@32e00000, video&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[1] mipi_dsi@32e10000, video_bridge&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[2] adv7535@3d, panel&lt;BR /&gt;In: &amp;nbsp;&amp;nbsp;&amp;nbsp;serial&lt;BR /&gt;Out: &amp;nbsp;&amp;nbsp;serial&lt;BR /&gt;Err: &amp;nbsp;&amp;nbsp;serial&lt;BR /&gt;SEC0: &amp;nbsp;RNG instantiated&lt;BR /&gt;&lt;BR /&gt;BuildInfo:&lt;BR /&gt;&amp;nbsp;- ATF c6a19b1&lt;BR /&gt;&lt;BR /&gt;switch to partitions #0, OK&lt;BR /&gt;mmc1 is current device&lt;BR /&gt;flash target is MMC:1&lt;BR /&gt;Net: &amp;nbsp;&amp;nbsp;eth0: ethernet@30be0000&lt;BR /&gt;Fastboot: Normal&lt;BR /&gt;Normal Boot&lt;BR /&gt;Hit any key to stop autoboot: &amp;nbsp;0 &amp;nbsp;&lt;BR /&gt;u-boot=&amp;gt; fatload mmc 0:1 0x7e0000 imx8mm_m4_TCM_hello_world.bin&lt;BR /&gt;Couldn't find partition mmc 0:1&lt;BR /&gt;Can't set block device&lt;BR /&gt;u-boot=&amp;gt; fatload mmc 1:1 0x7e0000 imx8mm_m4_TCM_hello_world.bin&lt;BR /&gt;** Reading file would overwrite reserved memory **&lt;BR /&gt;Failed to load 'imx8mm_m4_TCM_hello_world.bin'&lt;BR /&gt;u-boot=&amp;gt; fatload mmc 1:1 0x800000 imx8mm_m4_TCM_hello_world.bin&lt;BR /&gt;** Reading file would overwrite reserved memory **&lt;BR /&gt;Failed to load 'imx8mm_m4_TCM_hello_world.bin'&lt;BR /&gt;u-boot=&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What am I missing or doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 14:48:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Trouble-loading-and-running-examples-on-M4-core/m-p/1533457#M196055</guid>
      <dc:creator>mwilliams</dc:creator>
      <dc:date>2022-10-06T14:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble loading and running examples on M4 core</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Trouble-loading-and-running-examples-on-M4-core/m-p/1533552#M196061</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Please try with the following commands:&lt;BR /&gt;&amp;gt; fatload mmc 1:1 0x48000000 imx8mm_m4_TCM_hello_world.bin&lt;BR /&gt;&amp;gt; cp.b 0x48000000 0x7e0000 0x20000&lt;BR /&gt;&amp;gt; dcache flush&lt;BR /&gt;&amp;gt; bootaux 0x7e0000&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 18:21:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Trouble-loading-and-running-examples-on-M4-core/m-p/1533552#M196061</guid>
      <dc:creator>AldoG</dc:creator>
      <dc:date>2022-10-06T18:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble loading and running examples on M4 core</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Trouble-loading-and-running-examples-on-M4-core/m-p/1533562#M196062</link>
      <description>&lt;P&gt;&lt;EM&gt;Thanks so much! Now I have to figure out what I did.&amp;nbsp; If you have any other pearls of wisdom feel free to impart.&amp;nbsp; Thanks again.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 18:33:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Trouble-loading-and-running-examples-on-M4-core/m-p/1533562#M196062</guid>
      <dc:creator>mwilliams</dc:creator>
      <dc:date>2022-10-06T18:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble loading and running examples on M4 core</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Trouble-loading-and-running-examples-on-M4-core/m-p/1533566#M196064</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Sorry for not being clear, please see below for a more detailed response:&lt;BR /&gt;&lt;BR /&gt;The command you have used is no longer correct, this is because u-boot from &amp;gt;= L5.4.24&amp;nbsp; checks if the load address is in a reserved area of memory for u-boot or not.&lt;BR /&gt;&lt;BR /&gt;So now we need to fatload the bin to DDR (0x48000000) by using the following command:&lt;BR /&gt;&amp;gt; fatload mmc 1:1 0x48000000 imx8mm_m4_TCM_hello_world.bin&lt;BR /&gt;&lt;BR /&gt;Next will be copying the binary from that location to TCM (0x7e0000)&lt;BR /&gt;&amp;gt; cp.b 0x48000000 0x7e0000 0x20000&lt;BR /&gt;&lt;BR /&gt;Finally we flush dcache and boot the auxiliary core (Cortex-M4)&lt;BR /&gt;&amp;gt; dcache flush&lt;BR /&gt;&amp;gt; bootaux 0x7e0000&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Aldo.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 18:47:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Trouble-loading-and-running-examples-on-M4-core/m-p/1533566#M196064</guid>
      <dc:creator>AldoG</dc:creator>
      <dc:date>2022-10-06T18:47:27Z</dc:date>
    </item>
  </channel>
</rss>

