<?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>LPC MicrocontrollersのトピックRe: LPC SDK 2.12 button component bug</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-SDK-2-12-button-component-bug/m-p/1588238#M51399</link>
    <description>&lt;P&gt;Hello Raul,&lt;/P&gt;&lt;P&gt;no it dosn help.&lt;/P&gt;&lt;P&gt;button_callback still post doubleklick only.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2023 09:41:02 GMT</pubDate>
    <dc:creator>A_M</dc:creator>
    <dc:date>2023-01-26T09:41:02Z</dc:date>
    <item>
      <title>LPC SDK 2.12 button component bug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-SDK-2-12-button-component-bug/m-p/1580731#M51244</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;the fsl_component_button have a bug. There is no initialisation of the timer.&lt;BR /&gt;Therefore only the double click event is reported no matter how the button is pressed.&lt;/P&gt;&lt;P&gt;The bug seems to be in all LPC54xxx SDKs.&lt;/P&gt;&lt;P&gt;Tested SDK_2_12_0_LPC54005 &amp;amp; SDK_2_12_0_LPC54608J512&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 10:06:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-SDK-2-12-button-component-bug/m-p/1580731#M51244</guid>
      <dc:creator>A_M</dc:creator>
      <dc:date>2023-01-11T10:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: LPC SDK 2.12 button component bug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-SDK-2-12-button-component-bug/m-p/1581141#M51253</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/156878"&gt;@A_M&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Could you please tell us how are you testing this? What are you expecting to do, or which functions are you expecting to enter with the initialization of the timer?&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Best regards, Raul.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 21:03:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-SDK-2-12-button-component-bug/m-p/1581141#M51253</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2023-01-11T21:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: LPC SDK 2.12 button component bug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-SDK-2-12-button-component-bug/m-p/1586678#M51350</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I expect that when I enable the klick functions(one/double/short/long), define the threshold time in fsl_component_button.h and call&lt;BR /&gt;BUTTON_Init((button_handle_t)s_buttonHandle, &amp;amp;buttonConfig);&lt;BR /&gt;BUTTON_InstallCallback(&amp;amp;s_buttonHandle, button_callback, NULL);.&lt;BR /&gt;That then I get result in button_callback.&lt;/P&gt;&lt;P&gt;But the only event that I get is double klick. The timer to measure the threshold time is not initialized.&lt;/P&gt;&lt;P&gt;There must be an initialization call TM_Init(…) in BUTTON_OpenTimer but its not.&lt;/P&gt;&lt;P&gt;My fix is in fsl_component_button.h is in the zip Line 309 – 314.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 15:16:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-SDK-2-12-button-component-bug/m-p/1586678#M51350</guid>
      <dc:creator>A_M</dc:creator>
      <dc:date>2023-01-23T15:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: LPC SDK 2.12 button component bug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-SDK-2-12-button-component-bug/m-p/1587858#M51387</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/156878"&gt;@A_M&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Could you please try using the following code for fsl_component_button.c in function BUTTON_OpenTimer instead of using your configuration?&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RaulRomero_0-1674670636543.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/208365i6AFF162D7CAEC8E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RaulRomero_0-1674670636543.png" alt="RaulRomero_0-1674670636543.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;[button component of LPCXpresso54608]&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Checking the button component in LPC54608 and comparing the one in LPCXpresso54608, some lines of the code above are missing. Could you please try your code using the underlined lines?&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Please let us know if this actually helps you to work out the button component.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Regards, Raul.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 18:34:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-SDK-2-12-button-component-bug/m-p/1587858#M51387</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2023-01-25T18:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: LPC SDK 2.12 button component bug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-SDK-2-12-button-component-bug/m-p/1588238#M51399</link>
      <description>&lt;P&gt;Hello Raul,&lt;/P&gt;&lt;P&gt;no it dosn help.&lt;/P&gt;&lt;P&gt;button_callback still post doubleklick only.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 09:41:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-SDK-2-12-button-component-bug/m-p/1588238#M51399</guid>
      <dc:creator>A_M</dc:creator>
      <dc:date>2023-01-26T09:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: LPC SDK 2.12 button component bug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-SDK-2-12-button-component-bug/m-p/1589032#M51422</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/156878"&gt;@A_M&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Looking at the button component API and seeing the base example to demonstrate how to use the button component; to which you can access through &lt;EM&gt;Import SDK example(s)…&lt;/EM&gt;:&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RaulRomero_0-1674842174578.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/208603i0DC33B5F7FA1948A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RaulRomero_0-1674842174578.png" alt="RaulRomero_0-1674842174578.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;The button component is expecting that you do the initialization of the timer &lt;EM&gt;TM_Init()&amp;nbsp;&lt;/EM&gt;by yourself; in the example is at main before&amp;nbsp;&lt;EM&gt;BUTTON_Init()&lt;/EM&gt; and&lt;EM&gt;&amp;nbsp;BUTTON_InstallCallback()&lt;/EM&gt;, but the way that you did it is also right.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Best regards, Raul.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 18:04:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-SDK-2-12-button-component-bug/m-p/1589032#M51422</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2023-01-27T18:04:51Z</dc:date>
    </item>
  </channel>
</rss>

