<?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>Kinetis MicrocontrollersのトピックRe: FRDM-K64F--FileSystem(FatFs) on microSD through 4bit mode(SDHC)</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-FileSystem-FatFs-on-microSD-through-4bit-mode-SDHC/m-p/429771#M24828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marios Pelekis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you made progress with your project?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you posted this question some tutorials were released about the use of SDHC module with KSDK together with FatFs. These are the links:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Data logger with KSDK using SDHC + FatFs (no Processor Expert):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-105852"&gt;FatFs + SDHC data logger with KSDK in Kinetis Design Studio&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Similar data logger but using Processor Expert components:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://centaurian.co.uk/2015/07/15/frdm-k64f-data-logger-using-fatfs-with-ksdk-1-2-0/" title="http://centaurian.co.uk/2015/07/15/frdm-k64f-data-logger-using-fatfs-with-ksdk-1-2-0/"&gt;FRDM K64F Data Logger using FatFs with KSDK 1.2.0 | Centaurian&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use Processor Expert and run into issues, make sure to check this thread also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/363962"&gt;fsl_sdhc_driver Stuck at SDHC_HAL_GetCurState()&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;:smileyalert: Note that in the tutorials the components you initially mentioned are not used. Instead KSDK drivers are leveraged.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Aug 2015 01:35:27 GMT</pubDate>
    <dc:creator>Jorge_Gonzalez</dc:creator>
    <dc:date>2015-08-14T01:35:27Z</dc:date>
    <item>
      <title>FRDM-K64F--FileSystem(FatFs) on microSD through 4bit mode(SDHC)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-FileSystem-FatFs-on-microSD-through-4bit-mode-SDHC/m-p/429768#M24825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; I am trying to make a TFT device system ,communicating with a microSD card through 4bit mode, so I need to use the internal SDHC module.&lt;/P&gt;&lt;P&gt;Additionally, I need a high level software layer to control the Chan’s FileSystem .I have already use Chan’s FatFs code in 8 bit controllers so I want&amp;nbsp; to continue work with this.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My installed staff:&lt;/P&gt;&lt;P&gt;-KDS 3.0.0 IDE&lt;/P&gt;&lt;P&gt;-KSDK 1.2v&lt;/P&gt;&lt;P&gt;-PE Components(FAT_FileSystem, FatFsMemSDHC, Timeout)-Everything is downloaded from Freescale Forum Links &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: red;"&gt;-&lt;STRONG&gt;Without Operating system&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I create a new Kinetis project with PE enable and without KSDK. While I have properly configured the microcontroller, I add directly the FAT_Filesystem PE component.&lt;/P&gt;&lt;P&gt;After this step, other components ask to be added (FatFsMemSDHC,Timeout,GPIO).&lt;/P&gt;&lt;P&gt;Then, after I have configured all components as I want, generate the code.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="text-decoration: underline;"&gt;Issue:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;At the FatFsMemSDHC component I have chosen a CARD_DETECT_PIN&amp;nbsp; selection with pull-up&amp;nbsp; enabled(pull-up cannot be disabled).&lt;/P&gt;&lt;P&gt;If we look at the Hardware of the FRDM_K64F we can check that the CARD_DETECT_PIN is positive logic(active high) which means that I am not able to detect the card inserted in any way. &lt;/P&gt;&lt;P&gt;In other Evaluation board of Freescale(TWR-K60 for example), the card detect pin of the SD socket is negative logic and that’s why the default code that PE generates, enable the pull-up on the Pin. &lt;/P&gt;&lt;P&gt;I found a way to solve this if I delete the pull-up generated code (attached on image 5).&lt;/P&gt;&lt;P&gt;Except this, the Initialization of FATM1 seems not completed correctly so I cannot run FatFs functions(f_mount ,f_open, etc.) &lt;/P&gt;&lt;P&gt;I have attached every step of the above as well as the whole project&amp;nbsp; in order to see what I am speaking for.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally ,let me know if there is any possibility that FatFs can work on a Kinetis &lt;SPAN style="text-decoration: underline;"&gt;without OS&lt;/SPAN&gt; while manage the low level SDHC drivers(4bit mode).&lt;/P&gt;&lt;P&gt;Untill now seems that it is possible in that way.Am I in the wrong way or I can solve the problem with some small changes to the existing project.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Marios&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337625"&gt;TestK64FatFs.rar&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 13:14:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-FileSystem-FatFs-on-microSD-through-4bit-mode-SDHC/m-p/429768#M24825</guid>
      <dc:creator>mariospelekis</dc:creator>
      <dc:date>2015-06-04T13:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64F--FileSystem(FatFs) on microSD through 4bit mode(SDHC)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-FileSystem-FatFs-on-microSD-through-4bit-mode-SDHC/m-p/429769#M24826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marios Pelekis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Responding to your question, yes it is possible to use FatFs in baremetal mode, but typically it's more convenient to use it with an RTOS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Processor Expert components you are using are custom components created by colleague Erich Styger. Please have a look at his example data logger implementation with FRDM-K64F in this tutorial:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2014/05/26/tutorial-data-logger-with-the-frdm-k64f-board/" title="http://mcuoneclipse.com/2014/05/26/tutorial-data-logger-with-the-frdm-k64f-board/"&gt;Tutorial: Data Logger with the FRDM-K64F Board | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards!,&lt;BR /&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 20:41:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-FileSystem-FatFs-on-microSD-through-4bit-mode-SDHC/m-p/429769#M24826</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2015-06-09T20:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64F--FileSystem(FatFs) on microSD through 4bit mode(SDHC)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-FileSystem-FatFs-on-microSD-through-4bit-mode-SDHC/m-p/429770#M24827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank for your reply Jorge_Gonzales,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As i mentioned i need to use the microSD over the SDHC module on k64 because i need more data transfer/time.&lt;/P&gt;&lt;P&gt;The link you forwarded to me is SPI mode based on, and generally i didn't found something on FS community neither around the internet about what i need to do.&lt;/P&gt;&lt;P&gt;Today I got the Beans file from &lt;A href="http://sourceforge.net/projects/mcuoneclipse/files/PEx%20Components/"&gt;here&lt;/A&gt; which is the latest version over the internet(Code and Component inspector bugs fixed).I tried the same thing as before and project again seems not to pass over the FATM1_Init(); that is called from the FAT1_Init(); --The compiler gives an error while trying to&lt;STRONG&gt; switch gears for higher speed&lt;/STRONG&gt; and finally FATM1_Init(); returns error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although I follow this topic on FS community ("&lt;A href="https://community.nxp.com/message/493488"&gt;Re: Re: KSDK 1.1 and Processor Expert adding SD card with MFS")&lt;/A&gt;​ in which your co&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;lleague &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/BlackNight"&gt;BlackNight&lt;/A&gt; replies and not eventhis updated PE Component seams to work or i am not configuring this correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other side you told me about RTOS.&lt;/P&gt;&lt;P&gt;Except MQX is there any example for&amp;nbsp; FRDM-K64F working FatFs on SDCH module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marios Pelekis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 09:43:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-FileSystem-FatFs-on-microSD-through-4bit-mode-SDHC/m-p/429770#M24827</guid>
      <dc:creator>mariospelekis</dc:creator>
      <dc:date>2015-06-10T09:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64F--FileSystem(FatFs) on microSD through 4bit mode(SDHC)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-FileSystem-FatFs-on-microSD-through-4bit-mode-SDHC/m-p/429771#M24828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marios Pelekis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you made progress with your project?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you posted this question some tutorials were released about the use of SDHC module with KSDK together with FatFs. These are the links:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Data logger with KSDK using SDHC + FatFs (no Processor Expert):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-105852"&gt;FatFs + SDHC data logger with KSDK in Kinetis Design Studio&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Similar data logger but using Processor Expert components:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://centaurian.co.uk/2015/07/15/frdm-k64f-data-logger-using-fatfs-with-ksdk-1-2-0/" title="http://centaurian.co.uk/2015/07/15/frdm-k64f-data-logger-using-fatfs-with-ksdk-1-2-0/"&gt;FRDM K64F Data Logger using FatFs with KSDK 1.2.0 | Centaurian&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use Processor Expert and run into issues, make sure to check this thread also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/363962"&gt;fsl_sdhc_driver Stuck at SDHC_HAL_GetCurState()&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;:smileyalert: Note that in the tutorials the components you initially mentioned are not used. Instead KSDK drivers are leveraged.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 01:35:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K64F-FileSystem-FatFs-on-microSD-through-4bit-mode-SDHC/m-p/429771#M24828</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2015-08-14T01:35:27Z</dc:date>
    </item>
  </channel>
</rss>

