<?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 i.mx rt1052 EVKB e.mmc issue in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/i-mx-rt1052-EVKB-e-mmc-issue/m-p/846964#M1744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having issues reading/writing from/to an e.mmc card using the mmc driver from MCUExpresso SDK 2.4.&lt;/P&gt;&lt;P&gt;So far I have successfully initialized the peripheral and extracted all e.mmc card information into the "mmc_card_t" struct.&lt;/P&gt;&lt;P&gt;However when I try to read and write a block it fails. Are there any special considerations to take, when setting up usdhc1 for mmc?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since there are no example projects for setting up the peripheral for mmc, I've used the SD card example project as inspiration. My code is show below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define MMC_HOST_BASE&amp;nbsp;&amp;nbsp; &amp;nbsp;USDHC1&lt;/P&gt;&lt;P&gt;#define MMC_CLOCK_FREQ&amp;nbsp;&amp;nbsp; &amp;nbsp;(CLOCK_GetSysPfdFreq(kCLOCK_Pfd0) / (CLOCK_GetDiv(kCLOCK_Usdhc1Div) + 1U))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static mmc_card_t emmc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOCK_InitSysPfd(kCLOCK_Pfd0, 18);&lt;BR /&gt;CLOCK_SetDiv(kCLOCK_Usdhc1Div, 0U);&lt;BR /&gt;CLOCK_SetMux(kCLOCK_Usdhc1Mux, 1U);&lt;BR /&gt;NVIC_SetPriority(USDHC1_IRQn, 5U);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;emmc.host.base = MMC_HOST_BASE;&lt;BR /&gt;emmc.host.sourceClock_Hz = MMC_CLOCK_FREQ; &lt;BR /&gt;emmc.hostVoltageWindowVCC = kMMC_VoltageWindows270to360;&lt;BR /&gt;emmc.ocr = MMC_OCR_V270TO360_MASK;&lt;BR /&gt;emmc.busWidth = kMMC_DataBusWidth4bit;&lt;BR /&gt;emmc.busTiming = kMMC_HighSpeedTiming;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MMC_Init(&amp;amp;emmc);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jul 2018 08:21:02 GMT</pubDate>
    <dc:creator>nbi</dc:creator>
    <dc:date>2018-07-04T08:21:02Z</dc:date>
    <item>
      <title>i.mx rt1052 EVKB e.mmc issue</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/i-mx-rt1052-EVKB-e-mmc-issue/m-p/846964#M1744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having issues reading/writing from/to an e.mmc card using the mmc driver from MCUExpresso SDK 2.4.&lt;/P&gt;&lt;P&gt;So far I have successfully initialized the peripheral and extracted all e.mmc card information into the "mmc_card_t" struct.&lt;/P&gt;&lt;P&gt;However when I try to read and write a block it fails. Are there any special considerations to take, when setting up usdhc1 for mmc?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since there are no example projects for setting up the peripheral for mmc, I've used the SD card example project as inspiration. My code is show below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define MMC_HOST_BASE&amp;nbsp;&amp;nbsp; &amp;nbsp;USDHC1&lt;/P&gt;&lt;P&gt;#define MMC_CLOCK_FREQ&amp;nbsp;&amp;nbsp; &amp;nbsp;(CLOCK_GetSysPfdFreq(kCLOCK_Pfd0) / (CLOCK_GetDiv(kCLOCK_Usdhc1Div) + 1U))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static mmc_card_t emmc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOCK_InitSysPfd(kCLOCK_Pfd0, 18);&lt;BR /&gt;CLOCK_SetDiv(kCLOCK_Usdhc1Div, 0U);&lt;BR /&gt;CLOCK_SetMux(kCLOCK_Usdhc1Mux, 1U);&lt;BR /&gt;NVIC_SetPriority(USDHC1_IRQn, 5U);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;emmc.host.base = MMC_HOST_BASE;&lt;BR /&gt;emmc.host.sourceClock_Hz = MMC_CLOCK_FREQ; &lt;BR /&gt;emmc.hostVoltageWindowVCC = kMMC_VoltageWindows270to360;&lt;BR /&gt;emmc.ocr = MMC_OCR_V270TO360_MASK;&lt;BR /&gt;emmc.busWidth = kMMC_DataBusWidth4bit;&lt;BR /&gt;emmc.busTiming = kMMC_HighSpeedTiming;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MMC_Init(&amp;amp;emmc);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 08:21:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/i-mx-rt1052-EVKB-e-mmc-issue/m-p/846964#M1744</guid>
      <dc:creator>nbi</dc:creator>
      <dc:date>2018-07-04T08:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx rt1052 EVKB e.mmc issue</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/i-mx-rt1052-EVKB-e-mmc-issue/m-p/846965#M1745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nils&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.MXRT0152 uses the same uSDHC module as other i.MX6 processors,&lt;/P&gt;&lt;P&gt;driver is located in&amp;nbsp; ../drivers/fsl_usdhc.c folder and one can try to debug it&lt;/P&gt;&lt;P&gt;starting with function USDHC_Init()&amp;nbsp; and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 23:34:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/i-mx-rt1052-EVKB-e-mmc-issue/m-p/846965#M1745</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-07-09T23:34:32Z</dc:date>
    </item>
  </channel>
</rss>

