<?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 sdio card detection in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/sdio-card-detection/m-p/156394#M797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with k60 mcu and mqx, I would like to use cd/data3 as card detection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So card detection is enabled and the corresponding int also is enable, but there is on intterupt trigger when I have the SD card inserted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Apr 2012 03:56:43 GMT</pubDate>
    <dc:creator>admin</dc:creator>
    <dc:date>2012-04-24T03:56:43Z</dc:date>
    <item>
      <title>sdio card detection</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/sdio-card-detection/m-p/156394#M797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with k60 mcu and mqx, I would like to use cd/data3 as card detection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So card detection is enabled and the corresponding int also is enable, but there is on intterupt trigger when I have the SD card inserted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2012 03:56:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/sdio-card-detection/m-p/156394#M797</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2012-04-24T03:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: sdio card detection</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/sdio-card-detection/m-p/156395#M798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi fzhu129,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what version of MQX are you using? Have you enabled the pull-up for the input pin cd/data3?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the command: lwpgio_set_attribute:&lt;/P&gt;&lt;P&gt;lwgpio_set_attribute(&amp;amp;pin_lwgpio_structure, LWGPIO_ATTR_PULL_UP, LWGPIO_AVAL_ENABLE);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MartrinK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2012 13:27:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/sdio-card-detection/m-p/156395#M798</guid>
      <dc:creator>c0170</dc:creator>
      <dc:date>2012-04-24T13:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: sdio card detection</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/sdio-card-detection/m-p/156396#M799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello MartrinK:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mqx3.8.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our customized don't use extra pin for detecting card.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use cd/data[3], right now I am configure cd/data[3] no pull up enable so I can see rising edge when card inserted but I cannot see interrupt being generated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Don't you have any example to make sd card working in interrupt mode with cd/data[3]?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2012 22:29:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/sdio-card-detection/m-p/156396#M799</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2012-04-24T22:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: sdio card detection</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/sdio-card-detection/m-p/156397#M800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey fzhu129.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i had the same problem .. i'm using K60 with MQX 3.8 on my cutom board..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i check it polled in my sdcard task .. maybe it helps &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  // check if a card is there ..  inserted=TRUE;  param=0;  ioctl (com_handle, IO_IOCTL_ESDHC_GET_CARD, &amp;amp;param);  if (param==0) { inserted=FALSE; }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but for this u need to modify the BSP ..&lt;/P&gt;&lt;P&gt;init_gpio.c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;_mqx_int _bsp_esdhc_io_init(    uint_8  dev_num,    uint_16 value){    SIM_MemMapPtr   sim  = SIM_BASE_PTR;    PORT_MemMapPtr  pctl;    switch (dev_num)    {        case 0:            /* Configure GPIO for SDHC peripheral function */            pctl = (PORT_MemMapPtr)PORTE_BASE_PTR;            pctl-&amp;gt;PCR[0] = value &amp;amp; (PORT_PCR_MUX(4) | PORT_PCR_PS_MASK | PORT_PCR_PE_MASK | PORT_PCR_DSE_MASK);    /* ESDHC.D1  */            pctl-&amp;gt;PCR[1] = value &amp;amp; (PORT_PCR_MUX(4) | PORT_PCR_PS_MASK | PORT_PCR_PE_MASK | PORT_PCR_DSE_MASK);    /* ESDHC.D0  */            pctl-&amp;gt;PCR[2] = value &amp;amp; (PORT_PCR_MUX(4) | PORT_PCR_DSE_MASK);                                          /* ESDHC.CLK */            pctl-&amp;gt;PCR[3] = value &amp;amp; (PORT_PCR_MUX(4) | PORT_PCR_PS_MASK | PORT_PCR_PE_MASK | PORT_PCR_DSE_MASK);    /* ESDHC.CMD */            pctl-&amp;gt;PCR[4] = value &amp;amp; (PORT_PCR_MUX(4) | /*PORT_PCR_PS_MASK | */PORT_PCR_PE_MASK | PORT_PCR_DSE_MASK);    /* ESDHC.D3  */            pctl-&amp;gt;PCR[5] = value &amp;amp; (PORT_PCR_MUX(4) | PORT_PCR_PS_MASK | PORT_PCR_PE_MASK | PORT_PCR_DSE_MASK);    /* ESDHC.D2  */            /* Enable clock gate to SDHC module */            sim-&amp;gt;SCGC3 |= SIM_SCGC3_SDHC_MASK;            break;        default:            /* Do nothing if bad dev_num was selected */            return -1;    }    return MQX_OK;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as default data3 is pulled high.. but it must be an pull down! cause the card has the pull up internally..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:00:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/sdio-card-detection/m-p/156397#M800</guid>
      <dc:creator>monXii</dc:creator>
      <dc:date>2020-10-29T09:00:28Z</dc:date>
    </item>
  </channel>
</rss>

