<?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: Detecting FTFA vs FTFL vs FTFE and available Flash Commands in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Detecting-FTFA-vs-FTFL-vs-FTFE-and-available-Flash-Commands/m-p/403769#M22490</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,&amp;nbsp; in the K1(eg K60 before) series product, it is really not completed to indentify the specific chip name.&lt;/P&gt;&lt;P&gt;But in the K2 series product, for example, K63, K64,K65,K66,K22.etc products, these chip's SIM_SDID can identy the specific chip name, and can distinguish the FTFE and FTFL register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the inconvenience bring you.&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>Fri, 07 Aug 2015 02:26:18 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2015-08-07T02:26:18Z</dc:date>
    <item>
      <title>Detecting FTFA vs FTFL vs FTFE and available Flash Commands</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Detecting-FTFA-vs-FTFL-vs-FTFE-and-available-Flash-Commands/m-p/403765#M22486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm developing a flash programming tool.&amp;nbsp; Currently it targets only a few chips, but I'd like to consider how to make it more general and possibly support all Kinetis parts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I've established a debug connection, is there a recommended way to detect if the flash controller is FTFA vs FTFL vs FTFE (or something else)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a best practice to determine which Flash Commands are supported, and what parameters they require?&amp;nbsp; For example, the FTFA and FTFL controllers in the chips I'm using support the Program Longword (0x06) command, but the FTFE controller does not.&amp;nbsp; It has Program Phrase (0x07).&amp;nbsp; FTFA lacks Program Section (0x0B), but even on the FTFL and FTFE controllers which do support it, the FFCOB4/5 parameter specifies the block size differently, in longwords on some chips, phases on others, and double-phases on still other parts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, I'm reading the ARM CPUID register to detect Cortex-M0+ versus Cortex-M4.&amp;nbsp; The assumption is M0+ always has FTFA, and M4 always has FTFL and FTFE.&amp;nbsp; Maybe?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I use SIM_FCFG1[PFSIZE] to distinguish between FTFL and FTFE?&amp;nbsp; Is there some specific size where FTFE is always used?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does each flash controller always support the same command set, at least for the types of memory the chip has?&amp;nbsp; Or will a FTFE, for example, sometimes have different commands available (and others unavailable)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even when I figure out which flash controller is present, how can I detect differences, like FTFL sometimes using the number of longwords on Program Section (0x0B) for some chips versus the number of phrases on other parts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Aug 2015 14:04:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Detecting-FTFA-vs-FTFL-vs-FTFE-and-available-Flash-Commands/m-p/403765#M22486</guid>
      <dc:creator>paulstoffregen</dc:creator>
      <dc:date>2015-08-02T14:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting FTFA vs FTFL vs FTFE and available Flash Commands</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Detecting-FTFA-vs-FTFL-vs-FTFE-and-available-Flash-Commands/m-p/403766#M22487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USBDM uses the SDIDs to identify the chip and then select the algorithm based on that - not what you are looking for and not particularly reliable since there are quite a few chips with the wrong values.&amp;nbsp; Some of the other information is available such as ROM size and whether there is Pflash and Dflash but AFAIK there isn't a reliable way to determine the flash type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some details that also vary according to the particular chip even though they have the same flash type - Bank swapping for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why not use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://usbdm.sourceforge.net/" title="http://usbdm.sourceforge.net/"&gt;USBDM: USBDM Debugger interface for Freescale RS08,HCS08,HCS12,Coldfire and ARM-Kinetis Devices.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use OpenOCD ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Aug 2015 14:29:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Detecting-FTFA-vs-FTFL-vs-FTFE-and-available-Flash-Commands/m-p/403766#M22487</guid>
      <dc:creator>pgo</dc:creator>
      <dc:date>2015-08-02T14:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting FTFA vs FTFL vs FTFE and available Flash Commands</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Detecting-FTFA-vs-FTFL-vs-FTFE-and-available-Flash-Commands/m-p/403767#M22488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Because kinetis have a variety of types,&amp;nbsp; there has no definite register to accurately identify the FTFE and FTFL, even you use SIM_SDID, it can't completely identify FTFE and FTFL for all the chip .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actually, for the programming tool, it should choose the chip type manually at first, then the programmer can use the according algorithm to program the chip, so, we recommend you create a interface&amp;nbsp; software to choose the chip type at first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please contact me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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>Wed, 05 Aug 2015 04:11:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Detecting-FTFA-vs-FTFL-vs-FTFE-and-available-Flash-Commands/m-p/403767#M22488</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2015-08-05T04:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting FTFA vs FTFL vs FTFE and available Flash Commands</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Detecting-FTFA-vs-FTFL-vs-FTFE-and-available-Flash-Commands/m-p/403768#M22489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My main hope is to automatically detect the hardware.&amp;nbsp; My focus is on novice users (think Arduino used by kids), where requiring technical setup can be a real obstacle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's really unfortunate the flash controllers and Kinetis products were designed with a consistent identification scheme.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 21:10:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Detecting-FTFA-vs-FTFL-vs-FTFE-and-available-Flash-Commands/m-p/403768#M22489</guid>
      <dc:creator>paulstoffregen</dc:creator>
      <dc:date>2015-08-06T21:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting FTFA vs FTFL vs FTFE and available Flash Commands</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Detecting-FTFA-vs-FTFL-vs-FTFE-and-available-Flash-Commands/m-p/403769#M22490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,&amp;nbsp; in the K1(eg K60 before) series product, it is really not completed to indentify the specific chip name.&lt;/P&gt;&lt;P&gt;But in the K2 series product, for example, K63, K64,K65,K66,K22.etc products, these chip's SIM_SDID can identy the specific chip name, and can distinguish the FTFE and FTFL register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the inconvenience bring you.&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>Fri, 07 Aug 2015 02:26:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Detecting-FTFA-vs-FTFL-vs-FTFE-and-available-Flash-Commands/m-p/403769#M22490</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2015-08-07T02:26:18Z</dc:date>
    </item>
  </channel>
</rss>

