<?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 Software Development KitのトピックMFS in Flash Memory</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MFS-in-Flash-Memory/m-p/440453#M2783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using a TWR-K64F120M board and would like to use MFS in Flash Memory.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the KSDK support creating a file system in a section of flash memory?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If so, are there some examples of how this is achieved?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Roger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jun 2015 08:12:48 GMT</pubDate>
    <dc:creator>ramstell</dc:creator>
    <dc:date>2015-06-09T08:12:48Z</dc:date>
    <item>
      <title>MFS in Flash Memory</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MFS-in-Flash-Memory/m-p/440453#M2783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using a TWR-K64F120M board and would like to use MFS in Flash Memory.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the KSDK support creating a file system in a section of flash memory?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If so, are there some examples of how this is achieved?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Roger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 08:12:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MFS-in-Flash-Memory/m-p/440453#M2783</guid>
      <dc:creator>ramstell</dc:creator>
      <dc:date>2015-06-09T08:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: MFS in Flash Memory</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MFS-in-Flash-Memory/m-p/440454#M2784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Roger,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can try example for HTTP server application. The example demonstrate different features of the &lt;/P&gt;&lt;P&gt;RTCS HTTP server. The example allows to start one or more HTTP servers on IPv4 and/or IPv6 addresses, demonstrating use of both static and dynamic web pages with CGI and server WebSocket plugin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example is stored in Flash Memory and is read only.&lt;/P&gt;&lt;P&gt;It is located at c:\Freescale\KSDK_1.2.0\middleware\tcpip\rtcs\examples\httpsrv\ &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you,&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Iva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 13:39:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MFS-in-Flash-Memory/m-p/440454#M2784</guid>
      <dc:creator>ivadorazinova</dc:creator>
      <dc:date>2015-06-09T13:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: MFS in Flash Memory</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MFS-in-Flash-Memory/m-p/440455#M2785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually using a HTTP server in flash is not that similar to using a Memory File System in flash. In the HTTP Server it is not necessary to write to the flash and you can use CGI for file transfer but it does not implement file system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that using a files system in flash will hardly impact the flash life cycle and endurance because you will need to write constantly to flash. Besides this writing into the flash is not that easy because you may need flash routines any time you save a file in the flash. As this is not common we do not provide an example. But what we have in KSDK are RAM, USB and SD examples&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can find SD and USB examples with the stand alone FAT File system:&lt;/P&gt;&lt;P&gt;C:\Freescale\KSDK_1.2.0\middleware\filesystem\fatfs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also find RAM, SD and USB examples with the MQX RTOS MFS:&lt;/P&gt;&lt;P&gt;C:\Freescale\KSDK_1.2.0\middleware\filesystem\mfs\examples&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you really need to have a Flash file system you may use as base the RAM file system, switch the address to a flash address and call flash routines to write to flash. You can find flash routines in any of our bootloader application notes for the same target you are using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 16:31:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MFS-in-Flash-Memory/m-p/440455#M2785</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2015-06-09T16:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: MFS in Flash Memory</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MFS-in-Flash-Memory/m-p/440456#M2786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do really need a flash based file system. This is primary used for storing configuration files etc. These would normally be transferred using ftp. Most the time its for reading rather than writing. In more higher end products it may be acceptable to use USB or SD based storage, but not really in lower end ones.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are hoping to replace a range of products, including developing new ones, with Kinetics based processors. Our current implementation has a flash based embedded file system for this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the MQX 4.2 classic it does appear to support a flash based file system. If this is the case, do you know if it supports the &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;TWR-K64F120M board?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;As a flash based file system does seem to be supported already to some degree, is this functionality going to find its way into the KSDK in the near future?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Roger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 17:15:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MFS-in-Flash-Memory/m-p/440456#M2786</guid>
      <dc:creator>ramstell</dc:creator>
      <dc:date>2015-06-09T17:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: MFS in Flash Memory</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MFS-in-Flash-Memory/m-p/440457#M2787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roger,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you exactly mean with MFS in flash memory? I thought you mean internal MCU Flash memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you said in in MQX4.2 there is a Compact Flash card MFS example (cfcard).&lt;/P&gt;&lt;P&gt;C:\Freescale\Freescale_MQX_4_2\mfs\examples&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are interested in this example but in MQX for KSDK you can find a porting guide here:&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/soft_dev_tools/doc/support_info/MQXKSDKPUG.pdf?fsrch=1" title="http://cache.freescale.com/files/soft_dev_tools/doc/support_info/MQXKSDKPUG.pdf?fsrch=1"&gt;http://www.freescale.com/files/soft_dev_tools/doc/support_info/MQXKSDKPUG.pdf?fsrch=1&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next KSDK release is targeted for September. Unfortuanatelly this example is not going to be migrated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 18:25:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MFS-in-Flash-Memory/m-p/440457#M2787</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2015-06-09T18:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: MFS in Flash Memory</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MFS-in-Flash-Memory/m-p/440458#M2788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean internal flash memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example and documentation for MQX 4.2 is here:&lt;/P&gt;&lt;P&gt;C:\Freescale\Freescale_MQX_4_2\ffs\examples\mfs_nandflash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This example provide MFS file system on internal NAND Flash memory - exactly what I require.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is does this support the &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;TWR-K64F120M board and will this functionality be migrated into the KSDK?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Roger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 18:35:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MFS-in-Flash-Memory/m-p/440458#M2788</guid>
      <dc:creator>ramstell</dc:creator>
      <dc:date>2015-06-09T18:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: MFS in Flash Memory</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MFS-in-Flash-Memory/m-p/440459#M2789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roger,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal flash in Kinetis devices is not NAND flash, actually the example you point is not for internal flash. It is for external NAND flash and it is targeted for the Kinetis devices that feature NAND flash controller module such as K70.&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=K70_120" title="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=K70_120"&gt; K70_120 |Kinetis K70 120/150 MHz MCUs|Freescale&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K64 does not provide NAND flash controller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the options I mentioned in my previous replies are available for TWR-K64 but they are not exactly what you need. You may need to reuse some code and adapt the example for your needs. &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;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 19:33:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MFS-in-Flash-Memory/m-p/440459#M2789</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2015-06-09T19:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: MFS in Flash Memory</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MFS-in-Flash-Memory/m-p/440460#M2790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roger,&lt;/P&gt;&lt;P&gt;I agree with others that MFS is not right approach and using NAND flash controller with FFS way over kill.&lt;/P&gt;&lt;P&gt;What is the architecture of your current embedded flash based file system? How do you implement it?&lt;/P&gt;&lt;P&gt;If the number of configuration files is small and not changing often (i.e. on-chip Flash has limited erase/program cycles) say less than 10K cycles, just using your flash based file system should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A more formal filesystem for this might be using TFS with MQX (or specifically the OSA_Abstraction layer):&lt;/P&gt;&lt;P&gt;C:\Freescale\KSDK_1.2.0\rtos\mqx\mqx\source\nio\drivers\nio_tfs\src&lt;/P&gt;&lt;P&gt;It does require OSA function calls such as OSA _MemAlloc, OSA_MemFree, OSA_SemaDestroy, etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A MQX httpsrv example of having web pages in on-chip flash using a TFS (Trivial File System) is at:&lt;/P&gt;&lt;P&gt;C:\Freescale\KSDK_1.2.0\middleware\tcpip\rtcs\examples\httpsrv &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the _readme.txt in the folder.&lt;/P&gt;&lt;P&gt;Files can be place into the ./filesystem/web folder and when the mktfs.bat is run a new nio_tfs_data.c is generated.&amp;nbsp; Compile it into your application and you are good to go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 22:07:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MFS-in-Flash-Memory/m-p/440460#M2790</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-06-09T22:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: MFS in Flash Memory</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MFS-in-Flash-Memory/m-p/440461#M2791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our current implementation uses NOR Flash together with an embedded file system which implements the flash wear levelling in software. This is very convenient for holding configuration files etc. These files are downloaded by the customer when configuring the product. Once configured very few writes to the flash occur during normal running. Program code and flash file system are contained in the same flash, but the program code is copied to RAM at start-up for execution. The embedded file system is not our own and cannot be transferred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can set-up a TFS with most of the files we need that will not change, but will have to design some way of saving user downloaded ones. For products with larger data requirements I guess we could consider using the SDHC interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Roger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 09:44:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MFS-in-Flash-Memory/m-p/440461#M2791</guid>
      <dc:creator>ramstell</dc:creator>
      <dc:date>2015-06-10T09:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: MFS in Flash Memory</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MFS-in-Flash-Memory/m-p/440462#M2792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;in the KSDK 1.2.0 httpsrv example (frdm-K64-build) mktfs creates tfs_data.c. &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;But how do I create nio_tfs_data.c.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;You write:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;EM&gt;Look at the _readme.txt in the folder.&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;EM&gt;Files can be place into the ./filesystem/web folder and when the mktfs.bat is run a new nio_tfs_data.c is generated.&amp;nbsp; Compile it into your application and you are good to go.&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Any idea, what I'm doing wrong?&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Best&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 14:22:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/MFS-in-Flash-Memory/m-p/440462#M2792</guid>
      <dc:creator>ThomNet</dc:creator>
      <dc:date>2015-08-13T14:22:06Z</dc:date>
    </item>
  </channel>
</rss>

