<?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>NCS sample peripheral_power_profiling gives build warning</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93597/ncs-sample-peripheral_power_profiling-gives-build-warning</link><description>Using NCS SDK v2.1.0 
 Example Project: nrf/samples/bluetooth/peripheral_power_profiling 
 Building the example project gives build warnings: 
 
 Could you help me understand the second warning and how to fix it. 
 I am new to the nRF Connect SDK so I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Dec 2022 14:34:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93597/ncs-sample-peripheral_power_profiling-gives-build-warning" /><item><title>RE: NCS sample peripheral_power_profiling gives build warning</title><link>https://devzone.nordicsemi.com/thread/399740?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2022 14:34:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7028e384-2adb-4dba-a000-c72d1f579a0a</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Michael,&lt;br /&gt;&lt;br /&gt;Can you check if nRF Kconfig extension 2022.11.50 solves your issue?&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><item><title>RE: NCS sample peripheral_power_profiling gives build warning</title><link>https://devzone.nordicsemi.com/thread/398262?ContentTypeID=1</link><pubDate>Wed, 30 Nov 2022 09:12:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d852ae3d-f2f7-43ef-a7b2-9b3fc554c729</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Michael,&lt;br /&gt;&lt;br /&gt;I have provided your observation to the team internally. I&amp;#39;ll get back to you when I get new information related to this issue.&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><item><title>RE: NCS sample peripheral_power_profiling gives build warning</title><link>https://devzone.nordicsemi.com/thread/397943?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2022 16:03:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e1fbd24-b2d4-4baf-b28b-cd04110bfb24</guid><dc:creator>mchartier</dc:creator><description>&lt;p&gt;Just another observation about the problems tab. I&amp;#39;m adding here as it may help the developer sort out the problem.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am adding new source files to my /src/ folder but I have not yet added these files to my CmakeLists.txt file yet. The build completes without errors, however the problems tab is showing errors from the new source files which are not yet part of the build. Feature? or Bug?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2022_2D00_11_2D00_28-at-10.00.17-AM.png" /&gt;&lt;/p&gt;
&lt;p&gt;By the way I just upgraded to the November release of nRF Connect for VS Code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS sample peripheral_power_profiling gives build warning</title><link>https://devzone.nordicsemi.com/thread/395382?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2022 15:42:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20c3c9c5-6b96-4ae5-81f7-39165bac6a91</guid><dc:creator>mchartier</dc:creator><description>&lt;p&gt;For now I think the best option is to disable (or ignore) the Problems tab in my workspace. Then for each build I need to view the full build output and manually search for build warnings and errors. For each warning I use the mouse to select the full path to the source file and then use File--&amp;gt;Open to open that file. Then search for the line with the warning/error. This is the only alternative I am aware of. Development will be slower.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS sample peripheral_power_profiling gives build warning</title><link>https://devzone.nordicsemi.com/thread/395315?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2022 12:40:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ea21a03-7197-4cdc-9889-0652d75fa024</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Michael,&lt;/p&gt;
&lt;p&gt;I have reported the issue internally. For now, you can ignore the warning from the Problems tab. As long as you are able to successfully build your application, the warning from Problems tab should not impede your application development.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS sample peripheral_power_profiling gives build warning</title><link>https://devzone.nordicsemi.com/thread/395180?ContentTypeID=1</link><pubDate>Thu, 10 Nov 2022 16:37:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcd6e645-63e3-43ae-aceb-6c07a7e32ce4</guid><dc:creator>mchartier</dc:creator><description>&lt;p&gt;Here is another example to show how the data in the Problems tab is stale. See the screenshot below. In a previous build there was a genuine warning message about &amp;quot;notify_timeout&amp;quot;. That issue is now resolved and a new build was run. However the Problems tab still says there is a warning on line 29. When I examine line 29 you can see the the editor is highlighting the wrong symbol (BT_LE_AD_GENERAL) &amp;nbsp;&lt;/p&gt;
&lt;p&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/Screenshot-2022_2D00_11_2D00_10-at-10.32.19-AM.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS sample peripheral_power_profiling gives build warning</title><link>https://devzone.nordicsemi.com/thread/395173?ContentTypeID=1</link><pubDate>Thu, 10 Nov 2022 15:56:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f24e269b-dda0-41cf-8be8-1e988e9ea654</guid><dc:creator>mchartier</dc:creator><description>&lt;p&gt;I just added&amp;nbsp;&lt;span&gt;CONFIG_BT_L2CAP_TX_MTU&lt;/span&gt;&lt;span&gt;=65 to prj.conf and ran&amp;nbsp;pristine&amp;nbsp;build. Same result.&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2022_2D00_11_2D00_10-at-9.53.11-AM.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS sample peripheral_power_profiling gives build warning</title><link>https://devzone.nordicsemi.com/thread/395168?ContentTypeID=1</link><pubDate>Thu, 10 Nov 2022 15:43:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a86b0e76-d4d4-4303-b9d6-acdaf3819103</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Michael,&lt;br /&gt;&lt;br /&gt;Can you try adding&amp;nbsp;&lt;span&gt;CONFIG_BT_L2CAP_TX_MTU&lt;/span&gt;&lt;span&gt;=65 to your prj.conf before building?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS sample peripheral_power_profiling gives build warning</title><link>https://devzone.nordicsemi.com/thread/394987?ContentTypeID=1</link><pubDate>Wed, 09 Nov 2022 17:51:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9783eba3-2422-4199-b5a8-5df63c0c9d0a</guid><dc:creator>mchartier</dc:creator><description>&lt;p&gt;Reinstalling VS Code did not solve the problem. Further testing shows the same issue with each workspace I create. Basically the items in the &amp;#39;Problems&amp;#39; tab never go away. As you can image this makes it very difficult to write code and compile with VS Code.&lt;/p&gt;
&lt;p&gt;To dupe the problem you would need to first change the code so it will generate build errors/warnings. Then fix the code and build again. The Problems tab should clear when you run the 2nd build but in my case it does not.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Microsoft reported this on their GitHub forum page for VS Code:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Problems view gets updated automatically when an error is added/removed/updated. In your case, it means the corresponding extension is not updating. So please file issue against the extension.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;You can find similar issues by searching for &amp;quot;vs code problems refresh&amp;quot;. Here is the page where I found the comment from Microsoft:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://github.com/microsoft/vscode/issues/111443"&gt;https://github.com/microsoft/vscode/issues/111443&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://github.com/microsoft/vscode/issues/111443"&gt;&lt;/a&gt;&lt;em&gt;&lt;/em&gt;Note I am building on M1 Mac with the latest version of VS code and nRF Connect plugin:&amp;nbsp;&lt;span&gt;v2022.10.30&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks for looking into this.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS sample peripheral_power_profiling gives build warning</title><link>https://devzone.nordicsemi.com/thread/394601?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2022 08:45:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:572f2aa6-e5aa-4e85-9a49-88feb11573c0</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Michael,&lt;br /&gt;&lt;br /&gt;I used VS Code (v1.72.0) to build the sample and there was no warning related to&amp;nbsp;&lt;span&gt;BT_POWER_PROFILING_DATA_LENGTH. If you do not see this warning when you build the sample using command line, you could consider reinstalling VS Code.&lt;/span&gt;&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><item><title>RE: NCS sample peripheral_power_profiling gives build warning</title><link>https://devzone.nordicsemi.com/thread/394476?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2022 14:50:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3eceda2-16ee-48cb-84da-a293f4bc63b0</guid><dc:creator>mchartier</dc:creator><description>&lt;p&gt;I am using the same target board:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1667832461330v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;This is looking more like a bug with VS code. When I look at the build output I only see the one warning about ASSERT. The other warning about BT_POWER_PROFILING_DATA_LENGTH does not appear in the build output. I even created a fresh new project and I get the same build warning in the &amp;quot;Problems&amp;quot; tab in VS code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;is there some way to clear this out? Or do I need to reinstall VS code?&lt;/p&gt;
&lt;p&gt;Note that I created new build configurations and tried different boards but always get the same &amp;#39;phantom&amp;#39; build warning.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS sample peripheral_power_profiling gives build warning</title><link>https://devzone.nordicsemi.com/thread/394451?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2022 13:54:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7248f00-0554-4e09-b94c-e6c2fdc9ca8b</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi Michael,&lt;br /&gt;&lt;br /&gt;As you can see from .config file located in the your_application_folder\build\zephyr, the value of BT_L2CAP_TX_MTU is set to 65, i.e.&amp;nbsp;&lt;span&gt;CONFIG_BT_L2CAP_TX_MTU&lt;/span&gt;&lt;span&gt;=65. You get this value because&amp;nbsp;&lt;/span&gt;&lt;span&gt;CONFIG_BT_SMP is enabled in prj.conf. You can find all possible values for&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_BT_L2CAP_TX_MTU"&gt;CONFIG_BT_L2CAP_TX_MTU&lt;/a&gt;&amp;nbsp;in the KConfig documentation.&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;I have tested the peripheral power profiling sample using nRF52840dk_nrf52840 as the build target, but I could not reproduce your issue. In other words, I did not get the warning related to BT_POWER_PROFILING_DATA_LENGTH.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/peripheral_power_profiling/README.html"&gt;Peripheral power profiling&lt;/a&gt;&amp;nbsp;sample supports several build targets. Could you specify which build target did you use? Is there any difference when you use other build targets?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>