<?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>Board is not defined</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28304/board-is-not-defined</link><description>Hello everyone, I want to run project ble_uart on NRF52832 in Keil.
At the beginning of the main.c I add
#define BOARD_NRF6310 
 But get error
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Examples\11.0.0-2.alpha\bsp\boards.h(44): error: #35: #error</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Dec 2017 13:58:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28304/board-is-not-defined" /><item><title>RE: Board is not defined</title><link>https://devzone.nordicsemi.com/thread/111771?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 13:58:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93054673-4054-4648-aa3b-bf6dd5fa9484</guid><dc:creator>masta</dc:creator><description>&lt;p&gt;Thank you very much!!!!!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Board is not defined</title><link>https://devzone.nordicsemi.com/thread/111770?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 12:52:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85aa13cf-2715-48cc-b20e-43d283c28a75</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;That is correct. The ble_app_uart example is not configured to allow pairing. You will need to add the Peer Manager module to support pairing. If you want test an example that does allow pairing, I would recommend using the ble_app_hrs example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Board is not defined</title><link>https://devzone.nordicsemi.com/thread/111763?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 12:45:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11cb360a-79b4-4a6a-8f00-9ba1366cebe2</guid><dc:creator>masta</dc:creator><description>&lt;p&gt;Now the phone sees the device(Nordic_UART), but does not allow pairing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Board is not defined</title><link>https://devzone.nordicsemi.com/thread/111769?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 08:59:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e085fbb-ec1e-4a32-9a08-2ff31697ab2d</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;The address is correct. Make sure that you have flashed the S132 V.5 SoftDevice. You can find this in the folder &lt;code&gt;SDK_folder\components\softdevice\s132\hex&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;In &lt;a href="https://www.nordicsemi.com/eng/Products/2.4GHz-RF/nRFgo-Studio#Downloads"&gt;nRFGO Studio&lt;/a&gt; it should look something like this:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Capture_5F00_123.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;Note that the BLE link will get disconnected when hitting a breakpoint, because the radio will be halted, and the radio will therefore not be able to transmit the necessary packets to keep the BLE connection. The link will disconnected after a timeout given in the connect request (or a connection parameter update), and you will get a fault when debugging.&lt;/p&gt;
&lt;p&gt;Debugging when the SoftDevice is active can be tricky.
Using the logging system (nrf_log), logging messages over Segger RTT or UART is recommended when you try to find root cause of issues. Step-by-step debugging is not recommended when in an active BLE connection. We have something called Monitor Mode Debugging that can be used, but it can be a bit cumbersome to setup.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Board is not defined</title><link>https://devzone.nordicsemi.com/thread/111768?ContentTypeID=1</link><pubDate>Thu, 14 Dec 2017 02:04:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd7431f3-4eb9-4345-870f-6b57aea85c95</guid><dc:creator>masta</dc:creator><description>&lt;p&gt;The project successfully compiles, but the program does not debug. My past project, which debugged well had the following settings.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://prnt.sc/hn7487"&gt;https://prnt.sc/hn7487&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And this&lt;/p&gt;
&lt;p&gt;&lt;a href="http://prntscr.com/hn83vg"&gt;http://prntscr.com/hn83vg&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;May be this address need change?&lt;/p&gt;
&lt;p&gt;....&lt;/p&gt;
&lt;p&gt;If I change the address, the program jump SVC_Handler when ble_stack_init()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Board is not defined</title><link>https://devzone.nordicsemi.com/thread/111767?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2017 22:43:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c562b6c8-de06-4750-863c-e566ce4e01bd</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;You should have had alot more defines in the Preprocessor Symbols. Please unzip the .zip, and open the Keil project located in &amp;lt;SDK_14_2_InstallFolder&amp;gt;\examples\ble_peripheral\ble_app_uart\pca10040\s132\arm5_no_packs&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Board is not defined</title><link>https://devzone.nordicsemi.com/thread/111766?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2017 22:38:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86727f46-87b2-480f-a154-2b0c764014e6</guid><dc:creator>masta</dc:creator><description>&lt;p&gt;&lt;a href="http://prntscr.com/hn68jh"&gt;http://prntscr.com/hn68jh&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Keil gave an error&lt;/p&gt;
&lt;p&gt;main.c(60): error:  #5: cannot open source input file &amp;quot;nrf_sdh.h&amp;quot;: No such file or directory&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Board is not defined</title><link>https://devzone.nordicsemi.com/thread/111765?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2017 22:34:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11bd0ef4-6398-454b-8a01-220879c0205e</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;You should use &lt;code&gt;BOARD_PCA10040&lt;/code&gt;. This should have already been added as a define in the Keil project under &amp;quot;Options for target&amp;quot; -&amp;gt; &amp;quot;C/C++&amp;quot; tab, under &amp;quot;Preprocessor Symbols&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Board is not defined</title><link>https://devzone.nordicsemi.com/thread/111764?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2017 21:49:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec6d1c76-38fe-434b-a0b6-b9e149cce8ab</guid><dc:creator>masta</dc:creator><description>&lt;p&gt;Thanks, and what board should I choose?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Board is not defined</title><link>https://devzone.nordicsemi.com/thread/111762?ContentTypeID=1</link><pubDate>Wed, 13 Dec 2017 10:10:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:045d07ce-9a51-476a-8dca-dfaec7ca5a52</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;As of SDK 11.0.0 the CMSIS pack system is &lt;strong&gt;deprecated&lt;/strong&gt;. The reason is explained in this blog: &lt;a href="https://devzone.nordicsemi.com/blogs/880/deprecating-support-for-cmsis-pack-in-nrf5-sdk/"&gt;Deprecating support for CMSIS Pack in nRF5 SDK&lt;/a&gt;. The SDK is now delivered as a .zip archive. The latest SDK version for the nRF52-series is SDK 14.2. Please update to this version. You can download this SDK from &lt;a href="https://www.nordicsemi.com/eng/nordic/Products/nRF5-SDK/nRF5-SDK-zip/59011"&gt;this link&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can find the source code and the project file of the ble_app_uart example in the following folder: &lt;code&gt;&amp;lt;SDK_14_2_InstallFolder&amp;gt;\examples\ble_peripheral\ble_app_uart&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The old nRF6310 motherboard was designed to be used with the nRF51 series. If you are using the nRF52832, you should not use the nRF6310.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>