<?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中的主题 Re: imx8mp ddr training stuck</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx8mp-ddr-training-stuck/m-p/1665870#M207294</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/99419"&gt;@siegfried_buerger&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I hope you are doing well.&lt;/P&gt;
&lt;P&gt;Could you please try to get debug logs in u-boot?&lt;/P&gt;
&lt;P&gt;Please share more information about PMIC used in custom board.&lt;/P&gt;
&lt;P&gt;Please provide me with the build steps for further debugging. (could you please try to build an image using the yocto build system ?)&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Dhruvit Vasavada&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2023 06:08:28 GMT</pubDate>
    <dc:creator>Dhruvit</dc:creator>
    <dc:date>2023-06-08T06:08:28Z</dc:date>
    <item>
      <title>imx8mp ddr training stuck</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mp-ddr-training-stuck/m-p/1663233#M207066</link>
      <description>&lt;P&gt;We have a custom board with the imx8mp CPU and a "K4FBE3D4HM" RAM.&lt;/P&gt;&lt;P&gt;Bootloader gets stuck during RAM-training.&lt;/P&gt;&lt;PRE&gt;U-Boot SPL 2022.04-00005-g8812d8f3da-dirty (May 09 2023 - 15:16:40 +0200)&lt;BR /&gt;DDRINFO: start DRAM init&lt;BR /&gt;DDRINFO: DRAM rate 3200 MTS&lt;BR /&gt;DRAM PHY training for 3200MTS&lt;/PRE&gt;&lt;P&gt;I traced it back to this function inside "drivers/ddr/imx/phy/ddrphy_utils.c"&lt;/P&gt;&lt;PRE&gt;static inline void poll_pmu_message_ready(void)&lt;BR /&gt;{&lt;BR /&gt;    unsinged int reg;&lt;BR /&gt;    do {&lt;BR /&gt;        reg = reg32_read(IP2APB_DDRPHY_IPS_BASE_ADDR(0) + ddrtphy_addr_remap(0xd0004));&lt;BR /&gt;    } while (reg &amp;amp; 0x1);&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;I've implemented a workaround to break out of the do-while loop after some waiting. The training would then proceed and pass and everything seems to work.&lt;/P&gt;&lt;P&gt;This issue does not appear when I boot with USB serial boot.&lt;/P&gt;&lt;P&gt;The ddr-timings are generated by the mscale ddr tool. The stress test doesn't show any problems as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did anyone have a similar issue or any idea how to approach this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Marius&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 07:17:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mp-ddr-training-stuck/m-p/1663233#M207066</guid>
      <dc:creator>siegfried_buerger</dc:creator>
      <dc:date>2023-06-05T07:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mp ddr training stuck</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mp-ddr-training-stuck/m-p/1664189#M207173</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/99419"&gt;@siegfried_buerger&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I hope you are doing well.&lt;/P&gt;
&lt;P&gt;This issue could be due to not loading the correct ddr training firmware binary.&lt;/P&gt;
&lt;P&gt;Please mention how you are building the bootloader (using yocto or separately.) and the BSP version&lt;/P&gt;
&lt;P&gt;Please make sure that the latest lpddr training firmware binaries (from&lt;STRONG&gt; firmware-imx&lt;/STRONG&gt; package) are used.&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Dhruvit Vasavada&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 09:28:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mp-ddr-training-stuck/m-p/1664189#M207173</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-06-06T09:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mp ddr training stuck</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mp-ddr-training-stuck/m-p/1664264#M207181</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201299"&gt;@Dhruvit&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;thanks for your reply.&lt;/P&gt;&lt;P&gt;The bootloader is built separately. I've tested it with imx-firmware-8.10, -8.16 and -8.19. The issue remains the same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 10:59:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mp-ddr-training-stuck/m-p/1664264#M207181</guid>
      <dc:creator>siegfried_buerger</dc:creator>
      <dc:date>2023-06-06T10:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mp ddr training stuck</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mp-ddr-training-stuck/m-p/1665870#M207294</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/99419"&gt;@siegfried_buerger&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I hope you are doing well.&lt;/P&gt;
&lt;P&gt;Could you please try to get debug logs in u-boot?&lt;/P&gt;
&lt;P&gt;Please share more information about PMIC used in custom board.&lt;/P&gt;
&lt;P&gt;Please provide me with the build steps for further debugging. (could you please try to build an image using the yocto build system ?)&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Dhruvit Vasavada&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 06:08:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mp-ddr-training-stuck/m-p/1665870#M207294</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-06-08T06:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mp ddr training stuck</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mp-ddr-training-stuck/m-p/1668377#M207507</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201299"&gt;@Dhruvit&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;the PMIC on our board is a "&lt;SPAN&gt;PCA9450CHNY".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm going to try to build an image with yocto using nxp resources. Hopefully this will help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;BR /&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 11:50:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mp-ddr-training-stuck/m-p/1668377#M207507</guid>
      <dc:creator>siegfried_buerger</dc:creator>
      <dc:date>2023-06-13T11:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mp ddr training stuck</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mp-ddr-training-stuck/m-p/1669237#M207599</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/99419"&gt;@siegfried_buerger&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The PMIC on our board is a "&lt;SPAN&gt;PCA9450CHNY"&lt;BR /&gt;=&amp;gt; It is the default pmic in NXP BSP, it will not need any change in BSP.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yes, Please try with Yocto by applying patches for custom changes in u-boot-imx.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Dhruvit Vasavada&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 10:52:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mp-ddr-training-stuck/m-p/1669237#M207599</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-06-14T10:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mp ddr training stuck</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mp-ddr-training-stuck/m-p/1680451#M208541</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201299"&gt;@Dhruvit&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;sorry it took me so long. So I've built the bootloader image with the official nxp yocto. Now it goes straight to "training failed" on bootup.&lt;/P&gt;&lt;P&gt;I'm using the latest versions.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 10:41:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mp-ddr-training-stuck/m-p/1680451#M208541</guid>
      <dc:creator>siegfried_buerger</dc:creator>
      <dc:date>2023-07-03T10:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mp ddr training stuck</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mp-ddr-training-stuck/m-p/1682788#M208764</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/99419"&gt;@siegfried_buerger&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I hope you are doing well.&lt;/P&gt;
&lt;P&gt;Have you replaced the code (generated by successful training and calibration in MSCALE DDR Tool) in u-boot for custom DDR?&lt;/P&gt;
&lt;P&gt;Please provide me with the DDR changes in u-boot-imx, u-boot configuration, and steps to flash image for further debugging.&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Dhruvit Vasavada&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 06:12:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mp-ddr-training-stuck/m-p/1682788#M208764</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-07-06T06:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mp ddr training stuck</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mp-ddr-training-stuck/m-p/1686499#M209122</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201299"&gt;@Dhruvit&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I removed everything related to USB-C as we don't use a USB-C power input on our board.&lt;BR /&gt;I also changed the ram timing (lpddr4_timing.c), see the attached file.&lt;/P&gt;&lt;P&gt;I built u-boot-imx and imx-boot and flashed the imx-boot image via uuu tool onto the emmc. Fastboot works without any issues but as soon as I try to boot the board in emmc boot it says "Training FAILED"&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Marius&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 09:46:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mp-ddr-training-stuck/m-p/1686499#M209122</guid>
      <dc:creator>siegfried_buerger</dc:creator>
      <dc:date>2023-07-12T09:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mp ddr training stuck</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mp-ddr-training-stuck/m-p/1687456#M209223</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/99419"&gt;@siegfried_buerger&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I hope you are doing well.&lt;/P&gt;
&lt;P&gt;Could you please share uuu command that you have used?&lt;/P&gt;
&lt;P&gt;This issue could be due to imx-boot having an updated u-boot image but the .wic image is not being updated with the latest u-boot with ddr customization.&lt;/P&gt;
&lt;P&gt;So that, during serial download mode ddr training is successful. when changing to emmc it uses the old u-boot which results in&amp;nbsp;&lt;SPAN&gt;Training FAILED.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Dhruvit Vasavada&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 10:24:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mp-ddr-training-stuck/m-p/1687456#M209223</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-07-13T10:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mp ddr training stuck</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mp-ddr-training-stuck/m-p/1687515#M209227</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201299"&gt;@Dhruvit&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;it's the same image according to the timestamps.&lt;BR /&gt;This is the log from when I start the uuu-tool:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="siegfried_buerger_1-1689245543217.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/232211i2E5C7351E7D5E8CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="siegfried_buerger_1-1689245543217.png" alt="siegfried_buerger_1-1689245543217.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and this is the log from when I boot from emmc:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="siegfried_buerger_0-1689245461859.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/232210i832D134041A192D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="siegfried_buerger_0-1689245461859.png" alt="siegfried_buerger_0-1689245461859.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I attached the script I use with uuu tool like this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;./uuu uuu.emmc.txt&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Marius&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 11:00:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mp-ddr-training-stuck/m-p/1687515#M209227</guid>
      <dc:creator>siegfried_buerger</dc:creator>
      <dc:date>2023-07-13T11:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mp ddr training stuck</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mp-ddr-training-stuck/m-p/1688778#M209350</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/99419"&gt;@siegfried_buerger&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I hope you are doing well.&lt;/P&gt;
&lt;P&gt;Could you please try with another boot device (sdcard or NOR flash )?&lt;/P&gt;
&lt;P&gt;Please provide me with detailed logs with debugging enabled in u-boot.&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Dhruvit Vasavada&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 07:27:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mp-ddr-training-stuck/m-p/1688778#M209350</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-07-19T07:27:42Z</dc:date>
    </item>
  </channel>
</rss>

