<?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>Building for BLE Nano2 with nRF5 SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23400/building-for-ble-nano2-with-nrf5-sdk</link><description>Created a custom board .h file using this: 
 #ifndef RBLNANO2_H
#define RBLNANO2_H

#ifdef __cplusplus
extern &amp;quot;C&amp;quot; {
#endif

#include &amp;quot;nrf_gpio.h&amp;quot;

// LEDs definitions for RBL NANO 2
#define LEDS_NUMBER 1

#define LED_OB 11
#define LED_START</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Sep 2017 11:31:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23400/building-for-ble-nano2-with-nrf5-sdk" /><item><title>RE: Building for BLE Nano2 with nRF5 SDK</title><link>https://devzone.nordicsemi.com/thread/91982?ContentTypeID=1</link><pubDate>Thu, 21 Sep 2017 11:31:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:952d0e5a-f915-4da2-9880-9b6b038772d0</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;This should be straigh forward. Program one device with the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.0.0/ble_sdk_app_nus_eval.html?cp=4_0_0_4_1_2_24"&gt;UART/Serial Port Emulation over BLE example&lt;/a&gt; (ble_app_uart), and the other board with &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.0.0/ble_sdk_app_nus_c.html?cp=4_0_0_4_1_0_4"&gt;Nordic UART Service Client example&lt;/a&gt; (ble_app_uart_c), and follow the test instructions in the above links.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building for BLE Nano2 with nRF5 SDK</title><link>https://devzone.nordicsemi.com/thread/91981?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2017 13:43:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f8434e7-b112-4345-b7a2-09e1055e6c01</guid><dc:creator>Lukeman</dc:creator><description>&lt;p&gt;Hi i am struck with BLE nano 2, i was able to program using Arduino code from the redbear available in github. But when i tried using Nordic SDK using keil i don&amp;#39;t know how to proceed further .My objective is to pair two nano devices and transfer &amp;quot;char&amp;quot; over BLE. How to proceed after this??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building for BLE Nano2 with nRF5 SDK</title><link>https://devzone.nordicsemi.com/thread/91984?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2017 12:28:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6796013-5444-4294-a7f8-e7b9cb083afc</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I see, then it makes sense that it did not work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building for BLE Nano2 with nRF5 SDK</title><link>https://devzone.nordicsemi.com/thread/91983?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2017 12:19:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60ee1a0a-3bd6-420d-9a4b-09e9167fd7d2</guid><dc:creator>paul_tanner</dc:creator><description>&lt;p&gt;ok. somehow bsp_board_leds_init() was accidentally removed from main.c.  So now all is clear.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building for BLE Nano2 with nRF5 SDK</title><link>https://devzone.nordicsemi.com/thread/91978?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2017 12:07:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02090c39-7847-462e-bd43-23d2d2106a95</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;It should not be required, as each LED in LEDS_LIST should be configured in &lt;code&gt;bsp_board_leds_init()&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#if LEDS_NUMBER &amp;gt; 0
static const uint8_t m_board_led_list[LEDS_NUMBER] = LEDS_LIST;
#endif

void bsp_board_leds_init(void)
{
    uint32_t i;
    for(i = 0; i &amp;lt; LEDS_NUMBER; ++i)
    {
        nrf_gpio_cfg_output(m_board_led_list[i]);
    }
    bsp_board_leds_off();
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Can you try setting a breakpoint inside the for-loop in &lt;code&gt;bsp_board_leds_init()&lt;/code&gt;, to see if it is executing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building for BLE Nano2 with nRF5 SDK</title><link>https://devzone.nordicsemi.com/thread/91980?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2017 12:04:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ac5c8e2-7f5b-4cb8-87ef-491b51fa1a4a</guid><dc:creator>paul_tanner</dc:creator><description>&lt;p&gt;@Jorgen thx. I just figured this out at the same time as you posted your last suggestion. sure enough all is good when the pin is explicitly configured as an output.  What I do not get is why the same blinky works on nRF52-DK without setting the pin mode explicitly.  Not a big concern but it would be good to know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building for BLE Nano2 with nRF5 SDK</title><link>https://devzone.nordicsemi.com/thread/91977?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2017 11:52:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83320864-f293-4585-93b9-e9c1f3fac620</guid><dc:creator>paul_tanner</dc:creator><description>&lt;p&gt;found the problem!  pin11 was not getting set as an output.&lt;/p&gt;
&lt;p&gt;nrf_gpio_cfg_output(LED_OB);&lt;/p&gt;
&lt;p&gt;added to main.c fixed it.  this should not be needed as LED_OB is (I think) properly defined in the board .h file (see above).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building for BLE Nano2 with nRF5 SDK</title><link>https://devzone.nordicsemi.com/thread/91976?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2017 11:46:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ddfa9d3-b98a-4b16-8606-7f9526b1e126</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;There should not be any problems mapping pin 11. Looks like the led of the BLE Nano 2 is pulldown, while the LEDs of the PCA10040 is pullup. Can you try configuring and toggling the LED manually in your blinky example?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#include &amp;quot;nrf_gpio.h&amp;quot;
#include &amp;quot;nrf_delay.h&amp;quot;

#define LED_PIN 11

int main(void)
{
	/* Configure LED pin. */
    nrf_gpio_cfg_output(LED_PIN);
    nrf_gpio_pin_set(LED_PIN);
    
	/* Toggle LEDs. */
    while (true)
    {
        nrf_gpio_pin_toggle(LED_PIN);
        nrf_delay_ms(500);
    }
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building for BLE Nano2 with nRF5 SDK</title><link>https://devzone.nordicsemi.com/thread/91975?ContentTypeID=1</link><pubDate>Thu, 13 Jul 2017 06:22:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff646dee-17e3-4090-b641-a9293f4435d7</guid><dc:creator>paul_tanner</dc:creator><description>&lt;p&gt;Yes I did.  And I have tested this same board .h file on the uart example to which I added LED blinking.  I have. I also added a line that echos the state of pin 11 to the RTT. This shows that, although the LED is not blinking, pin 11 is being toggled. From other tests I know that the LED is electrically connected. Is there some kind of problem in the mapping of pin 11?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building for BLE Nano2 with nRF5 SDK</title><link>https://devzone.nordicsemi.com/thread/91979?ContentTypeID=1</link><pubDate>Wed, 12 Jul 2017 11:17:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dff7877-7884-45e0-a5f7-fede550f7c0c</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Did you remember to change the preprocessor symbol defines in the blinky example to use your custom board file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building for BLE Nano2 with nRF5 SDK</title><link>https://devzone.nordicsemi.com/thread/91974?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2017 14:50:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:612a46e3-c6c9-42a8-9f00-d17da077b377</guid><dc:creator>paul_tanner</dc:creator><description>&lt;p&gt;yes. the blank version.  same with the uart example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building for BLE Nano2 with nRF5 SDK</title><link>https://devzone.nordicsemi.com/thread/91973?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2017 12:10:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bac86d98-b131-48ae-ab6e-4556e923e339</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;The peripheral/blinky example? Are you using the &amp;quot;blank&amp;quot; version (no softdevice)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building for BLE Nano2 with nRF5 SDK</title><link>https://devzone.nordicsemi.com/thread/91972?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2017 12:06:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59978073-751d-419a-a583-eed39f15605f</guid><dc:creator>paul_tanner</dc:creator><description>&lt;p&gt;even more strangely.  the LED flashes ok when the code from blinky is added to the uart example.
blinky on it&amp;#39;s own does not flash the LED.  Have even tried using the config file for uart on blinky.  Also compares the .ld file - they are the same.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building for BLE Nano2 with nRF5 SDK</title><link>https://devzone.nordicsemi.com/thread/91971?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2017 09:37:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccb7cd90-3aed-40cb-9b5a-25497967ed29</guid><dc:creator>paul_tanner</dc:creator><description>&lt;p&gt;actually I just had some success with the uart example.  Using the MK-20 to connect the Nano2 to a USB port.  Then used screen to attach an OS/X terminal to that.  However, blinky example still not working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Building for BLE Nano2 with nRF5 SDK</title><link>https://devzone.nordicsemi.com/thread/91970?ContentTypeID=1</link><pubDate>Tue, 11 Jul 2017 09:21:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7a559f3-c1f7-424a-8f81-d5ad10681e83</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;How did you connect the UART pins to your computer/console?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>