<?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: Using SDcard in SPI mode on FRDM K22-F in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-SDcard-in-SPI-mode-on-FRDM-K22-F/m-p/593228#M7477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vitor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Erich has already answered your questions then disregard.&lt;/P&gt;&lt;P&gt;In case you're still interested I'm attaching a project that uses FAT with SD in SPI mode. It's interrupt based but I've used with edma as well. It's a KSDK 1.3 ProcessorExpert project.&lt;/P&gt;&lt;P&gt;Sorry, I don't know about SynchroMaster so if you need more help with that then I suggest asking Erich!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Aug 2016 23:38:09 GMT</pubDate>
    <dc:creator>ra9623</dc:creator>
    <dc:date>2016-08-12T23:38:09Z</dc:date>
    <item>
      <title>Using SDcard in SPI mode on FRDM K22-F</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-SDcard-in-SPI-mode-on-FRDM-K22-F/m-p/593222#M7471</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 want to implement a FAT system to use an SD card on the FRDM K22-F, in SPI mode. The component on Processor Expert used to implement it is FAT system is the FatFile_System. However, this component is linked specifically and only to the FatFsMemSDHC and its inherited SDHC_LDD components, which perform the operations through the physical layer, and they are meant to use in SD mode. Therefore,&amp;nbsp; FatFile_System and SynchroMaster component can't work together. As the FRDM board is not wired to work in SD mode, I couldn't just use the FatFile_System component as it is(and I want to work in SPI mode anyway). How can I do it? And please, if there's any misconception in my thoughts above, let me know.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vítor Pereira&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 15:15:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-SDcard-in-SPI-mode-on-FRDM-K22-F/m-p/593222#M7471</guid>
      <dc:creator>vítorpereira</dc:creator>
      <dc:date>2016-08-11T15:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using SDcard in SPI mode on FRDM K22-F</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-SDcard-in-SPI-mode-on-FRDM-K22-F/m-p/593223#M7472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vitor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I can help you with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which version of KSDK are you using?&amp;nbsp; I have a FRDM-K22F at home using version 1.3.&amp;nbsp; I have it working with SD Card in SPI mode.&amp;nbsp; I can share source with you but it's on my personal computer at home so it'll have to wait until tomorrow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 15:51:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-SDcard-in-SPI-mode-on-FRDM-K22-F/m-p/593223#M7472</guid>
      <dc:creator>ra9623</dc:creator>
      <dc:date>2016-08-11T15:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using SDcard in SPI mode on FRDM K22-F</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-SDcard-in-SPI-mode-on-FRDM-K22-F/m-p/593224#M7473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joseph,&lt;/P&gt;&lt;P&gt;I'm not using KSDK, but even so what you did could be of immeasurable value, since you somehow turned the problem aorund, isn't it? And no problem, I can wait until tomorrow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot, Joseph!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vítor Pereira&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 15:57:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-SDcard-in-SPI-mode-on-FRDM-K22-F/m-p/593224#M7473</guid>
      <dc:creator>vítorpereira</dc:creator>
      <dc:date>2016-08-11T15:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using SDcard in SPI mode on FRDM K22-F</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-SDcard-in-SPI-mode-on-FRDM-K22-F/m-p/593225#M7474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vitor,&lt;/P&gt;&lt;P&gt;I'm using FatFS with the FRDM-K22F in normal SPI mode and Processor Expert, see &lt;A href="https://mcuoneclipse.com/2015/10/07/added-micro-sd-card-socket-to-frdm-k22f/" title="https://mcuoneclipse.com/2015/10/07/added-micro-sd-card-socket-to-frdm-k22f/"&gt;https://mcuoneclipse.com/2015/10/07/added-micro-sd-card-socket-to-frdm-k22f/&lt;/A&gt; .&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/1329i80790ABF2CCAF01D/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&gt;The project is available on GitHub (&lt;A href="https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/KDS/FRDM-K22F/FRDM-K22F_FatFS" rel="nofollow" title="https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/KDS/FRDM-K22F/FRDM-K22F_FatFS"&gt;mcuoneclipse/Examples/KDS/FRDM-K22F/FRDM-K22F_FatFS at master · ErichStyger/mcuoneclipse · GitHub&lt;/A&gt; ), but I have attached it for your convenience here as well. Note that the project is using open source Processor Expert from SourceForge (see &lt;A href="https://mcuoneclipse.com/2014/10/21/mcuoneclipse-releases-on-sourceforge/" title="https://mcuoneclipse.com/2014/10/21/mcuoneclipse-releases-on-sourceforge/"&gt;https://mcuoneclipse.com/2014/10/21/mcuoneclipse-releases-on-sourceforge/&lt;/A&gt;&amp;nbsp; and &lt;A href="https://sourceforge.net/projects/mcuoneclipse/files/PEx%20Components/" title="https://sourceforge.net/projects/mcuoneclipse/files/PEx%20Components/"&gt;McuOnEclipse - Browse /PEx Components at SourceForge.net&lt;/A&gt; ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 18:20:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-SDcard-in-SPI-mode-on-FRDM-K22-F/m-p/593225#M7474</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2016-08-11T18:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using SDcard in SPI mode on FRDM K22-F</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-SDcard-in-SPI-mode-on-FRDM-K22-F/m-p/593226#M7475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich, I downloaded the project and I saw you used KSDK on your project. Is it essential?&lt;/P&gt;&lt;P&gt;Also, I'm a little bit confused: do I have to use SychroMaster methods myself directly or it is used by the FAT_FileSystem under its functions without me noticing it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vítor Pereira&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 14:23:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-SDcard-in-SPI-mode-on-FRDM-K22-F/m-p/593226#M7475</guid>
      <dc:creator>vítorpereira</dc:creator>
      <dc:date>2016-08-12T14:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using SDcard in SPI mode on FRDM K22-F</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-SDcard-in-SPI-mode-on-FRDM-K22-F/m-p/593227#M7476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vitor,&lt;/P&gt;&lt;P&gt;No, it is not using the Kinetis SDK, as the version is set to 'none':&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3447iADB04BEC2930D5EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That component is only there to make the bridge for either 'none', SDK v1.3 or SDK v2.0 and to provide the necessary wrappers.&lt;/P&gt;&lt;P&gt;As you should see with the example, you do not need to use the Synchromaster methods directly: simply use the FatFS functions.&lt;/P&gt;&lt;P&gt;In that example I'm using FreeRTOS because it makes the application scalable. But if you want to run it baremetal, here is another example (well, for a different board, but you could use the same thing for the FRDM-K22F and KDS):&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/ErichStyger/mcuoneclipse/blob/master/Examples/CodeWarrior/TRW-K60N512/TWR-K60N512_FatFS_BM/Sources/Application.c" title="https://github.com/ErichStyger/mcuoneclipse/blob/master/Examples/CodeWarrior/TRW-K60N512/TWR-K60N512_FatFS_BM/Sources/Application.c"&gt;https://github.com/ErichStyger/mcuoneclipse/blob/master/Examples/CodeWarrior/TRW-K60N512/TWR-K60N512_FatFS_BM/Sources/Application.c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 15:32:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-SDcard-in-SPI-mode-on-FRDM-K22-F/m-p/593227#M7476</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2016-08-12T15:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using SDcard in SPI mode on FRDM K22-F</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-SDcard-in-SPI-mode-on-FRDM-K22-F/m-p/593228#M7477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vitor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Erich has already answered your questions then disregard.&lt;/P&gt;&lt;P&gt;In case you're still interested I'm attaching a project that uses FAT with SD in SPI mode. It's interrupt based but I've used with edma as well. It's a KSDK 1.3 ProcessorExpert project.&lt;/P&gt;&lt;P&gt;Sorry, I don't know about SynchroMaster so if you need more help with that then I suggest asking Erich!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 23:38:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-SDcard-in-SPI-mode-on-FRDM-K22-F/m-p/593228#M7477</guid>
      <dc:creator>ra9623</dc:creator>
      <dc:date>2016-08-12T23:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using SDcard in SPI mode on FRDM K22-F</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-SDcard-in-SPI-mode-on-FRDM-K22-F/m-p/593229#M7478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe, thanks for sending me your project. I'll take a look. I think I have now some material to get some help. Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vítor Pereira&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2016 12:19:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-SDcard-in-SPI-mode-on-FRDM-K22-F/m-p/593229#M7478</guid>
      <dc:creator>vítorpereira</dc:creator>
      <dc:date>2016-08-15T12:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using SDcard in SPI mode on FRDM K22-F</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-SDcard-in-SPI-mode-on-FRDM-K22-F/m-p/593230#M7479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys, I did it! It was actually pretty simple! Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vítor Pereira&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2016 14:51:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-SDcard-in-SPI-mode-on-FRDM-K22-F/m-p/593230#M7479</guid>
      <dc:creator>vítorpereira</dc:creator>
      <dc:date>2016-08-19T14:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using SDcard in SPI mode on FRDM K22-F</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-SDcard-in-SPI-mode-on-FRDM-K22-F/m-p/593231#M7480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Congratulations.&amp;nbsp; Glad to help.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2016 18:24:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Using-SDcard-in-SPI-mode-on-FRDM-K22-F/m-p/593231#M7480</guid>
      <dc:creator>ra9623</dc:creator>
      <dc:date>2016-08-19T18:24:37Z</dc:date>
    </item>
  </channel>
</rss>

