<?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: IMX8MM program uboot using UUU in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-program-uboot-using-UUU/m-p/1742892#M214422</link>
    <description>&lt;P&gt;I got the same thing on some board too. I think the issue is located on SPL code.&lt;BR /&gt;&lt;BR /&gt;U-Boot SPL 2022.04-lf_v2022.04+g181859317b (Aug 30 2023 - 19:05:10 +0000)&lt;BR /&gt;Init PCA9450A&lt;BR /&gt;BOARD REVISION : A, OPTION : 0&lt;BR /&gt;DRAM : LPDDR4 2000 MB&lt;BR /&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: RNG instantiated&lt;BR /&gt;Normal Boot&lt;BR /&gt;Trying to boot from USB SDP&lt;BR /&gt;board_usb_init 0, type 1&lt;BR /&gt;g_dnl_register: failed!, error: -19&lt;BR /&gt;SDP dnl register failed: -19&lt;BR /&gt;SPL: failed to boot from all boot devices&lt;BR /&gt;### ERROR ### Please RESET the board ###&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Oct 2023 11:32:27 GMT</pubDate>
    <dc:creator>Lorac</dc:creator>
    <dc:date>2023-10-19T11:32:27Z</dc:date>
    <item>
      <title>IMX8MM program uboot using UUU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-program-uboot-using-UUU/m-p/1594690#M201145</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a custom imx8mm board with a 512MB DDR4 (K4A4G165WE-BCTD) and a MMC (THGBMNG5D1LBAIL).&lt;/P&gt;&lt;P&gt;I'm trying to program the uboot using UUU software, but stop with that message:&lt;/P&gt;&lt;P&gt;U-Boot SPL 2020.04-00001-g62a81128c0-dirty (Feb 07 2023 - 11:01:55 +0000)&lt;BR /&gt;DDRINFO: start DRAM init&lt;BR /&gt;DDRINFO: DRAM rate 2400MTS&lt;BR /&gt;DDRINFO:ddrphy calibration done&lt;BR /&gt;DDRINFO: ddrmix config done&lt;BR /&gt;Normal Boot&lt;BR /&gt;Trying to boot from USB SDP&lt;BR /&gt;g_dnl_register: failed!, error: -12&lt;BR /&gt;SDP dnl register failed: -12&lt;BR /&gt;SPL: failed to boot from all boot devices&lt;BR /&gt;### ERROR ### Please RESET the board ###&lt;/P&gt;&lt;P&gt;I saw that in ci_udc_probe function (in ci_udc.c file), failed in memalign&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/* The QH list must be aligned to 4096 bytes. */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;controller&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;epts&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;memalign&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;eplist_align&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;eplist_sz&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (!&lt;/SPAN&gt;&lt;SPAN&gt;controller&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;epts&lt;/SPAN&gt;&lt;SPAN&gt;){&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt; -&lt;/SPAN&gt;&lt;SPAN&gt;ENOMEM&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my custom board I didn't have one USB type C, so I follow that topic:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX8MM-i-MX8MQ-USB2-0-Design-Without-USB-TYPE-C/ta-p/1129527?lightbox-message-images-1129527=101386iC168BF9D829D4A51" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX8MM-i-MX8MQ-USB2-0-Design-Without-USB-TYPE-C/ta-p/1129527?lightbox-message-images-1129527=101386iC168BF9D829D4A51&lt;/A&gt;&lt;/P&gt;&lt;P&gt;What can be wrong to failed?&lt;/P&gt;&lt;P&gt;Thanks in advance.&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>Tue, 07 Feb 2023 11:31:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-program-uboot-using-UUU/m-p/1594690#M201145</guid>
      <dc:creator>crcn</dc:creator>
      <dc:date>2023-02-07T11:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MM program uboot using UUU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-program-uboot-using-UUU/m-p/1594892#M201172</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Could you share the actual changes you have made?&lt;BR /&gt;Also, from the logs seems like you’re using uboot 2020.04 is this correct?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 16:53:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-program-uboot-using-UUU/m-p/1594892#M201172</guid>
      <dc:creator>AldoG</dc:creator>
      <dc:date>2023-02-07T16:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MM program uboot using UUU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-program-uboot-using-UUU/m-p/1595548#M201241</link>
      <description>&lt;P&gt;Hi Aldo,&lt;/P&gt;&lt;P&gt;In the schematic, at the beginning I have the usb1 and usb2 configurated in that way.&lt;/P&gt;&lt;P&gt;I don't have any usb connector, but like I have, in another's projects it's work very well.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="crcn_0-1675855616935.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/210117i59229836E0EB3C36/image-size/medium?v=v2&amp;amp;px=400" role="button" title="crcn_0-1675855616935.png" alt="crcn_0-1675855616935.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With that configuration, using UUU tool, In the terminal, the boot stops here:&lt;/P&gt;&lt;P&gt;U-Boot SPL 2020.04-00001-g62a81128c0-dirty (Feb 07 2023 - 15:50:55 +0000)&lt;BR /&gt;DDRINFO: start DRAM init&lt;BR /&gt;DDRINFO: DRAM rate 2400MTS&lt;BR /&gt;DDRINFO:ddrphy calibration done&lt;BR /&gt;DDRINFO: ddrmix config done&lt;BR /&gt;Normal Boot&lt;BR /&gt;Trying to boot from USB SDP&lt;BR /&gt;CRCN drivers/usb/imx/usb-mx6-common.c 303 val 3741319168 ctrl2 853803524&lt;BR /&gt;CRCN drivers/usb/gadget/ci_udc.c 960 4096 768&lt;BR /&gt;CRCN &lt;SPAN&gt;controller.epts is null&lt;/SPAN&gt;&lt;BR /&gt;g_dnl_register: failed!, error: -12&lt;BR /&gt;SDP dnl register failed: -12&lt;BR /&gt;SPL: failed to boot from all boot devices&lt;BR /&gt;### ERROR ### Please RESET the board ###&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the function ci_udc_probe in ci_udc.c&amp;nbsp; I have&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;static&lt;/SPAN&gt; &lt;SPAN&gt;int&lt;/SPAN&gt; &lt;SPAN&gt;ci_udc_probe&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;void&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;struct&lt;/SPAN&gt; &lt;SPAN&gt;ept_queue_head&lt;/SPAN&gt;&lt;SPAN&gt; *&lt;/SPAN&gt;&lt;SPAN&gt;head&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;int&lt;/SPAN&gt; &lt;SPAN&gt;i&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;int&lt;/SPAN&gt; &lt;SPAN&gt;num&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt; * &lt;/SPAN&gt;&lt;SPAN&gt;NUM_ENDPOINTS&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;int&lt;/SPAN&gt; &lt;SPAN&gt;eplist_min_align&lt;/SPAN&gt;&lt;SPA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/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#33CCCC"&gt;printf("CRCN %s %d %d %d\n",__FILE__,__LINE__,eplist_align,eplist_sz);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/* The QH list must be aligned to 4096 bytes. */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;controller&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;epts&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;memalign&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;eplist_align&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;eplist_sz&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (!&lt;/SPAN&gt;&lt;SPAN&gt;controller&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;epts&lt;/SPAN&gt;&lt;SPAN&gt;){&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#33CCCC"&gt;printf("CRCN controller.epts is null\n",__FILE__,__LINE__);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt; -&lt;/SPAN&gt;&lt;SPAN&gt;ENOMEM&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Then, I change the hardware, inserting the MIC2026, using only the A input/flag/output, and the result is the same.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;As you can see, I put a printf (&lt;STRONG&gt;&lt;FONT color="#33CCCC"&gt;"CRCN controller.epts is null&lt;/FONT&gt;&lt;/STRONG&gt;") if the result of the memalign is null.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Another test that I make, was configure&amp;nbsp; USBNC_n_CTRL2 register (0x32E40204), to change DIG_ID_SEL to 1 (0xDF100000). Result is the same..&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Why the boot stops here, in memalign? For me is strange that the USB part of the schematic is bad, if the Uboot SPL start run... Can be another problem regarding DDR, MMC, etc???&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Regarding your question about uboot version, I'm using uboot 2020.04.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Feb 2023 11:33:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-program-uboot-using-UUU/m-p/1595548#M201241</guid>
      <dc:creator>crcn</dc:creator>
      <dc:date>2023-02-08T11:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MM program uboot using UUU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-program-uboot-using-UUU/m-p/1597624#M201400</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I see that you are not using UBS_OTG_ID pin in your schematic even though it is defined as otg in your device tree and in your schematic, this could be causing the issue, please try by setting one of the 2 modes in device tree by using:&lt;BR /&gt;dr_mode = "peripheral";&lt;BR /&gt;&lt;BR /&gt;Even one could use the i.MX6 as reference for this:&lt;BR /&gt;&lt;A href="https://source.codeaurora.org/external/imx/uboot-imx/tree/arch/arm/dts/imx6qdl-sabresd.dtsi?h=lf_v2022.04#n1108" target="_blank"&gt;https://source.codeaurora.org/external/imx/uboot-imx/tree/arch/arm/dts/imx6qdl-sabresd.dtsi?h=lf_v2022.04#n1108&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 23:45:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-program-uboot-using-UUU/m-p/1597624#M201400</guid>
      <dc:creator>AldoG</dc:creator>
      <dc:date>2023-02-10T23:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MM program uboot using UUU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-program-uboot-using-UUU/m-p/1742892#M214422</link>
      <description>&lt;P&gt;I got the same thing on some board too. I think the issue is located on SPL code.&lt;BR /&gt;&lt;BR /&gt;U-Boot SPL 2022.04-lf_v2022.04+g181859317b (Aug 30 2023 - 19:05:10 +0000)&lt;BR /&gt;Init PCA9450A&lt;BR /&gt;BOARD REVISION : A, OPTION : 0&lt;BR /&gt;DRAM : LPDDR4 2000 MB&lt;BR /&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: RNG instantiated&lt;BR /&gt;Normal Boot&lt;BR /&gt;Trying to boot from USB SDP&lt;BR /&gt;board_usb_init 0, type 1&lt;BR /&gt;g_dnl_register: failed!, error: -19&lt;BR /&gt;SDP dnl register failed: -19&lt;BR /&gt;SPL: failed to boot from all boot devices&lt;BR /&gt;### ERROR ### Please RESET the board ###&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 11:32:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-program-uboot-using-UUU/m-p/1742892#M214422</guid>
      <dc:creator>Lorac</dc:creator>
      <dc:date>2023-10-19T11:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MM program uboot using UUU</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-program-uboot-using-UUU/m-p/1744758#M214581</link>
      <description>&lt;P&gt;FYI, I found the raison why on some board, I got this failure during uuu download.&lt;BR /&gt;Verify the state of USB1_ID (pinD22). In my board with issues, this signal was grounded or not floating.&lt;/P&gt;&lt;P&gt;Regards.&lt;BR /&gt;CD&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 19:51:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-program-uboot-using-UUU/m-p/1744758#M214581</guid>
      <dc:creator>Lorac</dc:creator>
      <dc:date>2023-10-23T19:51:57Z</dc:date>
    </item>
  </channel>
</rss>

