<?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のトピックTWR-K60F120M</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K60F120M/m-p/1167648#M58502</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I could use some help getting an SD card up and running on TWR-K60F120M. I've been having a difficult time locating resources on the proper way to initialize this "module". I have enabled a memory card via the "Run-Time Environment" feature in Keil. The issue I'm now having is that finit("M0:") hangs but fmount("M0:") does not. Could someone please let me know the appropriate way of initializing the file system?&lt;/P&gt;&lt;P&gt;Below is an empty project I'm using to test with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;#include &amp;lt;stdio.h&amp;gt;
#include "rl_fs.h"
#include "cmsis_os2.h"
#include "system_MK60F12.h"

volatile int test = 0;

int main (void)  {
   SystemInit();
   //osKernelInitialize ();
   volatile fsStatus test2 = finit ("M0:");
   //volatile fsStatus test3 = fmount ("M0:");
   //volatile fsStatus test2 = finit ("");
   
   while(1)
   {
      if(test++ &amp;gt; 500)
      {
         test = 0;
      }
      
   }
   
   return 0;
}

void Driver_SPI0(void)
{
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;IMG src="https://community.arm.com/cfs-file/__key/communityserver-discussions-components-files/471/pastedimage1602626682935v2.png" border="0" width="681" height="664" /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Oct 2020 19:09:11 GMT</pubDate>
    <dc:creator>jgreene</dc:creator>
    <dc:date>2020-10-14T19:09:11Z</dc:date>
    <item>
      <title>TWR-K60F120M</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K60F120M/m-p/1167648#M58502</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I could use some help getting an SD card up and running on TWR-K60F120M. I've been having a difficult time locating resources on the proper way to initialize this "module". I have enabled a memory card via the "Run-Time Environment" feature in Keil. The issue I'm now having is that finit("M0:") hangs but fmount("M0:") does not. Could someone please let me know the appropriate way of initializing the file system?&lt;/P&gt;&lt;P&gt;Below is an empty project I'm using to test with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;#include &amp;lt;stdio.h&amp;gt;
#include "rl_fs.h"
#include "cmsis_os2.h"
#include "system_MK60F12.h"

volatile int test = 0;

int main (void)  {
   SystemInit();
   //osKernelInitialize ();
   volatile fsStatus test2 = finit ("M0:");
   //volatile fsStatus test3 = fmount ("M0:");
   //volatile fsStatus test2 = finit ("");
   
   while(1)
   {
      if(test++ &amp;gt; 500)
      {
         test = 0;
      }
      
   }
   
   return 0;
}

void Driver_SPI0(void)
{
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;IMG src="https://community.arm.com/cfs-file/__key/communityserver-discussions-components-files/471/pastedimage1602626682935v2.png" border="0" width="681" height="664" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 19:09:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K60F120M/m-p/1167648#M58502</guid>
      <dc:creator>jgreene</dc:creator>
      <dc:date>2020-10-14T19:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K60F120M</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K60F120M/m-p/1168285#M58517</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I don't have any experience with the Keil SD card interface but if you license it from them you could ask them directly.&lt;/P&gt;&lt;P&gt;Otherwise there is professionally supported, off-the-shelf solution that also works with Keil at &lt;A href="https://www.utasker.com/kinetis/TWR-K60F120M.html" target="_blank"&gt;https://www.utasker.com/kinetis/TWR-K60F120M.html&lt;/A&gt; which allows you to immediately use the SD card by the application, including for USB-MSD or FTP/Web server usage.&lt;/P&gt;&lt;P&gt;It is also available in open source form if no support is required at &lt;A href="https://github.com/uTasker/uTasker-Kinetis" target="_blank"&gt;https://github.com/uTasker/uTasker-Kinetis&lt;/A&gt; (also with Keil project) and allows you to simulate the TWR board, the K60F and SD card in Visual Studio.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark&lt;BR /&gt;&lt;EM&gt;[uTasker project developer for Kinetis and i.MX RT]&lt;/EM&gt;&lt;BR /&gt;&lt;FONT color="#999999"&gt;Contact me by personal message or on the uTasker web site to discuss professional training, solutions to problems or product development requirements&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 14:28:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K60F120M/m-p/1168285#M58517</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2020-10-15T14:28:41Z</dc:date>
    </item>
  </channel>
</rss>

