<?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>MCUXpresso IDEのトピックRe: MCUXpressco - FTM0 for delay function doesn't work</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpressco-FTM0-for-delay-function-doesn-t-work/m-p/947202#M4471</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;For you could run SDK demo without any problem, there shows the hardware working.&lt;/P&gt;&lt;P&gt;Then it need to check the software code.&lt;/P&gt;&lt;P&gt;I think that could be registers setting difference cause the issue.&lt;/P&gt;&lt;P&gt;I abstracted the working projects FTM0 registers and core NVIC registers values for your reference:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/85868iEBBD755054F55CF8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/85869iF031DF7C250C893D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check if your C++ project also has the similar values of those registers.&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Jun 2019 02:59:02 GMT</pubDate>
    <dc:creator>Hui_Ma</dc:creator>
    <dc:date>2019-06-11T02:59:02Z</dc:date>
    <item>
      <title>MCUXpressco - FTM0 for delay function doesn't work</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpressco-FTM0-for-delay-function-doesn-t-work/m-p/947194#M4463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I am doing a project with MCUXpressco IDE and MK22FN512VLH12 MCU. and the FTM0 for delay function doesn't work.&lt;/P&gt;&lt;P&gt;please see attached Clock setting, FTM0 setting and Code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did I missing something?&lt;/P&gt;&lt;P&gt;thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2019 15:04:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpressco-FTM0-for-delay-function-doesn-t-work/m-p/947194#M4463</guid>
      <dc:creator>tonytao</dc:creator>
      <dc:date>2019-06-04T15:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpressco - FTM0 for delay function doesn't work</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpressco-FTM0-for-delay-function-doesn-t-work/m-p/947195#M4464</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;Please check if FTM0 counter start working. There missing FTM0 initialization code and start timer called：&lt;/P&gt;&lt;P&gt;&amp;nbsp;FTM_StartTimer(BOARD_FTM_BASEADDR, kFTM_SystemClock);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2019 05:23:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpressco-FTM0-for-delay-function-doesn-t-work/m-p/947195#M4464</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2019-06-05T05:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpressco - FTM0 for delay function doesn't work</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpressco-FTM0-for-delay-function-doesn-t-work/m-p/947196#M4465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your responding.&lt;/P&gt;&lt;P&gt;Unfurturnly, the FTM0 still not working. Detail please see attached screen captures.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tony Tao&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Engineering Technician&lt;/P&gt;&lt;P&gt;AXYZ Automation Inc.&lt;/P&gt;&lt;P&gt;(905) 634-4940 Ext. 262&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2019 13:46:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpressco-FTM0-for-delay-function-doesn-t-work/m-p/947196#M4465</guid>
      <dc:creator>tonytao</dc:creator>
      <dc:date>2019-06-05T13:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpressco - FTM0 for delay function doesn't work</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpressco-FTM0-for-delay-function-doesn-t-work/m-p/947197#M4466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached pictures, there are cames from two project, one is FTM working and another one not.&lt;/P&gt;&lt;P&gt;All hardware condition are same. Clock seting are same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this information may help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tony Tao&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Engineering Technician&lt;/P&gt;&lt;P&gt;AXYZ Automation Inc.&lt;/P&gt;&lt;P&gt;(905) 634-4940 Ext. 262&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2019 17:53:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpressco-FTM0-for-delay-function-doesn-t-work/m-p/947197#M4466</guid>
      <dc:creator>tonytao</dc:creator>
      <dc:date>2019-06-05T17:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpressco - FTM0 for delay function doesn't work</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpressco-FTM0-for-delay-function-doesn-t-work/m-p/947198#M4467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the FTM0_SC register value for working project vs. non-working project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2019 05:13:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpressco-FTM0-for-delay-function-doesn-t-work/m-p/947198#M4467</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2019-06-06T05:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpressco - FTM0 for delay function doesn't work</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpressco-FTM0-for-delay-function-doesn-t-work/m-p/947199#M4468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached pictures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tony Tao&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Engineering Technician&lt;/P&gt;&lt;P&gt;AXYZ Automation Inc.&lt;/P&gt;&lt;P&gt;(905) 634-4940 Ext. 262&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2019 16:03:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpressco-FTM0-for-delay-function-doesn-t-work/m-p/947199#M4468</guid>
      <dc:creator>tonytao</dc:creator>
      <dc:date>2019-06-06T16:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpressco - FTM0 for delay function doesn't work</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpressco-FTM0-for-delay-function-doesn-t-work/m-p/947200#M4469</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;From FTM0 register, the counter starts working and TOF(timer overflow flag) is set. Then, the interrupt should be entered.&lt;/P&gt;&lt;P&gt;In general, I checked the SDK demo FTM0 interrupt service routine default named is FTM0_IRQHandler.&lt;/P&gt;&lt;P&gt;So, please check the project and make sure using below two interrupt definitions:&lt;/P&gt;&lt;P&gt;FTM0_IRQn&amp;nbsp; &amp;amp;&amp;nbsp; FTM0_IRQHandler&lt;/P&gt;&lt;P&gt;Otherwise, the FTM0 interrupt service routine will never entered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is an example for your reference:&lt;/P&gt;&lt;P&gt;/* Interrupt number and interrupt handler for the FTM instance used */&lt;BR /&gt;#define BOARD_FTM_IRQ_NUM FTM0_IRQn&lt;BR /&gt;#define BOARD_FTM_HANDLER FTM0_IRQHandler&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2019 06:16:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpressco-FTM0-for-delay-function-doesn-t-work/m-p/947200#M4469</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2019-06-10T06:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpressco - FTM0 for delay function doesn't work</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpressco-FTM0-for-delay-function-doesn-t-work/m-p/947201#M4470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your effort, that is the tough part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the attached pictures. All those pictures come from a non-working project.&lt;/P&gt;&lt;P&gt;FTM0 Registers.JPG:                       FTM0 is working.&lt;/P&gt;&lt;P&gt;Main.jpg:                                              Interrupt handler is not working.&lt;/P&gt;&lt;P&gt;Peripherals Head file.jpg:             it defined FTM0_IRQn &amp;amp; FTM0_IRQHANDLER already. But I used FTM0_IRQHandler directly.&lt;/P&gt;&lt;P&gt;Interrupt print.jpg:                          Add the printf in the interrupt handler, to make sure the code does not get in the handler at all.&lt;/P&gt;&lt;P&gt;#define added.jpg:                         even I added the define in the code, it still not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I imported the SDK example code, and it is working!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But any new project I created had a problem with FTM0. I do want to create a CPP project, but the example code is a C project……&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tony Tao&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Engineering Technician&lt;/P&gt;&lt;P&gt;AXYZ Automation Inc.&lt;/P&gt;&lt;P&gt;(905) 634-4940 Ext. 262&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2019 14:38:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpressco-FTM0-for-delay-function-doesn-t-work/m-p/947201#M4470</guid>
      <dc:creator>tonytao</dc:creator>
      <dc:date>2019-06-10T14:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpressco - FTM0 for delay function doesn't work</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpressco-FTM0-for-delay-function-doesn-t-work/m-p/947202#M4471</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;For you could run SDK demo without any problem, there shows the hardware working.&lt;/P&gt;&lt;P&gt;Then it need to check the software code.&lt;/P&gt;&lt;P&gt;I think that could be registers setting difference cause the issue.&lt;/P&gt;&lt;P&gt;I abstracted the working projects FTM0 registers and core NVIC registers values for your reference:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/85868iEBBD755054F55CF8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/85869iF031DF7C250C893D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check if your C++ project also has the similar values of those registers.&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2019 02:59:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpressco-FTM0-for-delay-function-doesn-t-work/m-p/947202#M4471</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2019-06-11T02:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpressco - FTM0 for delay function doesn't work</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpressco-FTM0-for-delay-function-doesn-t-work/m-p/947203#M4472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So far, at least base on my knowledge, the SDK for MK22F family MCU doesn't support CPP well. I can use SDK examples to learn to make my C project, but I can't make my CPP project in a similar way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2019 17:39:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpressco-FTM0-for-delay-function-doesn-t-work/m-p/947203#M4472</guid>
      <dc:creator>tonytao</dc:creator>
      <dc:date>2019-11-29T17:39:44Z</dc:date>
    </item>
  </channel>
</rss>

