<?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: GPIO fatal issues in the LPCOpen 2.0 library for LPC11c24  in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/GPIO-fatal-issues-in-the-LPCOpen-2-0-library-for-LPC11c24/m-p/718563#M29040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The code in C++ is mine. What is important here is that the library function&amp;nbsp;&lt;STRONG&gt;Chip_GPIO_SetPinDirOutput()&lt;/STRONG&gt;&amp;nbsp; always calls &lt;STRONG&gt;Chip_GPIO_SetPinDirInput()&lt;/STRONG&gt;&lt;STRONG&gt;.&lt;/STRONG&gt; I'm using the library you've mentioned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Oct 2018 19:40:43 GMT</pubDate>
    <dc:creator>fjrg76</dc:creator>
    <dc:date>2018-10-18T19:40:43Z</dc:date>
    <item>
      <title>GPIO fatal issues in the LPCOpen 2.0 library for LPC11c24</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/GPIO-fatal-issues-in-the-LPCOpen-2-0-library-for-LPC11c24/m-p/718561#M29038</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;I found a really shocking misbehavior while developing a project for the LPC1114 chip under LPCXpresso IDE using such a library. In short: a calling to the function &lt;STRONG&gt;Chip_GPIO_SetPinDirOutput()&lt;/STRONG&gt; always calls &lt;STRONG&gt;Chip_GPIO_SetPinDirInput(), &lt;/STRONG&gt;WTH!!. Then I tried the more general function &lt;STRONG&gt;Chip_GPIO_SetPinDIR()&lt;/STRONG&gt;, which in turn did what was expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More about the project:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;LPCXpresso v8.2.2, Linux Mint Cinnamon 18.3&lt;/LI&gt;&lt;LI&gt;The project is under C++, no optimization at all, maximum debugging (-g3), -std=gnu++11, newLibNano -nohost&lt;/LI&gt;&lt;LI&gt;LPCOpen library settings: optimized for size, no debug information, -std=C11&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I captured some pics so you see the issue closer:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;-28.png, L127: Calls the constructor.&lt;/LI&gt;&lt;LI&gt;-13.png, Constructor's body. Whenever _dir is true, Chip_GPIO_SetPinDirOutput() should be called.&lt;/LI&gt;&lt;LI&gt;-51.png, L167: Weirdly the function Chip_GPIO_SetPinDirInput() is invoked, so the pin is always set as input regardless the user's wishes.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I now, LPCopen 2.0 release library is the last (and old one) for this chip. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2018 19:34:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/GPIO-fatal-issues-in-the-LPCOpen-2-0-library-for-LPC11c24/m-p/718561#M29038</guid>
      <dc:creator>fjrg76</dc:creator>
      <dc:date>2018-01-12T19:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO fatal issues in the LPCOpen 2.0 library for LPC11c24</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/GPIO-fatal-issues-in-the-LPCOpen-2-0-library-for-LPC11c24/m-p/718562#M29039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Customer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have check our LPCOpen 2.0 library for lpc11c24,&amp;nbsp; I didn't find this definition:&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/12103i9C49FA982DC4774C/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;My code is download from this link:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc11xx:LPCOPEN-SOFTWARE-FOR-LPC11XX" title="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc11xx:LPCOPEN-SOFTWARE-FOR-LPC11XX"&gt;LPCOpen Software for LPC11XX|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know where you find it, or you write it by yourself?&lt;/P&gt;&lt;P&gt;I think you can debug this function, check _dir, when you intput :&amp;nbsp; Pin::output, check ouput value, and the _dir value if you want to use Chip_GPIO_SetPinDIROutput function, _dir should be 0. Check your output, is it 0?&lt;/P&gt;&lt;P&gt;I think the problem may caused by this Pin::Pin function, or the value of your output.&lt;/P&gt;&lt;P&gt;Please check it again on your side.&lt;/P&gt;&lt;P&gt;Any updated information, please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Tue, 16 Jan 2018 03:32:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/GPIO-fatal-issues-in-the-LPCOpen-2-0-library-for-LPC11c24/m-p/718562#M29039</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-01-16T03:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO fatal issues in the LPCOpen 2.0 library for LPC11c24</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/GPIO-fatal-issues-in-the-LPCOpen-2-0-library-for-LPC11c24/m-p/718563#M29040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The code in C++ is mine. What is important here is that the library function&amp;nbsp;&lt;STRONG&gt;Chip_GPIO_SetPinDirOutput()&lt;/STRONG&gt;&amp;nbsp; always calls &lt;STRONG&gt;Chip_GPIO_SetPinDirInput()&lt;/STRONG&gt;&lt;STRONG&gt;.&lt;/STRONG&gt; I'm using the library you've mentioned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 19:40:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/GPIO-fatal-issues-in-the-LPCOpen-2-0-library-for-LPC11c24/m-p/718563#M29040</guid>
      <dc:creator>fjrg76</dc:creator>
      <dc:date>2018-10-18T19:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO fatal issues in the LPCOpen 2.0 library for LPC11c24</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/GPIO-fatal-issues-in-the-LPCOpen-2-0-library-for-LPC11c24/m-p/718564#M29041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, are you saying that in your Pin:Pin method always calls SetPinDirOutput, regardless of the stat of _dir? Or are you saying that the LPCOpen function calls the wrong thin?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is your code, can you provide an example of how you invoke the method!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 20:34:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/GPIO-fatal-issues-in-the-LPCOpen-2-0-library-for-LPC11c24/m-p/718564#M29041</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2018-10-18T20:34:19Z</dc:date>
    </item>
  </channel>
</rss>

