<?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>MQX Software Solutions中的主题 MFS Cache Bug</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MFS-Cache-Bug/m-p/639394#M17058</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Provide&amp;nbsp;MFS_sector_cache_invalidate with args&amp;nbsp;first_sector = X and sectors = 1. Insure cache includes sector X.&lt;/P&gt;&lt;P&gt;The cache_record will not be invalidated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the current code out...&lt;/P&gt;&lt;P&gt;last_sector = first_sector + sectors - 1; // so&amp;nbsp;&lt;SPAN&gt;last_sector now equals X&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;....&lt;BR /&gt; if ((cache_record-&amp;gt;SECTOR_NUM &amp;gt;= first_sector) &amp;amp;&amp;amp; (cache_record-&amp;gt;SECTOR_NUM &amp;lt; last_sector))&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;//Do invalidation&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above evaluates to false, but the intent was for it to be true. Changing the second condition from &amp;lt; to &amp;lt;= fixes the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Dec 2016 19:49:19 GMT</pubDate>
    <dc:creator>leifzars</dc:creator>
    <dc:date>2016-12-23T19:49:19Z</dc:date>
    <item>
      <title>MFS Cache Bug</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MFS-Cache-Bug/m-p/639394#M17058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Provide&amp;nbsp;MFS_sector_cache_invalidate with args&amp;nbsp;first_sector = X and sectors = 1. Insure cache includes sector X.&lt;/P&gt;&lt;P&gt;The cache_record will not be invalidated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the current code out...&lt;/P&gt;&lt;P&gt;last_sector = first_sector + sectors - 1; // so&amp;nbsp;&lt;SPAN&gt;last_sector now equals X&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;....&lt;BR /&gt; if ((cache_record-&amp;gt;SECTOR_NUM &amp;gt;= first_sector) &amp;amp;&amp;amp; (cache_record-&amp;gt;SECTOR_NUM &amp;lt; last_sector))&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;//Do invalidation&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above evaluates to false, but the intent was for it to be true. Changing the second condition from &amp;lt; to &amp;lt;= fixes the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 19:49:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MFS-Cache-Bug/m-p/639394#M17058</guid>
      <dc:creator>leifzars</dc:creator>
      <dc:date>2016-12-23T19:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: MFS Cache Bug</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MFS-Cache-Bug/m-p/639395#M17059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leif:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Minimum number of sectors which MFS is able to keep in cache at a time is 2 sectors. There is a macro in mfs_cnfg.h.&lt;/P&gt;&lt;P&gt;#define MFSCFG_SECTOR_CACHE_SIZE 2&lt;/P&gt;&lt;P&gt;You also can refer to the section 2.5 in MQX_MFS_User_Guide.pdf for more details.&lt;/P&gt;&lt;P&gt;I will forward your solution to the develop team.&amp;nbsp; Thanks for your feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2016 02:59:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MFS-Cache-Bug/m-p/639395#M17059</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-12-27T02:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: MFS Cache Bug</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MFS-Cache-Bug/m-p/639396#M17060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniel,&lt;/P&gt;&lt;P&gt;I am not sure that the&amp;nbsp;sector cache size has anything to do with the invalidate function failing to invalidate a cached sector?&amp;nbsp;A cached record is comprised of one sector, no matter the number of records (&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;MFSCFG_SECTOR_CACHE_SIZE ).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;MFSCFG_SECTOR_CACHE_SIZE defines the number of cache records, one sector per record. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;The&amp;nbsp;MFS_sector_cache_invalidate function allows you to request 1 or a region of sectors to be invalidated. In the case of trying&amp;nbsp;to invalidate 1, it fails.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Thanks&amp;nbsp;Leif&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2016 03:33:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MFS-Cache-Bug/m-p/639396#M17060</guid>
      <dc:creator>leifzars</dc:creator>
      <dc:date>2016-12-27T03:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: MFS Cache Bug</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MFS-Cache-Bug/m-p/639397#M17061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniel,&lt;/P&gt;&lt;P&gt;What do you think?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2017 20:49:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MFS-Cache-Bug/m-p/639397#M17061</guid>
      <dc:creator>leifzars</dc:creator>
      <dc:date>2017-01-03T20:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: MFS Cache Bug</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MFS-Cache-Bug/m-p/639398#M17062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leif:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes , you are right.&amp;nbsp;&amp;nbsp; from function MFS_sector_cache_invalidate_record we can see&amp;nbsp; it is one sector per record. This is an issue we need to fix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 09:23:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MFS-Cache-Bug/m-p/639398#M17062</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2017-01-04T09:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: MFS Cache Bug</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MFS-Cache-Bug/m-p/639399#M17063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good deal,&amp;nbsp;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 14:25:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MFS-Cache-Bug/m-p/639399#M17063</guid>
      <dc:creator>leifzars</dc:creator>
      <dc:date>2017-01-04T14:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: MFS Cache Bug</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MFS-Cache-Bug/m-p/639400#M17064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found same issue in&amp;nbsp;MFS_sector_cache_flush.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 18:34:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MFS-Cache-Bug/m-p/639400#M17064</guid>
      <dc:creator>leifzars</dc:creator>
      <dc:date>2017-04-06T18:34:23Z</dc:date>
    </item>
  </channel>
</rss>

