<?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>Error building battery sample of nrfconnect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107296/error-building-battery-sample-of-nrfconnect</link><description>I am new to nRFconnect sdk, and wanted to read battery level through internal adc of nRF52832 for that purpose i have found a sample of nRF connect nrf Sample , while building this sample i get the following fatal error, by seeing the terminal its seems</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Jan 2024 12:59:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107296/error-building-battery-sample-of-nrfconnect" /><item><title>RE: Error building battery sample of nrfconnect</title><link>https://devzone.nordicsemi.com/thread/463751?ContentTypeID=1</link><pubDate>Thu, 11 Jan 2024 12:59:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45deba7f-7f97-455d-ad17-6c5584fa21c7</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;You need to follow the build instructions given for boards that don&amp;#39;t have it all pre configured.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1704977889816v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you try to build for the Thingy52 it will work with no changes.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;For the nRF52DK you need to add some lines to the dts.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Adding&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="ui-code" data-mode="text"&gt;/ {
&amp;#160; &amp;#160; zephyr,user {
&amp;#160; &amp;#160; &amp;#160; &amp;#160;io-channels = &amp;lt;&amp;amp;adc 4&amp;gt;;
&amp;#160; &amp;#160; };
&amp;#160;};&lt;/pre&gt;
&lt;div&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;to the dts file should fix the issue.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Rgards,&lt;br /&gt;Jonathan&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>