<?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: how to change USB SD-MSD SDHC to SPI mode in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-change-USB-SD-MSD-SDHC-to-SPI-mode/m-p/469060#M15570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudhakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example you are using is prepared to add SPI support but it is not implemented yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see in disc.c there macro USE_SPI_PROTOCOL is defined but not used. You need to implement each function of the driver and you may use this macro to build SPI functions of DSHC functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#if USE_SPI_PROTOCOL&lt;/P&gt;&lt;P&gt;void spi_detect_io_init(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;//this must be defined in disc.c by user&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#else&lt;/P&gt;&lt;P&gt;void sdhc_detect_io_init(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;//this code is already defined in disc.c...&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Mar 2016 20:28:20 GMT</pubDate>
    <dc:creator>Carlos_Musich</dc:creator>
    <dc:date>2016-03-11T20:28:20Z</dc:date>
    <item>
      <title>how to change USB SD-MSD SDHC to SPI mode</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-change-USB-SD-MSD-SDHC-to-SPI-mode/m-p/469059#M15569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i am using FRDMK64 controller and KDS3.0 and KSDK1.3.0 example. i got USB SD-card mass storage device from KSDK example.straight way its working with SDHC protocol. but i want to implement with SPI pins.so how to modify code to USB SD-MSD&amp;nbsp; with&amp;nbsp; SPI mode. i saw configuration setting in example code&lt;/P&gt;&lt;P&gt;#if SD_CARD_APP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define USE_SDHC_PROTOCOL&amp;nbsp;&amp;nbsp;&amp;nbsp; (0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define USE_SPI_PROTOCOL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (1)&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i changed to SPI_PROTOCOL but its not working. i changed SD card pins connection to SPI pins also. i am sure with hardware connection.&amp;nbsp; can you give some idea..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sudhakar p &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 09:33:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-change-USB-SD-MSD-SDHC-to-SPI-mode/m-p/469059#M15569</guid>
      <dc:creator>sudhakarp</dc:creator>
      <dc:date>2016-03-11T09:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to change USB SD-MSD SDHC to SPI mode</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-change-USB-SD-MSD-SDHC-to-SPI-mode/m-p/469060#M15570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudhakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example you are using is prepared to add SPI support but it is not implemented yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see in disc.c there macro USE_SPI_PROTOCOL is defined but not used. You need to implement each function of the driver and you may use this macro to build SPI functions of DSHC functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#if USE_SPI_PROTOCOL&lt;/P&gt;&lt;P&gt;void spi_detect_io_init(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;//this must be defined in disc.c by user&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#else&lt;/P&gt;&lt;P&gt;void sdhc_detect_io_init(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;//this code is already defined in disc.c...&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 20:28:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-change-USB-SD-MSD-SDHC-to-SPI-mode/m-p/469060#M15570</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2016-03-11T20:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to change USB SD-MSD SDHC to SPI mode</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-change-USB-SD-MSD-SDHC-to-SPI-mode/m-p/469061#M15571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and also i modified SD_Init() function related to SPI. i attached that code also.but its not working its hanging inside&lt;/P&gt;&lt;P&gt;SDSPI_DRV_Init(); function&lt;/P&gt;&lt;P&gt;if (kStatus_SDSPI_NoError != SDSPI_DRV_GoIdle(spi, card))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return kStatus_SDSPI_Failed;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;please can u find problem where i am doing mistake&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;sudhakar p !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 04:11:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-change-USB-SD-MSD-SDHC-to-SPI-mode/m-p/469061#M15571</guid>
      <dc:creator>sudhakarp</dc:creator>
      <dc:date>2016-03-14T04:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to change USB SD-MSD SDHC to SPI mode</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-change-USB-SD-MSD-SDHC-to-SPI-mode/m-p/469062#M15572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudhakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked your disc.c file and I did not find the SPI initialization and I saw your edits in USB_App_Class_Callback to read and write using SPI but I did not see the SPI initialization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2016 18:46:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/how-to-change-USB-SD-MSD-SDHC-to-SPI-mode/m-p/469062#M15572</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2016-03-28T18:46:15Z</dc:date>
    </item>
  </channel>
</rss>

