<?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: How to configure SWIO pin as GPIO pin? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-SWIO-pin-as-GPIO-pin/m-p/1908595#M66564</link>
    <description>&lt;P&gt;hi,Fedora001&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your interest in NXP Semiconductor products and the opportunity to serve you, I will gladly help you with this.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; I used the FRDM-K32L2B3 development board and the "frdmk32l2b_gpio_led_output" program in the SDK to do some tests. The following is the process of configuring SWDIO pin as GPIO pin.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;1. Check the manual to find the pin corresponding to SWDIO, and you can see the SWDIO pin corresponding to PTA3.&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="XuZhang_1-1721035779602.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288536i154A2009AD19DC54/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XuZhang_1-1721035779602.png" alt="XuZhang_1-1721035779602.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;2. Modify the Demo program, set the pin corresponding to SWDIO as GPIO pin in the program, and set the pin to low level.&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="XuZhang_7-1721036039804.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288545i6AE42971920243A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XuZhang_7-1721036039804.png" alt="XuZhang_7-1721036039804.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XuZhang_4-1721035833793.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288539i0DB1627B1EB5708E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XuZhang_4-1721035833793.png" alt="XuZhang_4-1721035833793.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;3. Download the program to the development board through MCUXpresso.&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="XuZhang_5-1721035857716.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288540iAAB74F912EE6041A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XuZhang_5-1721035857716.png" alt="XuZhang_5-1721035857716.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;4. Measure the voltage of pin 2 of J11, and the voltage becomes 0. Then the SWDIO pin is set to GPIO successfully.&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="XuZhang_6-1721035878786.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288541i17AFD4202FB1E6DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XuZhang_6-1721035878786.png" alt="XuZhang_6-1721035878786.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Note that after the above steps are successfully set, the next time you use SWDIO to download the program to the chip, it will fail. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;I have attached the code. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Let me know if this is helpful, if you have more questions do not hesitate to ask me.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;BR&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Xu Zhang&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jul 2024 09:36:04 GMT</pubDate>
    <dc:creator>Joey_z</dc:creator>
    <dc:date>2024-07-15T09:36:04Z</dc:date>
    <item>
      <title>How to configure SWIO pin as GPIO pin?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-SWIO-pin-as-GPIO-pin/m-p/1906741#M66553</link>
      <description>&lt;P&gt;Is it possible to use the SWDIO pin on the MKM33Z128 microcontroller as a GPIO pin after programming?&amp;nbsp; What are the steps required to configure SWDIO as a GPIO pin after programming the controller and how do I set it up for use as a GPIO?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 04:57:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-SWIO-pin-as-GPIO-pin/m-p/1906741#M66553</guid>
      <dc:creator>Fedora001</dc:creator>
      <dc:date>2024-07-12T04:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure SWIO pin as GPIO pin?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-SWIO-pin-as-GPIO-pin/m-p/1908595#M66564</link>
      <description>&lt;P&gt;hi,Fedora001&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your interest in NXP Semiconductor products and the opportunity to serve you, I will gladly help you with this.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; I used the FRDM-K32L2B3 development board and the "frdmk32l2b_gpio_led_output" program in the SDK to do some tests. The following is the process of configuring SWDIO pin as GPIO pin.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;1. Check the manual to find the pin corresponding to SWDIO, and you can see the SWDIO pin corresponding to PTA3.&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="XuZhang_1-1721035779602.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288536i154A2009AD19DC54/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XuZhang_1-1721035779602.png" alt="XuZhang_1-1721035779602.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;2. Modify the Demo program, set the pin corresponding to SWDIO as GPIO pin in the program, and set the pin to low level.&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="XuZhang_7-1721036039804.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288545i6AE42971920243A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XuZhang_7-1721036039804.png" alt="XuZhang_7-1721036039804.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XuZhang_4-1721035833793.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288539i0DB1627B1EB5708E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XuZhang_4-1721035833793.png" alt="XuZhang_4-1721035833793.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;3. Download the program to the development board through MCUXpresso.&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="XuZhang_5-1721035857716.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288540iAAB74F912EE6041A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XuZhang_5-1721035857716.png" alt="XuZhang_5-1721035857716.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;4. Measure the voltage of pin 2 of J11, and the voltage becomes 0. Then the SWDIO pin is set to GPIO successfully.&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="XuZhang_6-1721035878786.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288541i17AFD4202FB1E6DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XuZhang_6-1721035878786.png" alt="XuZhang_6-1721035878786.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Note that after the above steps are successfully set, the next time you use SWDIO to download the program to the chip, it will fail. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;I have attached the code. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Let me know if this is helpful, if you have more questions do not hesitate to ask me.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;BR&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="jCAhz JxVs2d ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;Xu Zhang&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 09:36:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-configure-SWIO-pin-as-GPIO-pin/m-p/1908595#M66564</guid>
      <dc:creator>Joey_z</dc:creator>
      <dc:date>2024-07-15T09:36:04Z</dc:date>
    </item>
  </channel>
</rss>

