<?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 LPC832: GPIO not working on default I2C and SWD pins in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC832-GPIO-not-working-on-default-I2C-and-SWD-pins/m-p/1636602#M52257</link>
    <description>&lt;P&gt;Hi! &amp;nbsp;I'm creating an X-Y matrix of LEDs and need a number of GPIO pins on an LPC832 (SOP20 package). &amp;nbsp;However, pins 7,8 (SWD), and 9,10 (I2C) do not want to comply with the GPIO configuration. &amp;nbsp;Pins 7 and 8 stay high, no matter how I set them, and pins 9 and 10 stay low. &amp;nbsp;I looked at&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-SWD-disabling/m-p/1572427" target="_blank"&gt;https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-SWD-disabling/m-p/1572427&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But it didn't help. &amp;nbsp;I've attached the compressed project so you can take a look for yourself. &amp;nbsp;It could be that I overlooked something, but the other GPIO pins seem to work as expected.&lt;/P&gt;&lt;P&gt;Thanks for any insight.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2023 21:28:12 GMT</pubDate>
    <dc:creator>aaronm</dc:creator>
    <dc:date>2023-04-19T21:28:12Z</dc:date>
    <item>
      <title>LPC832: GPIO not working on default I2C and SWD pins</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC832-GPIO-not-working-on-default-I2C-and-SWD-pins/m-p/1636602#M52257</link>
      <description>&lt;P&gt;Hi! &amp;nbsp;I'm creating an X-Y matrix of LEDs and need a number of GPIO pins on an LPC832 (SOP20 package). &amp;nbsp;However, pins 7,8 (SWD), and 9,10 (I2C) do not want to comply with the GPIO configuration. &amp;nbsp;Pins 7 and 8 stay high, no matter how I set them, and pins 9 and 10 stay low. &amp;nbsp;I looked at&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-SWD-disabling/m-p/1572427" target="_blank"&gt;https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-SWD-disabling/m-p/1572427&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But it didn't help. &amp;nbsp;I've attached the compressed project so you can take a look for yourself. &amp;nbsp;It could be that I overlooked something, but the other GPIO pins seem to work as expected.&lt;/P&gt;&lt;P&gt;Thanks for any insight.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 21:28:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC832-GPIO-not-working-on-default-I2C-and-SWD-pins/m-p/1636602#M52257</guid>
      <dc:creator>aaronm</dc:creator>
      <dc:date>2023-04-19T21:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: LPC832: GPIO not working on default I2C and SWD pins</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC832-GPIO-not-working-on-default-I2C-and-SWD-pins/m-p/1637684#M52275</link>
      <description>&lt;P&gt;Ok, I understand the I2C pins - 9 &amp;amp; 10 - are open drain when in GPIO mode, so adding a pull-up resistor will allow the output to go high. &amp;nbsp;I've tested that and it works.&lt;/P&gt;&lt;P&gt;I'm still stuck on pins 7 &amp;amp; 8 - the SWD pins. &amp;nbsp;Do I have to disable SWD on chip startup?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 04:52:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC832-GPIO-not-working-on-default-I2C-and-SWD-pins/m-p/1637684#M52275</guid>
      <dc:creator>aaronm</dc:creator>
      <dc:date>2023-04-21T04:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: LPC832: GPIO not working on default I2C and SWD pins</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC832-GPIO-not-working-on-default-I2C-and-SWD-pins/m-p/1637701#M52276</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/184079"&gt;@aaronm&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How about try to "&lt;SPAN&gt;After disabling the default SWD functions of pins,&amp;nbsp; pull-down the P0_4 to the low state prior to resetting the MCU, after that, release the P0_4.&lt;/SPAN&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>Fri, 21 Apr 2023 05:24:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC832-GPIO-not-working-on-default-I2C-and-SWD-pins/m-p/1637701#M52276</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2023-04-21T05:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: LPC832: GPIO not working on default I2C and SWD pins</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC832-GPIO-not-working-on-default-I2C-and-SWD-pins/m-p/1638249#M52288</link>
      <description>&lt;P&gt;Got it. &amp;nbsp;To disable SWD on the fixed pins, and enable GPIO on those pins, instead, I created this function and call it before BOARD_InitBootPins(). &amp;nbsp;&lt;/P&gt;&lt;P&gt;Note, however, after you do this, SWD will not work as expected until you enable ISP mode. &amp;nbsp;To do that, connect pin 4 (PIO0_12) to ground, then touch pin 5 to ground and disconnect. &amp;nbsp;SWD should work again.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;// near the other #includes
#include "fsl_swm.h"

// somewhere in your source code
void disableSWD ()
{
	CLOCK_EnableClock( kCLOCK_Swm );
	SWM_SetFixedPinSelect( SWM0, kSWM_SWCLK, false );
	SWM_SetFixedPinSelect( SWM0, kSWM_SWDIO, false );
	CLOCK_DisableClock( kCLOCK_Swm );
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 20:52:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC832-GPIO-not-working-on-default-I2C-and-SWD-pins/m-p/1638249#M52288</guid>
      <dc:creator>aaronm</dc:creator>
      <dc:date>2023-04-21T20:52:44Z</dc:date>
    </item>
  </channel>
</rss>

