<?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>custom_board.h for sdk v12.2 and v13.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21547/custom_board-h-for-sdk-v12-2-and-v13-0</link><description>In my nRF52832 base-board, I don&amp;#39;t have any leds and buttons.
I use Keil v5 and I used ble_app_uart_pca10040_s132.
I copied pca10040.h as custom_board.h and replaced BOARD_PCA10040
with BOARD_CUSTOM in proprocessor symbol.
when I removed led definitions</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Jul 2017 19:13:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21547/custom_board-h-for-sdk-v12-2-and-v13-0" /><item><title>RE: custom_board.h for sdk v12.2 and v13.0</title><link>https://devzone.nordicsemi.com/thread/84602?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2017 19:13:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d99a6682-560c-4194-a49f-762071ff5b28</guid><dc:creator>Artem Efremov</dc:creator><description>&lt;p&gt;If your custom board does not have any buttons, then the problem could be resolved by setting LEDS_NUMBER to 0 in custom_board.h and wrapping content of bsp_btn_ble.c with&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#if BUTTONS_NUMBER &amp;gt; 0
  // content of bsp_btn_ble.c
#endif // BUTTONS_NUMBER &amp;gt; 0
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It seems to be a bug because functions in bsp_btn_ble.c always try to call functions from bsp.c which are not defined when BUTTONS_NUMBER is 0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom_board.h for sdk v12.2 and v13.0</title><link>https://devzone.nordicsemi.com/thread/84600?ContentTypeID=1</link><pubDate>Sat, 22 Apr 2017 22:31:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d816c91-44de-4192-a50f-7b62de2dc859</guid><dc:creator>ogura</dc:creator><description>&lt;p&gt;thanks. both works  fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom_board.h for sdk v12.2 and v13.0</title><link>https://devzone.nordicsemi.com/thread/84601?ContentTypeID=1</link><pubDate>Sat, 22 Apr 2017 15:57:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59028287-ebeb-45a8-993b-4cb955bc7e34</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;Or have you tried in pca10040.h changing LEDS_NUMBER    4   to LEDS_NUMBER 0 ?  (and similarly for BUTTONS_NUMBER)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom_board.h for sdk v12.2 and v13.0</title><link>https://devzone.nordicsemi.com/thread/84599?ContentTypeID=1</link><pubDate>Sat, 22 Apr 2017 13:12:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c10678e4-03da-4c5b-8bbc-87ed4d441368</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;Can you get around the problem by keeping BOARD_PCA10040 and not trying to define a new custom_board.h?  In other words, if your app knows there is no LED or button, and does not call any functions to use LED or button, then your app should compile and work.  I don&amp;#39;t think it will even link in any of the board support functions, since you don&amp;#39;t call them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>