<?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 MicrocontrollersのトピックRe: FTM counter stops working after entering debugger once</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258590#M7828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I set the BDM after FTM iniitialization , I dont see the Hardfault.&lt;/P&gt;&lt;P&gt;but now I cant do suspend, this option is disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Niranjan&lt;span class="lia-inline-image-display-wrapper" image-alt="suspend.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/29919i2CD8658B365E3245/image-size/large?v=v2&amp;amp;px=999" role="button" title="suspend.png" alt="suspend.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Nov 2015 13:01:27 GMT</pubDate>
    <dc:creator>niranjanbc</dc:creator>
    <dc:date>2015-11-19T13:01:27Z</dc:date>
    <item>
      <title>FTM counter stops working after entering debugger once</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258576#M7814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I noticed that FTM0 on my MK20DX128 will stop incrementing the counter after I enter the debugger once:&amp;nbsp; a simple break + continue is sufficient to make FTM stop working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set CONF[BDMMODE] to 0b11, it works as it should, but does not suspend operation during debugging.&amp;nbsp; Is this a hardware bug?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code used for testing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13806296578356431" jivemacro_uid="_13806296578356431" modifiedtitle="true"&gt;
&lt;P&gt;#include "MK20DZ10.h"&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;void&lt;/P&gt;
&lt;P&gt;main(void)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SIM_SCGC5 |= SIM_SCGC5_PORTC_MASK;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; PORTC_PCR1 = PORT_PCR_MUX(4);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SIM_SCGC6 |= SIM_SCGC6_FTM0_MASK;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FTM0_MOD = FTM_MOD_MOD(0xffff);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FTM0_CNTIN = FTM_CNTIN_INIT(0);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FTM0_C0SC = FTM_CnSC_MSB_MASK | FTM_CnSC_ELSB_MASK;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FTM0_C0V = FTM_CnV_VAL(0x8000);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FTM0_SC = FTM_SC_CLKS(1);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; for (;;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; /* NOTHING */;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 12:17:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258576#M7814</guid>
      <dc:creator>corecode</dc:creator>
      <dc:date>2013-10-01T12:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: FTM counter stops working after entering debugger once</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258577#M7815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi CoreCode,&lt;/P&gt;&lt;P&gt;Some peripheral modules do not operate when in debug mode and you have to let the code execute full speed and instrument it to determine what is happening.&amp;nbsp; I don't like that feature in a peripheral and wish all designers would implement a "debug" mode.&lt;/P&gt;&lt;P&gt;The Reference Manual does have the following:&lt;/P&gt;&lt;P&gt;36.3.4 Counter (FTMx_CNT)&lt;/P&gt;&lt;P&gt;The CNT register contains the FTM counter value.&lt;/P&gt;&lt;P&gt;Reset clears the CNT register. Writing any value to COUNT updates the counter with its&lt;/P&gt;&lt;P&gt;initial value, CNTIN.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;&lt;STRONG&gt;When BDM is active, the FTM counter is frozen.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt; This is the value that you may read.&lt;/P&gt;&lt;P&gt;Memory map and register definition&lt;/P&gt;&lt;P&gt;K20 Sub-Family Reference Manual, Rev. 1 Mar 2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also attached a test file that plays with the FTM1 (I tested with TWR-K60D100M) and it can be setup as polled or interrupt mode.&amp;nbsp; I tried to comment the code as best as I could so it might help others.&lt;/P&gt;&lt;P&gt;This code can replace the MQX4.0/mqx/examples/timer/main.c&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, 01 Oct 2013 15:13:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258577#M7815</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2013-10-01T15:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: FTM counter stops working after entering debugger once</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258578#M7816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I had a similar “issue” few time ago.&amp;nbsp; As David commented this behavior is caused due to the actual FTM/BDM implementation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;The FTM behavior in BDM mode works as follow:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;FTM module entries in BDM mode once a break point is set in the code &lt;STRONG&gt;or&lt;/STRONG&gt; when the FTM registers are accessed using the Register Window or Memory Window debug tools. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;It is not defined as an issue, it is simply the actual implementation. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Possible workarounds I found:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;- A dummy read of the FTM used (i.e. FTM0_CNT) can be implemented at code to unfreeze the FTM_CNT and output channels when register/memory windows are used.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;- Do not use or close the register window or Memory Window debug tools&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I hope it helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Mario&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 15:48:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258578#M7816</guid>
      <dc:creator>Mario_Guardado</dc:creator>
      <dc:date>2013-10-01T15:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: FTM counter stops working after entering debugger once</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258579#M7817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So it is a hardware bug - the FTM peripheral does not correctly un-stop when the debugger continues execution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 17:35:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258579#M7817</guid>
      <dc:creator>corecode</dc:creator>
      <dc:date>2013-10-01T17:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: FTM counter stops working after entering debugger once</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258580#M7818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;Mario Ernesto Guardado Ruiz wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;It is not defined as an issue, it is simply the actual implementation. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is that not an issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've just spent more than an hour trying to figure out why my FTM was freezing and only counting to 2. It seems I am not the only one. This definitely deserves a mention in the errata, along with a workaround (dummy read of the FTM0_CNT register).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FTM stopping when entering BDM is expected. The FTM not restarting after execution is continued is a bug.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 08:56:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258580#M7818</guid>
      <dc:creator>jrychter</dc:creator>
      <dc:date>2013-12-27T08:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: FTM counter stops working after entering debugger once</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258581#M7819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think we will just have to call it a 'design weakness'.&amp;nbsp; It does seem most unpleasant for BDM 'reads' to impact peripheral modules in the same way as 'other bus masters' given the side-effects often involved in such access, but there it is...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Such a 'read' can clear 'data available' flags, empty FIFOs, or as in this case set 'access freeze' flags designed to insure valid register-access interlock.&amp;nbsp; What that all means is that you generally CANNOT look at peripheral module memory space, either in the 'registers' window OR the 'memory' window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 17:42:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258581#M7819</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2013-12-27T17:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: FTM counter stops working after entering debugger once</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258582#M7820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just noticed that there is an additional side effect: either the "FTM freezing problem" or the workaround with the dummy read of CNT causes FTM_CnV writes in EPWM mode to bypass buffering: values get written to CnV immediately, so you might get two matches per timer period. This isn't something you can expect from reading the documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that debugging code that uses the FTM is effectively impossible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 10:07:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258582#M7820</guid>
      <dc:creator>jrychter</dc:creator>
      <dc:date>2013-12-30T10:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: FTM counter stops working after entering debugger once</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258583#M7821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please add this as an errata or define it clearly in the documentation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 16:51:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258583#M7821</guid>
      <dc:creator>corecode</dc:creator>
      <dc:date>2014-02-13T16:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: FTM counter stops working after entering debugger once</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258584#M7822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;The FTM lacks a “when debugging stop the clock” setting like the PIT timer module has:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So whenever I’m testing code for the FTM I have to let it run full speed and not use breakpoints.&lt;/P&gt;&lt;P&gt;I think this a design limitation for the FTM.&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>Thu, 13 Feb 2014 17:17:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258584#M7822</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2014-02-13T17:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: FTM counter stops working after entering debugger once</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258585#M7823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;There is a setting in the FTM which allow the FTM timer to stop or continue to run in debug mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 19:09:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258585#M7823</guid>
      <dc:creator>michaelsteffenf</dc:creator>
      <dc:date>2014-02-13T19:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: FTM counter stops working after entering debugger once</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258586#M7824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don’t know how I missed that Mike….but thanks.  Will have to try that.&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>Thu, 13 Feb 2014 20:37:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258586#M7824</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2014-02-13T20:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: FTM counter stops working after entering debugger once</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258587#M7825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where can I set the BDM, is there setting in KDS.&lt;/P&gt;&lt;P&gt;or do I need to add that in code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 19:36:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258587#M7825</guid>
      <dc:creator>niranjanbc</dc:creator>
      <dc:date>2015-11-18T19:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: FTM counter stops working after entering debugger once</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258588#M7826</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;FTM_CONF register sets the debug behavior.&lt;/P&gt;&lt;P&gt;Can be set in code or by a script file when connecting to the device with a debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 23:08:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258588#M7826</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-11-18T23:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: FTM counter stops working after entering debugger once</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258589#M7827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am setting BDM in FTM_CONF has below but it is generating Hard fault interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; FTM0_CONF |= 0xC0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; FTM1_CONF |= 0xC0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; FTM2_CONF |= 0xC0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; FTM3_CONF |= 0xC0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried initializing, still generates Hard fault interrupt.&lt;/P&gt;&lt;P&gt;FTM0_CONF = 0xC0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; FTM1_CONF = 0xC0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; FTM2_CONF = 0xC0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; FTM3_CONF = 0xC0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Niranjan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 12:43:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258589#M7827</guid>
      <dc:creator>niranjanbc</dc:creator>
      <dc:date>2015-11-19T12:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: FTM counter stops working after entering debugger once</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258590#M7828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I set the BDM after FTM iniitialization , I dont see the Hardfault.&lt;/P&gt;&lt;P&gt;but now I cant do suspend, this option is disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Niranjan&lt;span class="lia-inline-image-display-wrapper" image-alt="suspend.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/29919i2CD8658B365E3245/image-size/large?v=v2&amp;amp;px=999" role="button" title="suspend.png" alt="suspend.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 13:01:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258590#M7828</guid>
      <dc:creator>niranjanbc</dc:creator>
      <dc:date>2015-11-19T13:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: FTM counter stops working after entering debugger once</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258591#M7829</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;FTMx_CONF can only be written to after the FlexTimer module has bee enabled (in SIM_SCGC3 or SIM_SCGC6, depending on channel(s)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't expect that there is a releationship between this setting and the behavior of the IDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 19:15:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FTM-counter-stops-working-after-entering-debugger-once/m-p/258591#M7829</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-11-19T19:15:41Z</dc:date>
    </item>
  </channel>
</rss>

