<?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>Device must be defined</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76011/device-must-be-defined</link><description>Hi everyone! I want to build an example code blinky_pca10028 by using microcontroller nRF51822_XXAA but I have some problems. I downloaded all package for it and opened an example. You can see it on the picture below 
 
 Unfortunately, when I try to build</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Jun 2021 12:47:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76011/device-must-be-defined" /><item><title>RE: Device must be defined</title><link>https://devzone.nordicsemi.com/thread/313675?ContentTypeID=1</link><pubDate>Fri, 04 Jun 2021 12:47:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bed6d618-fffc-4f66-8460-379cf3046924</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;From what I can see in the screenshots, it seems like you&amp;#39;ve removed quite a few include paths from the original example projects, which is likely the reason you&amp;#39;re not able to build it. I would suggest, like &lt;a href="https://devzone.nordicsemi.com/members/awneil"&gt;awneil&lt;/a&gt; implies, that you try building an unmodified SDK example first, as it should build successfully as-is.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device must be defined</title><link>https://devzone.nordicsemi.com/thread/313634?ContentTypeID=1</link><pubDate>Fri, 04 Jun 2021 11:39:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e556633a-e682-45b6-b1c4-04eebd698d67</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;It&amp;#39;s a lot easier if you post code &amp;amp; messages as text - rather than pictures.&lt;/p&gt;
&lt;p&gt;You can see that the &lt;strong&gt;#error&lt;/strong&gt; is at the end of a series of&amp;nbsp; &lt;strong&gt;#if&lt;/strong&gt;&amp;nbsp; directives - so one of those conditions should have been true.&lt;/p&gt;
&lt;p&gt;Presumably, you want &lt;strong&gt;NRF51&lt;/strong&gt; ?&lt;/p&gt;
[quote userid="105010" url="~/f/nordic-q-a/76011/device-must-be-defined"] I want to build an example code blinky_pca10028&amp;nbsp;[/quote]
&lt;p&gt;where, exactly, are you getting that example from? Have you modified it?&lt;/p&gt;
&lt;p&gt;SDK examples should just build as-is&lt;/p&gt;
&lt;p&gt;Note that nRF51 are not recommended for new BLE designs:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/13244/is-nrf52-recommended-over-nrf51-for-new-development/187456#187456"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/13244/is-nrf52-recommended-over-nrf51-for-new-development/187456#187456&lt;/a&gt;&amp;nbsp;- and that&amp;#39;s over 2 years old.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7178._5F00_Insert-Code-_2D00_-Nordic-2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>