<?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 Config ToolsのトピックRe: LPC55s69 - CTIMER interrupt initialization in PWM mode BUG</title>
    <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPC55s69-CTIMER-interrupt-initialization-in-PWM-mode-BUG/m-p/1377642#M1273</link>
    <description>&lt;P&gt;Hello Marek,&lt;/P&gt;&lt;P&gt;Thank you for the answer. At the moment I don't need a "hot fix" because I'm temporarily adding the EnableIRQ line (CTIMERx_TIMER_IRQN), but I will be grateful for fixing this in the next update.&amp;nbsp;Also, keep in mind that the problem is with code generation for other chips as well (I checked LPC804).&lt;/P&gt;&lt;P&gt;I am also waiting for fix an issue with switch CTIMER to Capture mode, that I reported to Alice in this subject.&lt;/P&gt;&lt;P&gt;BTW. Can I ask you to report a small problem (typo) in the generated BULE name instead of BLUE (screenshot in attachment) in BOARD_InitLEDsPins?&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Nov 2021 12:51:34 GMT</pubDate>
    <dc:creator>danielkrol</dc:creator>
    <dc:date>2021-11-26T12:51:34Z</dc:date>
    <item>
      <title>LPC55s69 - CTIMER interrupt initialization in PWM mode BUG</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPC55s69-CTIMER-interrupt-initialization-in-PWM-mode-BUG/m-p/1353100#M1249</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;There is some bug in Config Tools for LPC55s69. Check box "&lt;EM&gt;Enable PWM period interrupr request&lt;/EM&gt;" has no effect on the generated code. The last argument of the &lt;EM&gt;CTIMER_SetupPwmPeriod&lt;/EM&gt; function is always set to false.&lt;/P&gt;&lt;P&gt;MCUXpressoIDE_11.4.1, MacOS.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Sat, 09 Oct 2021 14:22:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPC55s69-CTIMER-interrupt-initialization-in-PWM-mode-BUG/m-p/1353100#M1249</guid>
      <dc:creator>danielkrol</dc:creator>
      <dc:date>2021-10-09T14:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55s69 - CTIMER interrupt initialization in PWM mode BUG</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPC55s69-CTIMER-interrupt-initialization-in-PWM-mode-BUG/m-p/1353323#M1250</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Which version of IDE and SDK do you used?&lt;/P&gt;
&lt;P&gt;I use MCUXpresso IDEv11.4 and SDK 2.10 test, generate code as below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;static void CTIMER3_init(void) {&lt;BR /&gt;/* CTIMER3 peripheral initialization */&lt;BR /&gt;CTIMER_Init(CTIMER3_PERIPHERAL, &amp;amp;CTIMER3_config);&lt;BR /&gt;/* Enable interrupt of PWM channel 3 that determinates the PWM period */&lt;BR /&gt;CTIMER_EnableInterrupts(CTIMER3_PERIPHERAL, kCTIMER_Match3InterruptEnable);&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 07:39:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPC55s69-CTIMER-interrupt-initialization-in-PWM-mode-BUG/m-p/1353323#M1250</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2021-10-11T07:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55s69 - CTIMER interrupt initialization in PWM mode BUG</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPC55s69-CTIMER-interrupt-initialization-in-PWM-mode-BUG/m-p/1356729#M1251</link>
      <description>&lt;P&gt;Hello Alice,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MCUXpressoIDE 11.4.1 - MacOS version&lt;/P&gt;&lt;P&gt;SDK 2.10.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am enclosing a simple example. In the generated file peripherals.c (line 128), the CTIMER_SetupPwmPeriod function has the last argument set to false.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another BUG: For Timer in Capture mode it is not possible to change the "mode" field (screen in the attachment) in the structure:&lt;/P&gt;&lt;P&gt;const ctimer_config_t CTIMER2_config = {&lt;/P&gt;&lt;P&gt;.mode = kCTIMER_TimerMode,&lt;/P&gt;&lt;P&gt;.input = kCTIMER_Capture_0,&lt;/P&gt;&lt;P&gt;.prescale = 0 };&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Sun, 17 Oct 2021 08:10:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPC55s69-CTIMER-interrupt-initialization-in-PWM-mode-BUG/m-p/1356729#M1251</guid>
      <dc:creator>danielkrol</dc:creator>
      <dc:date>2021-10-17T08:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55s69 - CTIMER interrupt initialization in PWM mode BUG</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPC55s69-CTIMER-interrupt-initialization-in-PWM-mode-BUG/m-p/1357507#M1252</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/125472" target="_self" aria-label="View Profile of danielkrol"&gt;&lt;SPAN class=""&gt;danielkrol&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for your sharing, I have checked on my side, the same issue about "mode", I will report this issue&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to development team. Sorry for the inconvenient to you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 03:09:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPC55s69-CTIMER-interrupt-initialization-in-PWM-mode-BUG/m-p/1357507#M1252</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2021-10-19T03:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55s69 - CTIMER interrupt initialization in PWM mode BUG</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPC55s69-CTIMER-interrupt-initialization-in-PWM-mode-BUG/m-p/1375672#M1259</link>
      <description>&lt;P&gt;Hello &lt;SPAN&gt;Alice&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem concerns "PWM period interrupt" not "duty PWM interrupt" as in your code!&lt;/P&gt;&lt;P&gt;Screen in the attachment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 13:30:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPC55s69-CTIMER-interrupt-initialization-in-PWM-mode-BUG/m-p/1375672#M1259</guid>
      <dc:creator>danielkrol</dc:creator>
      <dc:date>2021-11-23T13:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55s69 - CTIMER interrupt initialization in PWM mode BUG</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPC55s69-CTIMER-interrupt-initialization-in-PWM-mode-BUG/m-p/1375722#M1260</link>
      <description>&lt;P&gt;Hello Daniel,&lt;/P&gt;
&lt;P&gt;I have analyzed the attached PWM test application but the generated source code is correct. You must understand that there are two CTIMER channels used for PWM signal generation. One specify the period and the second specify the duty. See the following screenshot that explains which interrupt is enabled and how it is initialized in the source code:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marek_neuzil_0-1637679904076.png" style="width: 1124px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162978iAFEEAE2EC21E76E5/image-dimensions/1124x698?v=v2" width="1124" height="698" role="button" title="marek_neuzil_0-1637679904076.png" alt="marek_neuzil_0-1637679904076.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;marek_neuzil_0-1637679904076.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can see that the channel #3 is used for the PWM period. The interrupt of this channel #3 is enabled by the CTIMER_EnableInterrupts() function call after CTIMER_SetupPWMPeriod() function call.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Marek Neuzil&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 15:09:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPC55s69-CTIMER-interrupt-initialization-in-PWM-mode-BUG/m-p/1375722#M1260</guid>
      <dc:creator>marek_neuzil</dc:creator>
      <dc:date>2021-11-23T15:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55s69 - CTIMER interrupt initialization in PWM mode BUG</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPC55s69-CTIMER-interrupt-initialization-in-PWM-mode-BUG/m-p/1375735#M1261</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If the last argument of the CTIMER_SetupPwmPeriod function is set to false, interrupts in NVIC will not activate (screenshot in attachment).&amp;nbsp;The code which you showed won't work!&lt;/P&gt;&lt;P&gt;If I add a line (eg in main): "EnableIRQ (CTIMER2_TIMER_IRQN);"&lt;BR /&gt;everything works fine!&lt;/P&gt;&lt;P&gt;So, tell me how can I enable (correctly) "PWM period interrupt" from Config Tool?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;It looks like the CTIMER_EnableInterrupts() function will not call the EnableIRQ() function for NVIC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 18:26:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPC55s69-CTIMER-interrupt-initialization-in-PWM-mode-BUG/m-p/1375735#M1261</guid>
      <dc:creator>danielkrol</dc:creator>
      <dc:date>2021-11-23T18:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55s69 - CTIMER interrupt initialization in PWM mode BUG</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPC55s69-CTIMER-interrupt-initialization-in-PWM-mode-BUG/m-p/1376002#M1262</link>
      <description>&lt;P&gt;Hi Daniel,&lt;/P&gt;
&lt;P&gt;You are right. When the PWM period interrupt request is enabled only the interrupt vector is not enabled in the NVIC. The CTIMER driver API is not consistent in this case. It can be fixed in the CTIMER component (I will create an issue and I will fix it).&lt;/P&gt;
&lt;P&gt;You can either enable the PWM duty interrupt request and in the callback function you must check the status flags to distinguish the channel (the value of the flags parameters contains the value of the CTIMER IR register) or you can enable the interrupt vector in the NVIC by using the NVIC component that is already in your project. See the following screenshots:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marek_neuzil_0-1637736580967.png" style="width: 850px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/163040i4F285833A1C65F3D/image-dimensions/850x360?v=v2" width="850" height="360" role="button" title="marek_neuzil_0-1637736580967.png" alt="marek_neuzil_0-1637736580967.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;marek_neuzil_0-1637736580967.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marek_neuzil_1-1637736625424.png" style="width: 854px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/163041iD934A47739DEAAF6/image-dimensions/854x312?v=v2" width="854" height="312" role="button" title="marek_neuzil_1-1637736625424.png" alt="marek_neuzil_1-1637736625424.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;marek_neuzil_1-1637736625424.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Marek Neuzil&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 06:57:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPC55s69-CTIMER-interrupt-initialization-in-PWM-mode-BUG/m-p/1376002#M1262</guid>
      <dc:creator>marek_neuzil</dc:creator>
      <dc:date>2021-11-24T06:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55s69 - CTIMER interrupt initialization in PWM mode BUG</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPC55s69-CTIMER-interrupt-initialization-in-PWM-mode-BUG/m-p/1376070#M1263</link>
      <description>&lt;P&gt;Hi Marek,&lt;/P&gt;&lt;P&gt;Thank you for the answer that helped me analyze the problem.&lt;BR /&gt;However, both solution - my with the addition of EnableIRQ (CTIMER2_TIMER_IRQN) in the code and your suggestions are not very elegant.&lt;/P&gt;&lt;P&gt;BTW. I noticed the same problem in LPC804 - in this case it is not possible to configure the NVIC block from the Config Tools.&lt;/P&gt;&lt;P&gt;I teach students to program various NXP chips and I want to show the good side of the yours tools (they are really great in my opinion)!&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;In conclusion, I have a question: Do you plan to fix the CTIMER_EnableInterrupts() function to enable an interrupt in NVIC?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 08:18:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPC55s69-CTIMER-interrupt-initialization-in-PWM-mode-BUG/m-p/1376070#M1263</guid>
      <dc:creator>danielkrol</dc:creator>
      <dc:date>2021-11-24T08:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55s69 - CTIMER interrupt initialization in PWM mode BUG</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPC55s69-CTIMER-interrupt-initialization-in-PWM-mode-BUG/m-p/1377165#M1264</link>
      <description>&lt;P&gt;Hello Daniel,&lt;/P&gt;
&lt;P&gt;I agree the solution I have proposed is just a workaround of the issue. The issue is caused by atypical implementation of the CTIMER_SetupPWMPeriod() function that enable also the interrupt vector in the NVIC (it is done due to interrupt routine in the CTIMER driver that provides callback functions).&lt;/P&gt;
&lt;P&gt;I have already fixed the CTIMER component. When the PWM period interrupt request is enabled only the EnableIRQ() function is called to enable the interrupt vector in the NVIC component. This is the only solution I can provide in the CTIMER component now. Let me know whether you need a hot fix for this issue. I can provide a package for update of your local data.&lt;/P&gt;
&lt;P&gt;I can report the problem in the&amp;nbsp;&lt;SPAN&gt;CTIMER_EnableInterrupts() function but I am not sure if it is the right solution in this case. If the CTIMER_SetPWMPeriod() function provide configuration both channels (period and duty) both interrupts should be configured in this API functions. So the&amp;nbsp;CTIMER_SetPWMPeriod() function should be updated.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Marek Neuzil&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 15:25:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPC55s69-CTIMER-interrupt-initialization-in-PWM-mode-BUG/m-p/1377165#M1264</guid>
      <dc:creator>marek_neuzil</dc:creator>
      <dc:date>2021-11-25T15:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55s69 - CTIMER interrupt initialization in PWM mode BUG</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPC55s69-CTIMER-interrupt-initialization-in-PWM-mode-BUG/m-p/1377642#M1273</link>
      <description>&lt;P&gt;Hello Marek,&lt;/P&gt;&lt;P&gt;Thank you for the answer. At the moment I don't need a "hot fix" because I'm temporarily adding the EnableIRQ line (CTIMERx_TIMER_IRQN), but I will be grateful for fixing this in the next update.&amp;nbsp;Also, keep in mind that the problem is with code generation for other chips as well (I checked LPC804).&lt;/P&gt;&lt;P&gt;I am also waiting for fix an issue with switch CTIMER to Capture mode, that I reported to Alice in this subject.&lt;/P&gt;&lt;P&gt;BTW. Can I ask you to report a small problem (typo) in the generated BULE name instead of BLUE (screenshot in attachment) in BOARD_InitLEDsPins?&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 12:51:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/LPC55s69-CTIMER-interrupt-initialization-in-PWM-mode-BUG/m-p/1377642#M1273</guid>
      <dc:creator>danielkrol</dc:creator>
      <dc:date>2021-11-26T12:51:34Z</dc:date>
    </item>
  </channel>
</rss>

