<?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>topic Re: Error in Freescale C90TFS flash writing library in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-in-Freescale-C90TFS-flash-writing-library/m-p/368610#M19043</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frank Van Hooft,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes, you are right.&amp;nbsp; Revision 1.01 doesn't support all the processors, but if you just using the KL25 , that version is OK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; About the bug of revision 1.03, I will pass it to the according department, it may updated in the next version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for your bug sharing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Nov 2014 02:10:45 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2014-11-04T02:10:45Z</dc:date>
    <item>
      <title>Error in Freescale C90TFS flash writing library</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-in-Freescale-C90TFS-flash-writing-library/m-p/368606#M19039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This week I downloaded the latest version of the C90TFS flash writing / eeprom emulation library from the Freescale website. Then built and tried to run a sample program on the KL25Z128 (Freedom board) processor. It didn't work (although the documentation says it's been tested).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem lies with a bug in file SSD_FTFx_Internal.h.&amp;nbsp; The file contains this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;/* Select file .h for each derivatives */&lt;/P&gt;
&lt;P&gt;#if (FTFx_KX_256K_256K_4K_2K_2K == FLASH_DERIVATIVE)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "FTFx_KX_256K_256K_4K_2K_2K.h"&lt;/P&gt;
&lt;P&gt;#elif (FTFx_KX_128K_128K_4K_2K_2K == FLASH_DERIVATIVE)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "FTFx_KX_128K_128K_4K_2K_2K.h"&lt;/P&gt;
&lt;P&gt;#elif ((FTFx_KX_512K_0K_4K_2K_0K == FLASH_DERIVATIVE) || (FTFx_KX_256K_0K_4K_2K_0K == FLASH_DERIVATIVE))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "FTFx_KX_(512_256)K_0K_4K_2K_0K.h"&lt;/P&gt;
&lt;P&gt;#elif (FTFx_CX_256K_32K_2K_1K_1K == FLASH_DERIVATIVE)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "FTFx_CX_256K_32K_2K_1K_1K.h"&lt;/P&gt;
&lt;P&gt;#elif ((FTFx_CX_128K_32K_2K_1K_1K == FLASH_DERIVATIVE) || (FTFx_CX_64K_32K_2K_1K_1K == FLASH_DERIVATIVE)\&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; || (FTFx_CX_32K_32K_2K_1K_1K == FLASH_DERIVATIVE))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "FTFx_CX_(128_64_32)K_32K_2K_1K_1K.h"&lt;/P&gt;
&lt;P&gt;#elif (FTFx_KX_512K_512K_16K_4K_4K == FLASH_DERIVATIVE)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "FTFx_KX_512K_512K_16K_4K_4K.h"&lt;/P&gt;
&lt;P&gt;#elif ((FTFx_KX_1024K_0K_16K_4K_0K == FLASH_DERIVATIVE) || (FTFx_KX_1024K_0K_4K_4K_0K == FLASH_DERIVATIVE)\&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ||&lt;SPAN style="color: #ff6600;"&gt; (FTFx_KX_2048K_0K_4K_4K_0K))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "FTFx_KX_(2048_1024)K_0K_(16_4)K_4K_0K.h"&lt;/P&gt;
&lt;P&gt;#elif ((FTFx_KX_128K_0K_2K_1K_0K == FLASH_DERIVATIVE)||(FTFx_KX_64K_0K_2K_1K_0K == FLASH_DERIVATIVE)\&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ||(FTFx_KX_32K_0K_2K_1K_0K == FLASH_DERIVATIVE))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "FTFx_KX_(128_64_32)K_0K_2K_1K_0K.h"&lt;/P&gt;
&lt;P&gt;#elif ((FT&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;etc&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've highlighted the error above in red. That line should say:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ||&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; color: #ff6600;"&gt; (FTFx_KX_2048K_0K_4K_4K_0K &lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif;"&gt; == FLASH_DERIVATIVE&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Due to this error, it always includes the header file &lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif;"&gt;FTFx_KX_(2048_1024)K_0K_(16_4)K_4K_0K.h regardless of which FLASH_DERIVATIVE you specify in your user_cfg.h file. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it becomes luck of the draw - maybe the .h file you get will work for you, and maybe it won't. That .h file it's pulling in contains not only information about the flash partitioning for the processor, but also things like the processor type, CPU core, endianness, etc. So it's pretty critical to a successful build &amp;amp; execution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps others who might be having troubles.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 05:26:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-in-Freescale-C90TFS-flash-writing-library/m-p/368606#M19039</guid>
      <dc:creator>frankvanhooft</dc:creator>
      <dc:date>2014-10-31T05:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Freescale C90TFS flash writing library</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-in-Freescale-C90TFS-flash-writing-library/m-p/368607#M19040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've managed to get flash erasing and programming working, using rev 1.03 of the flash driver library. Between this bug (described above) and a couple of other things it wasn't exactly a 5 minute job. To help others I've documented the things I tripped over here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://blog.frankvh.com/2014/11/02/using-the-freescale-tfs-flash-driver-software-bugs-notes/"&gt;http://blog.frankvh.com/2014/11/02/using-the-freescale-tfs-flash-driver-software-bugs-notes/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this will help others get up and running much more quickly than I did.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 00:31:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-in-Freescale-C90TFS-flash-writing-library/m-p/368607#M19040</guid>
      <dc:creator>frankvanhooft</dc:creator>
      <dc:date>2014-11-03T00:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Freescale C90TFS flash writing library</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-in-Freescale-C90TFS-flash-writing-library/m-p/368608#M19041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frank Van Hooft,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you very much for your C90TFS bug sharing!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I check it, the new version really have this problem, the new added line missed the "&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; color: #ff6600;"&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif;"&gt;== FLASH_DERIVATIVE"&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Lucida Grande', Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #003300;"&gt; Actaully, if you are using FRDM-KL25Z, you can use the last version of C90TFS, that have no problem, I already run that KL25 code, it works fine, and don't have this bug.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14150024696272657" jivemacro_uid="_14150024696272657" modifiedtitle="true"&gt;
&lt;P&gt;/* Select file .h for each derivatives */&lt;/P&gt;
&lt;P&gt;#if (FTFx_KX_256K_256K_4K_2K_2K == FLASH_DERIVATIVE)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "FTFx_KX_256K_256K_4K_2K_2K.h"&lt;/P&gt;
&lt;P&gt;#elif (FTFx_KX_128K_128K_4K_2K_2K == FLASH_DERIVATIVE)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "FTFx_KX_128K_128K_4K_2K_2K.h"&lt;/P&gt;
&lt;P&gt;#elif ((FTFx_KX_512K_0K_4K_2K_0K == FLASH_DERIVATIVE) || (FTFx_KX_256K_0K_4K_2K_0K == FLASH_DERIVATIVE))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "FTFx_KX_(512_256)K_0K_4K_2K_0K.h"&lt;/P&gt;
&lt;P&gt;#elif (FTFx_CX_256K_32K_2K_1K_1K == FLASH_DERIVATIVE)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "FTFx_CX_256K_32K_2K_1K_1K.h"&lt;/P&gt;
&lt;P&gt;#elif ((FTFx_CX_128K_32K_2K_1K_1K == FLASH_DERIVATIVE) || (FTFx_CX_64K_32K_2K_1K_1K == FLASH_DERIVATIVE)\&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; || (FTFx_CX_32K_32K_2K_1K_1K == FLASH_DERIVATIVE))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "FTFx_CX_(128_64_32)K_32K_2K_1K_1K.h"&lt;/P&gt;
&lt;P&gt;#elif (FTFx_KX_512K_512K_16K_4K_4K == FLASH_DERIVATIVE)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "FTFx_KX_512K_512K_16K_4K_4K.h"&lt;/P&gt;
&lt;P&gt;#elif &lt;SPAN style="color: #ff0000;"&gt;((FTFx_KX_1024K_0K_16K_4K_0K == FLASH_DERIVATIVE) || (FTFx_KX_1024K_0K_4K_4K_0K == FLASH_DERIVATIVE))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "FTFx_KX_1024K_0K_(16_4)K_4K_0K.h"&lt;/P&gt;
&lt;P&gt;#elif ((FTFx_KX_128K_0K_2K_1K_0K == FLASH_DERIVATIVE)||(FTFx_KX_64K_0K_2K_1K_0K == FLASH_DERIVATIVE)\&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ||(FTFx_KX_32K_0K_2K_1K_0K == FLASH_DERIVATIVE))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include "FTFx_KX_(128_64_32)K_0K_2K_1K_0K.h"&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #003300; font-family: 'Lucida Grande', Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I attached the last version of C90TFS, If you need, you can use it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Lucida Grande', Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Lucida Grande',Arial,Helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Lucida Grande',Arial,Helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Wish it helps you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Jingjing&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 08:13:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-in-Freescale-C90TFS-flash-writing-library/m-p/368608#M19041</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2014-11-03T08:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Freescale C90TFS flash writing library</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-in-Freescale-C90TFS-flash-writing-library/m-p/368609#M19042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the posting.&amp;nbsp; The file you attached is pretty old. The installer says it's revision 1.01, the files are dated Dec 2013, whereas the latest version on the website is 1.03, dated Aug - Oct 2014.&amp;nbsp; The file you attached doesn't have the bug, this is true, probably because it doesn't support all the processors any longer. For example the file configuration file &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FTFx_KX_(2048_1024)K_0K_(16_4)K_4K_0K.h&amp;nbsp; is not part of the older 1.01 revision.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 18:12:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-in-Freescale-C90TFS-flash-writing-library/m-p/368609#M19042</guid>
      <dc:creator>frankvanhooft</dc:creator>
      <dc:date>2014-11-03T18:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Freescale C90TFS flash writing library</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-in-Freescale-C90TFS-flash-writing-library/m-p/368610#M19043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frank Van Hooft,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes, you are right.&amp;nbsp; Revision 1.01 doesn't support all the processors, but if you just using the KL25 , that version is OK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; About the bug of revision 1.03, I will pass it to the according department, it may updated in the next version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for your bug sharing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 02:10:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-in-Freescale-C90TFS-flash-writing-library/m-p/368610#M19043</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2014-11-04T02:10:45Z</dc:date>
    </item>
  </channel>
</rss>

