<?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>LPC MicrocontrollersのトピックFatFs performance issue</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/FatFs-performance-issue/m-p/519419#M3150</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jonas2 on Wed Jul 02 04:13:17 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use FatFs R0.09 on a Cortex M3 microcontroller (LPC1778) in a multitask environment&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(Crossworks tasking library).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've noticed that some FatFs functions take a lot of time executing, e.g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;f_open:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40 ms&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;f_close&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7 ms&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this what I should expect or can I somehow decrease the processing time these functions "consume". The clock is running @120MHz so there is a lot of instructions needed for these functions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One solution would be to open all files at startup and never close them so I only need to use f_write and f_read but I'm not sure if that is a correct way to use FatFs. Have anyone used FatFs like that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise FatFs works perfectly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jonas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:38:12 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:38:12Z</dc:date>
    <item>
      <title>FatFs performance issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/FatFs-performance-issue/m-p/519419#M3150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jonas2 on Wed Jul 02 04:13:17 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use FatFs R0.09 on a Cortex M3 microcontroller (LPC1778) in a multitask environment&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(Crossworks tasking library).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've noticed that some FatFs functions take a lot of time executing, e.g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;f_open:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40 ms&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;f_close&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7 ms&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this what I should expect or can I somehow decrease the processing time these functions "consume". The clock is running @120MHz so there is a lot of instructions needed for these functions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One solution would be to open all files at startup and never close them so I only need to use f_write and f_read but I'm not sure if that is a correct way to use FatFs. Have anyone used FatFs like that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise FatFs works perfectly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jonas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:38:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/FatFs-performance-issue/m-p/519419#M3150</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:38:12Z</dc:date>
    </item>
  </channel>
</rss>

