<?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>VSCode: Feedback/issues with developing an out-of-tree driver</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98142/vscode-feedback-issues-with-developing-an-out-of-tree-driver</link><description>I&amp;#39;m writing an out of tree modem cell modem driver and have some feedback that could help in making this endeavour smoother in the nRF Connect VSCode Environment 
 I have got to the point where the driver is compiling, is recognised by devicetree/Kconfig</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 May 2023 20:46:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98142/vscode-feedback-issues-with-developing-an-out-of-tree-driver" /><item><title>RE: VSCode: Feedback/issues with developing an out-of-tree driver</title><link>https://devzone.nordicsemi.com/thread/423396?ContentTypeID=1</link><pubDate>Tue, 02 May 2023 20:46:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2b97254-42a4-46a9-94ac-0e8a2f3e1616</guid><dc:creator>crzyrndm</dc:creator><description>&lt;p&gt;New ticket here &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/99307/high-idle-cpu-usage-with-vscode-and-more-streamline-vscode-actions"&gt;devzone.nordicsemi.com/.../high-idle-cpu-usage-with-vscode-and-more-streamline-vscode-actions&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: VSCode: Feedback/issues with developing an out-of-tree driver</title><link>https://devzone.nordicsemi.com/thread/423287?ContentTypeID=1</link><pubDate>Tue, 02 May 2023 12:22:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7054bd0-830e-4c9b-a6a3-e6ec05278ed1</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi! Thanks for confirming that the issue is resolved. I have forwarded the feature request to improve &amp;quot;Actions&amp;quot; buttons.&lt;br /&gt;&lt;br /&gt;As the CPU idle time is not related to the out-of-tree driver. Could you please open a new ticket with your issue to keep this ticket on topic?&lt;br /&gt;&lt;br /&gt;Thanks!&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: VSCode: Feedback/issues with developing an out-of-tree driver</title><link>https://devzone.nordicsemi.com/thread/423150?ContentTypeID=1</link><pubDate>Mon, 01 May 2023 21:26:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be0fbd98-a28b-458b-b5d8-0b56c0010f58</guid><dc:creator>crzyrndm</dc:creator><description>&lt;p&gt;Can confirm that the issues mentioned previously now appear to be resolved&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Out of tree driver is now not showing random errors on includes&lt;/li&gt;
&lt;li&gt;mbedtls source is correctly highlighted&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The next major issue on my list would be the idle CPU usage and general lack of responsiveness of the extension&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/55478.Capture.PNG" /&gt;&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/0247.Capture1.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;The above was captured after ~5 minutes of no code changes (project has been open for a long time) on an i7-12700. I&amp;#39;m also seeing noticable lag in the on-hover tooltips (lots of &amp;quot;Loading...&amp;quot; before displaying the content)&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/8664.Capture3.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;^^ Is taken from the C/C++ log view (log level turned to Debug). This is occurring with no files currently open and never seems to complete&lt;/p&gt;
&lt;p&gt;Speaking of inconveniences, Actions has a few edges that could be smoother&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/8508.Capture2.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;It would be good to be able to configure a few defaults for the actions buttons&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&amp;quot;Erase and Flash&amp;quot; is *much* faster than the default &amp;quot;Flash&amp;quot; action and I generally do not need to use the slower option. Would be great to be able to swap the default here
&lt;ul&gt;
&lt;li&gt;Also would like to use this for &amp;quot;Debug&amp;quot; as well&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&amp;quot;Flash&amp;quot; action does a build first, &amp;quot;Debug&amp;quot; doesn&amp;#39;t. While I do get the reasoning to allow this, making it the default is frustrating. An easy way to change this default would be greatly appreciated
&lt;ul&gt;
&lt;li&gt;There is the &amp;quot;preLaunch&amp;quot; launch config option, but a) not sure how to refer to the build action and b) it hardcodes the build folder and again not sure how to get around that&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: VSCode: Feedback/issues with developing an out-of-tree driver</title><link>https://devzone.nordicsemi.com/thread/419768?ContentTypeID=1</link><pubDate>Tue, 11 Apr 2023 14:11:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90a5ed5c-06fb-48d7-8197-16cdd406e759</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Thanks for reporting. The VS code team have the following answer to this:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div&gt;
&lt;blockquote&gt;
&lt;div&gt;That&amp;#39;s a proper bug in the extension - actually, it&amp;#39;s two:&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;On Windows, the TF-M build system appears to be writing source files with a capital letter for the drive in the source file path (&lt;code&gt;C:\&lt;/code&gt;), but the Microsoft C++ extension converts all drive letters to lower case. Windows paths are case insensitive, but our source file lookup wasn&amp;#39;t, so we ended up using the includes for the wrong file in TF-M on Windows.&lt;/li&gt;
&lt;li&gt;MBED uses &lt;code&gt;#include MBEDTLS_CONFIG_FILE&lt;/code&gt; to link in the configuration, but cmake inserts an extra escape character before the quotes in defines, which we don&amp;#39;t properly un-escape. This breaks this include statement, and defines like &lt;code&gt;MBEDTLS_SSL_CLI_C&lt;/code&gt; are lost.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;Both issues will be fixed in the next release, which is scheduled for the end of next week. I believe the NRFX_CHECK define issue is a different problem originating from the Microsoft C++ extension, similar to &lt;a title="https://github.com/microsoft/vscode-cpptools/issues/3109" href="https://github.com/microsoft/vscode-cpptools/issues/3109" rel="noopener noreferrer" target="_blank"&gt;https://github.com/microsoft/vscode-cpptools/issues/3109&lt;/a&gt;. The go to definition call works just fine if I copy it out of the &lt;code&gt;NRFX_CHECK&lt;/code&gt; macro to the line above, so it&amp;#39;s being evaluated differently when passed to the macro, for some reason. I can&amp;#39;t seem to reproduce it in a reportable manner, but I&amp;#39;ll try to make an issue for the C++ extension all the same. It&amp;#39;ll likely take a bit longer before it&amp;#39;s fixed though.&lt;/div&gt;
&lt;/blockquote&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: VSCode: Feedback/issues with developing an out-of-tree driver</title><link>https://devzone.nordicsemi.com/thread/419453?ContentTypeID=1</link><pubDate>Sat, 08 Apr 2023 23:35:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6862798-b71e-4645-9a50-19f44617b637</guid><dc:creator>crzyrndm</dc:creator><description>&lt;p&gt;I think the C++ extension may be having issues with any Zephyr &amp;quot;module&amp;quot;, not just one added through ZEPHYR_EXTRA_MODULES or just include directories (also what I thought was a fix before didn&amp;#39;t continue working. I have no idea how I got it to work for a little while, but it&amp;#39;s definitely not the problem I initially thought it was)&lt;/p&gt;
&lt;p&gt;mbedtls is a very obvious example as all of it&amp;#39;s source files are wrapped in&lt;/p&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;" data-darkreader-inline-bgcolor="" data-darkreader-inline-color=""&gt;
&lt;div&gt;&lt;span style="color:#c586c0;" data-darkreader-inline-color=""&gt;#if&lt;/span&gt;&lt;span style="color:#569cd6;" data-darkreader-inline-color=""&gt; &lt;/span&gt;&lt;span style="color:#c586c0;" data-darkreader-inline-color=""&gt;defined&lt;/span&gt;&lt;span style="color:#569cd6;" data-darkreader-inline-color=""&gt;(MBEDTLS_FEATURE)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;" data-darkreader-inline-color=""&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;and no matter what the options are enabled, the code is always highlighted as&lt;br /&gt;if the option was not defined. Using ssl_cli.c as an example, opened by&lt;br /&gt;clicking on the file in the &amp;quot;nRF Connect SDK/modules/crypto/mbedtls/library&amp;quot;&lt;br /&gt;folder (note that the debugger has no issues stepping through these files)&lt;/div&gt;
&lt;div&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/28700.Capture.PNG" /&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/1803.Capture2.PNG" /&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;files under &amp;quot;zephyr&amp;quot;, &amp;quot;nrf&amp;quot;, and &amp;quot;nrfxlib&amp;quot; seem to work fine, it&amp;#39;s just&lt;br /&gt;modules that are sketchy (including hal/nordic/nrfx)&lt;/div&gt;
&lt;div&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/2474.Capture3.PNG" /&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/5826.Capture4.PNG" /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: VSCode: Feedback/issues with developing an out-of-tree driver</title><link>https://devzone.nordicsemi.com/thread/418006?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2023 07:10:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:055af29c-c37d-49d4-b5b3-3e4e83340252</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello, our VS Code teams appreciates the feedback and provide the following feedback:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div&gt;
&lt;blockquote&gt;
&lt;div&gt;As they point out, the DeviceTree issue comes from the usage of ZEPHYR_EXTRA_MODULES. We&amp;#39;re not currently including that in the search path for devicetree (and some other parts), but we should be.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;The suggestion about driver configuration files is something we hadn&amp;#39;t considered or gotten feedback about before, but it makes a lot of sense. We have an upcoming task to clean up the input file section already, as it&amp;#39;s a bit messy. We&amp;#39;ll make sure to take this into consideration.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;The custom include paths issue is surprising, as I&amp;#39;d expect the C++ extension to be able to pull this out of cmake. I&amp;#39;ll go through it and see if there&amp;#39;s anything that&amp;#39;s not working as intended there. It&amp;#39;d be interesting to know whether their build directory contains a compileCommands.json file. If they built their app with the extension, it should, but if it was build manually, it might be missing. Without it, we make a best effort guess at the compilation flags, and I&amp;#39;m not sure we&amp;#39;d be able to pick up things like this in that case.&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div&gt;
&lt;blockquote&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;The CMake extension was marked as a conflict pretty early on, as it had some fundamental compatiblity issues with Zephyr, as discussed in this issue in their extension repo: &lt;a title="https://github.com/microsoft/vscode-cmake-tools/issues/915" href="https://github.com/microsoft/vscode-cmake-tools/issues/915" rel="noopener noreferrer" target="_blank"&gt;https://github.com/microsoft/vscode-cmake-tools/issues/915&lt;/a&gt; (also see issue #1120 and #1374). They released a version that attempts to solve these issues in January though (v1.13.40), and we plan to do a re-evaluation of this conflict, as it&amp;#39;s a pretty useful extension&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Øyvind&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: VSCode: Feedback/issues with developing an out-of-tree driver</title><link>https://devzone.nordicsemi.com/thread/417613?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2023 09:28:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c05d540d-6850-4cb9-8c56-f148dc35d7bd</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Thanks for providing this feedback. I will forward it to our VS Code extension team and get back to you.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>