<?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: Problem to use USDHC2 with fatfs_sdcard exemple in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Problem-to-use-USDHC2-with-fatfs-sdcard-exemple/m-p/1004800#M6206</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you know why I have&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #51626f; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;kStatus_SDMMC_SwitchBusTimingFailed&lt;/SPAN&gt; error with&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #51626f; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;USDHC2?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #51626f; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt; I have not with&amp;nbsp;USDHC1 when I use &lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #51626f; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;GPIO_B1_14 pin as GPIO&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Mar 2020 12:58:54 GMT</pubDate>
    <dc:creator>lacouturepatric</dc:creator>
    <dc:date>2020-03-12T12:58:54Z</dc:date>
    <item>
      <title>Problem to use USDHC2 with fatfs_sdcard exemple</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Problem-to-use-USDHC2-with-fatfs-sdcard-exemple/m-p/1004795#M6201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;I have design a board that includes :&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;- a MIMXRT1064DVL6A processor, &lt;BR /&gt;- Memory IS42s16160j,&lt;BR /&gt;- 2 SD card slot (USDHC1 and USDHC2)&lt;BR /&gt;- JTAG,&lt;BR /&gt;- A led,&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I am trying to test the SD card slot 1 and slot 2.&lt;/DIV&gt;&lt;DIV&gt;I am using "the fat" exemple to init and configure the USDHC and to do a "f_mkdir".&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Test on slot 1: I succeed to init and configure USDHC1&amp;nbsp; and to create the directory "dir_1' into a SDcard from slot 1.&lt;/DIV&gt;&lt;DIV&gt;Test on slot 2: I have the code error = 6502 during the "f_mkdir" called. The error &lt;BR /&gt;appears from SD_SendInterfaceCondition function.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I modified the following functions :&lt;/DIV&gt;&lt;DIV&gt;- sdcardWaitCardInsert_SD2() : to take USDHC2 base address&lt;BR /&gt;g_sd.host.base&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = MMC_HOST_BASEADDR;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;g_sd.host.sourceClock_Hz =&amp;nbsp; MMC_HOST_CLK_FREQ;&lt;/DIV&gt;&lt;DIV&gt;- BOARD_InitPinsSD2() : to init Pins SD2 card&lt;BR /&gt;- BOARD_USDHC2ClockConfiguration : to configure the USDHC2Clock.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Do you think I forgot a configuration to use USDHC2 instead of USDHC1?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Please find attached my modified code (fatfs_sdcard.c and pin_mux).&lt;/DIV&gt;&lt;DIV&gt;Thank you for your help.&lt;BR /&gt;Best Regards,&lt;BR /&gt;Patrice&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2020 16:48:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Problem-to-use-USDHC2-with-fatfs-sdcard-exemple/m-p/1004795#M6201</guid>
      <dc:creator>lacouturepatric</dc:creator>
      <dc:date>2020-03-09T16:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to use USDHC2 with fatfs_sdcard exemple</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Problem-to-use-USDHC2-with-fatfs-sdcard-exemple/m-p/1004796#M6202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patrice,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and &lt;BR /&gt;for the opportunity to serve you.&lt;BR /&gt;After having a brief review of the code, I've not found any errors in them.&lt;BR /&gt;So I suspect that it may be related to the hardware circuit, I'd highly recommend you to modify the sdcard_polling or sdcard_interrupt to test the USDHC2, as software architecture of these demo projects is more simple and close to the hardware layer, please give a try.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&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="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&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, 11 Mar 2020 03:59:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Problem-to-use-USDHC2-with-fatfs-sdcard-exemple/m-p/1004796#M6202</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2020-03-11T03:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to use USDHC2 with fatfs_sdcard exemple</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Problem-to-use-USDHC2-with-fatfs-sdcard-exemple/m-p/1004797#M6203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello, &lt;BR /&gt;Thank you for your answer, I found where the problem is. &lt;BR /&gt;In pin_mux.c, I should set pin mux at the address IOMUXC_GPIO_SD_B1_04_USDHC2_CLK instead of IOMUXC_GPIO_AD_B1_09_USDHC2_CLK (BOARD_InitPinsSD2 function).&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I have not now the error 6502 but I have another problem. When I try to switch voltage at 1.8V (SD_ProbeBusVoltage), I have the error kStatus_SDMMC_SwitchVoltageFail.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;In fact, my switch GPIO is GPIO_B1_14, configured as IOMUXC_GPIO_B1_14_USDHC1_VSELECT. &lt;BR /&gt;It enables to switch the voltage for USDHC1 well but not USDHC2.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;In my design, I use the same regulator for NVCC_SD0 and NVCC_SD1 with the command GPIO_B1_14.&lt;/DIV&gt;&lt;DIV&gt;Can I use GPIO_B1_14 as VSELECT for USDHC2? &lt;BR /&gt;If yes, how?&lt;/DIV&gt;&lt;DIV&gt;Thank you,&lt;/DIV&gt;&lt;DIV&gt;Regards&lt;BR /&gt;Patrice&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2020 09:35:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Problem-to-use-USDHC2-with-fatfs-sdcard-exemple/m-p/1004797#M6203</guid>
      <dc:creator>lacouturepatric</dc:creator>
      <dc:date>2020-03-11T09:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to use USDHC2 with fatfs_sdcard exemple</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Problem-to-use-USDHC2-with-fatfs-sdcard-exemple/m-p/1004798#M6204</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="301403" data-username="lacouturepatrice" href="https://community.nxp.com/people/lacouturepatrice"&gt;Lacouture Patrice&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;I think you should use the GPIO_EMC_38 pin as the USDHC2_VSELECT if you want to port the same voltage switch mechanism from the USDHC1 to USDHC2.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/100852i996EF284DD5E71B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&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="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&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, 12 Mar 2020 04:08:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Problem-to-use-USDHC2-with-fatfs-sdcard-exemple/m-p/1004798#M6204</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2020-03-12T04:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to use USDHC2 with fatfs_sdcard exemple</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Problem-to-use-USDHC2-with-fatfs-sdcard-exemple/m-p/1004799#M6205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello, &lt;BR /&gt;Thank you for your answer.&lt;/DIV&gt;&lt;DIV&gt;My board is already built, I have no possbility to connect GPIO_EMC_38 to the switch and this pin is used by the memory (SEMC_DM1).&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I found the possibility to use GPIO_B1_14 pin as GPIO instead of USDHC1_VSELECT to set NVCC_SD1&amp;nbsp; at 1.8V (NVCC_SD0 and NVCC_SD1 are powered with USDHC1_VSELECT).&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;In the DMMC_SwitchToVoltage(fsl_sdmmc_common) function, I do a GPIO_PinWrite(GPIO2, 30U, 1U) instead of SDMMCHOST_SWITCH_VOLTAGE180V(base, true);&lt;/DIV&gt;&lt;DIV&gt;It works, the NVCC_SD1 is well at 1.8V but I have a kStatus_SDMMC_SwitchBusTimingFailed error in SD_CardInit function.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;If I put in comment the error (line 1885, fsl-sd.c) and if I use the GPIO, the directory is created without error but at 50MHz clock rate.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Do you think there are other solutions than using USDHC1_VSELECT as GPIO or using GPIO_EMC_38?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Best regards,&lt;BR /&gt;Patrice&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;PS : This is the same with Test_sd_polling exemple.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2020 10:24:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Problem-to-use-USDHC2-with-fatfs-sdcard-exemple/m-p/1004799#M6205</guid>
      <dc:creator>lacouturepatric</dc:creator>
      <dc:date>2020-03-12T10:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to use USDHC2 with fatfs_sdcard exemple</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Problem-to-use-USDHC2-with-fatfs-sdcard-exemple/m-p/1004800#M6206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you know why I have&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #51626f; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;kStatus_SDMMC_SwitchBusTimingFailed&lt;/SPAN&gt; error with&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #51626f; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;USDHC2?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #51626f; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt; I have not with&amp;nbsp;USDHC1 when I use &lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #51626f; font-family: inherit; font-size: 100%; font-style: inherit; font-variant: normal; font-weight: inherit; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;GPIO_B1_14 pin as GPIO&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2020 12:58:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Problem-to-use-USDHC2-with-fatfs-sdcard-exemple/m-p/1004800#M6206</guid>
      <dc:creator>lacouturepatric</dc:creator>
      <dc:date>2020-03-12T12:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem to use USDHC2 with fatfs_sdcard exemple</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Problem-to-use-USDHC2-with-fatfs-sdcard-exemple/m-p/1004801#M6207</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="301403" data-objecttype="3" href="https://community.nxp.com/people/lacouturepatrice"&gt;Lacouture Patrice&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;1) Do you know why I have kStatus_SDMMC_SwitchBusTimingFailed error with USDHC2?&lt;BR /&gt;-- I think it's related to the switch voltage sequence, whether you can tell the what response of the &lt;STRONG&gt;SD_SwitchVoltage(card)&lt;/STRONG&gt; function.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/104032iCBC44C3E047E9D47/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&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="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&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, 13 Mar 2020 11:54:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Problem-to-use-USDHC2-with-fatfs-sdcard-exemple/m-p/1004801#M6207</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2020-03-13T11:54:06Z</dc:date>
    </item>
  </channel>
</rss>

