<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>GPIO Cannot be Programmed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62666/gpio-cannot-be-programmed</link><description>Hi Nordic Experts, 
 I use nRF52832 for a custom board, I use GPIO P0.17 and P0.18 for controlling NMOS switch, for buzzer and vibration motor, and the frequency is controlled by ADC value. I use SDK 16 for firmware, and programming through nRF52DK serial</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Jun 2020 13:48:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62666/gpio-cannot-be-programmed" /><item><title>RE: GPIO Cannot be Programmed</title><link>https://devzone.nordicsemi.com/thread/255576?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 13:48:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7636bdbd-74fc-415e-a212-36b79647ee74</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Was it intentional that you only used&amp;nbsp;nrf_gpio_pin_clear and not&amp;nbsp;nrf_gpio_pin_set in the above code?&lt;/p&gt;
&lt;p&gt;Can you test with a basic application without anything else, to make sure nothing else is controlling the pins? For instance something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;quot;nrf_delay.h&amp;quot;
#include &amp;quot;nrf_gpio.h&amp;quot;

#define GPIO_OUTPUT_BUZZER 17
#define GPIO_OUTPUT_VIBRATION 18

void main(void)
{
    nrf_gpio_cfg_output(GPIO_OUTPUT_BUZZER);
    nrf_gpio_cfg_output(GPIO_OUTPUT_VIBRATION);
    
    while(1)
    {
        nrf_gpio_pin_clear(GPIO_OUTPUT_BUZZER);
        nrf_gpio_pin_set(GPIO_OUTPUT_VIBRATION);
        
        nrf_delay_ms(500);

        nrf_gpio_pin_clear(GPIO_OUTPUT_BUZZER);
        nrf_gpio_pin_set(GPIO_OUTPUT_VIBRATION);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>