<?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>Unable to compile the battery example in nrf connect SDK V2.0.0 for nrf5340 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91030/unable-to-compile-the-battery-example-in-nrf-connect-sdk-v2-0-0-for-nrf5340-dk</link><description>Hi, 
 I want to continuously measure the battery voltage of the LiPo battery connected to the nRF5340 DK. For this purpose I tried to compile the battery example available inside the directory &amp;quot;samples\boards\nrf&amp;quot;. However, I am getting errors during</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Feb 2023 14:00:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91030/unable-to-compile-the-battery-example-in-nrf-connect-sdk-v2-0-0-for-nrf5340-dk" /><item><title>RE: Unable to compile the battery example in nrf connect SDK V2.0.0 for nrf5340 DK</title><link>https://devzone.nordicsemi.com/thread/408586?ContentTypeID=1</link><pubDate>Tue, 07 Feb 2023 14:00:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81722826-740e-4876-8a1c-603d01f9260d</guid><dc:creator>BehicMV</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you done it, can you help me in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/96407/cant-build-zephyr-battery-example"&gt;this ticket&lt;/a&gt;&amp;nbsp;?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to compile the battery example in nrf connect SDK V2.0.0 for nrf5340 DK</title><link>https://devzone.nordicsemi.com/thread/382019?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2022 11:57:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f59b3981-2e2c-4c4b-aaeb-e8f6bbfd3e71</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I have tested the sample and I was able to reproduce the issue. The issue is related to the board&amp;#39;s devicetree configuration.&lt;br /&gt;&lt;br /&gt;The battery measurement sample is made for thingy52_nrf52832 board. This sample is not expected to work on nRF5340 out of the box. Therefore, some changes are required. As described in the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/boards/nrf/battery/README.html"&gt;battery voltage measurement&lt;/a&gt;, you would need to add VBATT node to your device tree configuration in nrf5340dk_nrf5340_cpunet.dts. &lt;br /&gt;There are several analog inputs as described in &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf5340%2Fsaadc.html&amp;amp;cp=3_0_0_6_28"&gt;SAADC&lt;/a&gt;. In the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/hardware/peripherals/adc.html"&gt;ADC reference API&lt;/a&gt;, you can see how to use analog inputs AIN06 and AIN07. You can also use VDDH/5 as input with &lt;span&gt; &lt;/span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;NRF_SAADC_INPUT_VDDHDIV5&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;. In addition, ensure that your power source switch is switched to Li-Po on the board.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to compile the battery example in nrf connect SDK V2.0.0 for nrf5340 DK</title><link>https://devzone.nordicsemi.com/thread/381873?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2022 03:30:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6dc813b-50f6-4e83-a73f-e4f8befe71ae</guid><dc:creator>ShuMan</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please find the attached log for the reference.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2514.battery_5F00_sampling_5F00_terminal_5F00_log.txt"&gt;devzone.nordicsemi.com/.../2514.battery_5F00_sampling_5F00_terminal_5F00_log.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to compile the battery example in nrf connect SDK V2.0.0 for nrf5340 DK</title><link>https://devzone.nordicsemi.com/thread/381798?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2022 13:24:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba75146a-dc86-45bc-b325-4a0cbfa7faf3</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Could you please show the terminal output log that shows compilation errors?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>