<?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>nrf52 Custom Board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43199/nrf52-custom-board</link><description>Hi, 
 im trying to turn on LEDs on my custom nRF52 board. Im using LEDs on 13,14,15 pins. I config pins in pca10040.h to my LED pins, but they dont work. Also if i try to put external LEDs on nrf52 DK and config them as output and high drive they also</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Jan 2020 22:24:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43199/nrf52-custom-board" /><item><title>RE: nrf52 Custom Board</title><link>https://devzone.nordicsemi.com/thread/229311?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2020 22:24:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41b0ba06-a4d0-4630-800d-1eaa31a3c6a2</guid><dc:creator>awneil</dc:creator><description>[quote userid="83989" url="~/f/nordic-q-a/43199/nrf52-custom-board/229130"]What is the pin number in this case? [/quote]
&lt;p&gt;Answered here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/56602/pin_number-for-congiguring-the-gpios/229305#229305"&gt;devzone.nordicsemi.com/.../229305&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 Custom Board</title><link>https://devzone.nordicsemi.com/thread/229300?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2020 20:06:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e3ed009-1cdf-479f-b041-2df97c0411b6</guid><dc:creator>mio</dc:creator><description>&lt;p&gt;Thank you so much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 Custom Board</title><link>https://devzone.nordicsemi.com/thread/229138?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2020 04:16:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:323fb59e-4def-4f66-8072-f393f176322c</guid><dc:creator>Siddharth rana</dc:creator><description>&lt;p&gt;If in case LED1 is located on pin number 13 of your board.&lt;/p&gt;
&lt;p&gt;Nrf_gpio_cfg_output (13).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 Custom Board</title><link>https://devzone.nordicsemi.com/thread/229130?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2020 22:49:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0ba1902-d230-4278-a775-1eaec07e7e9c</guid><dc:creator>mio</dc:creator><description>&lt;p&gt;Hello. I am also wondering how to change pin number in this example. For example, how should I do if I want to use only LED1 in this example? Should I call the &lt;span style="background-color:#ffffff;color:#11171a;float:none;font-family:&amp;#39;GT Eesti&amp;#39;,&amp;#39;Helvetica&amp;#39;,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:bold;letter-spacing:normal;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;&lt;b&gt;nrf_gpio_cfg_output(uint32_t pin_number)&lt;/b&gt;&lt;/span&gt; as well? What is the pin number in this case? I&amp;#39;m glad if you could tell me more detail. Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 Custom Board</title><link>https://devzone.nordicsemi.com/thread/169253?ContentTypeID=1</link><pubDate>Mon, 04 Feb 2019 09:54:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1b16654-02ab-42ed-b2cd-af542c4979a5</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
[quote user="Kev"]LED_START and LED_STOP I commented becouse i dont need them[/quote]
&lt;p&gt;&amp;nbsp;Sorry about this, I did not notice that.&lt;/p&gt;
[quote user="Kev"]Do I need define LED_1 pin number same pin as number in nrf_gpio_cfg[/quote]
&lt;p&gt;&amp;nbsp;Yes, when you use the &lt;strong&gt;b&lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-2-0/lib_bsp"&gt;sp library, &lt;/a&gt;&lt;/strong&gt;you have to have the same pin number in your pca10040.h file as the one you configure in your main.c file. &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 Custom Board</title><link>https://devzone.nordicsemi.com/thread/169100?ContentTypeID=1</link><pubDate>Fri, 01 Feb 2019 15:03:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7b89d4b-b7e2-4733-91ab-9052223b0673</guid><dc:creator>Kev</dc:creator><description>&lt;p&gt;Im using RGB LED, that&amp;#39;s why i set to H0H1. LED_START and LED_STOP I commented becouse i dont need them, Do I need define LED_1 pin number same pin as number in nrf_gpio_cfg ?&amp;nbsp; Those 2 codes i tried one with bsp_board_init(BSP_INIT_LEDS) - code example when LED_1 is set to pin22 and other i tried with only nrf_gpio_cfg without&amp;nbsp; bsp_board_init function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 Custom Board</title><link>https://devzone.nordicsemi.com/thread/169079?ContentTypeID=1</link><pubDate>Fri, 01 Feb 2019 13:38:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26c1c23f-0df4-4b22-bec8-fec93688494f</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The first code snippet:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think that you have the right configuration, try this one:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;__STATIC_INLINE void nrf_gpio_cfg_output(uint32_t pin_number)
{
    nrf_gpio_cfg(
        pin_number,
        NRF_GPIO_PIN_DIR_OUTPUT,
        NRF_GPIO_PIN_INPUT_DISCONNECT,
        NRF_GPIO_PIN_NOPULL,
        NRF_GPIO_PIN_S0S1,
        NRF_GPIO_PIN_NOSENSE);
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You can configure a LED by calling &lt;strong&gt;nrf_gpio_cfg_output(uint32_t pin_number).&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Also, have you tried to use nrf_drv_gpiote_out_set(13) to toggle the pin?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Schematic&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;The reason for the resistance before the LED is so that it does not burn/overheat. The solder-bridge I think is there so that you can solder on a PIN if you like.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The last code snippet:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Why have you commented out LED_START / LED_STOP? You also have not defined the LEDS with your pin number as far as I can tell.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 Custom Board</title><link>https://devzone.nordicsemi.com/thread/168942?ContentTypeID=1</link><pubDate>Thu, 31 Jan 2019 19:54:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58cd3fc3-5048-423a-b2f2-7e81d2ccd48b</guid><dc:creator>Kev</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;int main(void)
{
    /* Configure board. */

//    bsp_board_init(BSP_INIT_LEDS);
    nrf_gpio_cfg(
        13  ,
        NRF_GPIO_PIN_DIR_OUTPUT,
        NRF_GPIO_PIN_INPUT_DISCONNECT,
        NRF_GPIO_PIN_NOPULL,
        NRF_GPIO_PIN_H0H1,
        NRF_GPIO_PIN_NOSENSE);



    /* Toggle LEDs. */
    while (true)
    {
//        for (int i = 0; i &amp;lt; LEDS_NUMBER; i++)
//        {
//            bsp_board_led_invert(i);
//            nrf_delay_ms(500);
//        }
            nrf_gpio_port_out_write(13 ,true);
            nrf_delay_ms(300);
            nrf_gpio_port_out_write(13 ,false);
           
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Here is code from blinky example - testing external LEDs on nRF52 DK.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Altium.png" /&gt;&lt;/p&gt;
&lt;p&gt;Here is elements between LEDs and buttons.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;quot;nrf_gpio.h&amp;quot;

// LEDs definitions for PCA10040
#define LEDS_NUMBER    4

//#define LED_START      17
#define LED_1          22
#define LED_2          18
#define LED_3          19
#define LED_4          20
//#define LED_STOP       20

#define LEDS_ACTIVE_STATE 0

#define LEDS_INV_MASK  LEDS_MASK

#define LEDS_LIST { LED_1, LED_2, LED_3, LED_4 }

#define BSP_LED_0      LED_1
#define BSP_LED_1      LED_2
#define BSP_LED_2      LED_3
#define BSP_LED_3      LED_4

#define BUTTONS_NUMBER 4&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;pca10040.h config LED_1 to pin 22 for external LED on nRF52 DK on ble_app_blinky - nothing changed in main.c&lt;/p&gt;
&lt;p&gt;Thanks for replay&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52 Custom Board</title><link>https://devzone.nordicsemi.com/thread/168831?ContentTypeID=1</link><pubDate>Thu, 31 Jan 2019 10:03:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a208c45-217a-4d6b-a828-ab27ea12ba04</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Which SDK are you using?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I config pins in pca10040.h to my LED pins, but they dont work[/quote]
&lt;p&gt;&amp;nbsp;Which defines have you edited? Could you post some code?&lt;/p&gt;
[quote user=""]Also if i try to put external LEDs on nrf52 DK and config them as output and high drive they also&amp;nbsp;dont work. What i am doing wrong[/quote]
&lt;p&gt;&amp;nbsp;Could you post some code?&lt;/p&gt;
[quote user=""] I also noticed 2 components between LED and nrf52 DK, what are this 2 components for?[/quote]
&lt;p&gt;&amp;nbsp;Which components are you talking about?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>