<?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>Zbus problems with using the nRF Connect for VS Code add-in</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105014/zbus-problems-with-using-the-nrf-connect-for-vs-code-add-in</link><description>I am getting a few errors using the nRF Connect for VS Code add-in when trying to use ZBUS. I assume this is because I am not using the latest version of Zephyr. Is there a way to upgrade the version of Zephyr being used? 
 
 Trying to move the observer</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Nov 2023 10:13:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105014/zbus-problems-with-using-the-nrf-connect-for-vs-code-add-in" /><item><title>RE: Zbus problems with using the nRF Connect for VS Code add-in</title><link>https://devzone.nordicsemi.com/thread/453924?ContentTypeID=1</link><pubDate>Fri, 03 Nov 2023 10:13:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04b6abc2-895f-4899-90f8-792f31a08451</guid><dc:creator>lcj</dc:creator><description>&lt;p&gt;Yes. The&amp;nbsp;&lt;span&gt;&amp;quot;too few arguments in invocation of macro&amp;quot; when using&amp;nbsp;&lt;/span&gt;&lt;span&gt;ZBUS_OBSERVERS_EMPTY&amp;nbsp;&lt;/span&gt;continues but doesn&amp;#39;t prevent me from building and running. This happens in the sample as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zbus problems with using the nRF Connect for VS Code add-in</title><link>https://devzone.nordicsemi.com/thread/453896?ContentTypeID=1</link><pubDate>Fri, 03 Nov 2023 08:36:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef011309-f787-4c10-9ce7-e1350a33c15b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Great. Thanks for the info. I assume the issue is now resolved ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zbus problems with using the nRF Connect for VS Code add-in</title><link>https://devzone.nordicsemi.com/thread/453817?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2023 16:15:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab062927-0856-4bdb-8592-9b6a10f8ae36</guid><dc:creator>lcj</dc:creator><description>&lt;p&gt;Added this to the prj.conf and it compiled:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_ZBUS_RUNTIME_OBSERVERS_POOL_SIZE&lt;/span&gt;&lt;span&gt;=2&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zbus problems with using the nRF Connect for VS Code add-in</title><link>https://devzone.nordicsemi.com/thread/453802?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2023 15:19:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3c4358a-2606-4d73-9ba7-914170867ece</guid><dc:creator>lcj</dc:creator><description>&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/pastedimage1698937903043v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I do get a&amp;nbsp;ZBUS_CHAN_DESIGN I get a &amp;quot;too few arguments in invocation of macro&amp;quot;, but adding the ZBUS_OBS_DECLARE gets me through this challenge, so it does not appear to be an issue from an upgrading Zephyr standpoint...maybe only intellisense.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;My error in the other project is &amp;quot;undefined reference to `zbus_chan_add_obs&amp;#39;&amp;quot; which is why I thought there was a problem with the Zephry version, but the sample seems to take it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is my code (edited to simplify):&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;void screen_watchface_add_obs() {

    zbus_chan_add_obs(&amp;amp;clock_second_chan, &amp;amp;screen_watchface_clock_second_listener, K_MSEC(100));

}&lt;/pre&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zbus problems with using the nRF Connect for VS Code add-in</title><link>https://devzone.nordicsemi.com/thread/453793?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2023 14:57:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbc39dcd-d6fd-402b-b85d-73a0de634755</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Leo,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you tell what exact error you have ?&amp;nbsp;&lt;br /&gt;This worked for me:&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;ZBUS_OBS_DECLARE(consumer_sub);
ZBUS_CHAN_DEFINE(processed_data_chan, struct sensor_msg, NULL, NULL, ZBUS_OBSERVERS_EMPTY,
		 ZBUS_MSG_INIT(.x = 0, .y = 0, .z = 0));&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zbus problems with using the nRF Connect for VS Code add-in</title><link>https://devzone.nordicsemi.com/thread/453715?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2023 12:44:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa6d2777-2072-4e89-be0b-fc574eb59b4a</guid><dc:creator>lcj</dc:creator><description>&lt;p&gt;I have zbus running&amp;nbsp;and I did get the runtime_obs_registration sample working as well. But what if I want the observer to be EMPTY. I have seen examples of this, but can&amp;#39;t adapt the sample to conform.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This works:&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;ZBUS_CHAN_DEFINE(processed_data_chan, struct sensor_msg, NULL, NULL, ZBUS_OBSERVERS(consumer_sub),
ZBUS_MSG_INIT(.x = 0, .y = 0, .z = 0));&lt;/pre&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;This gets an error:&lt;br /&gt;
&lt;div&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;ZBUS_CHAN_DEFINE(processed_data_chan, struct sensor_msg, NULL, NULL, ZBUS_OBSERVERS_EMPTY,
ZBUS_MSG_INIT(.x = 0, .y = 0, .z = 0));&lt;/pre&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;Which is similar to what I want to do so that a given service needs to know about the channel but the channel does not need to be defined with the service.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zbus problems with using the nRF Connect for VS Code add-in</title><link>https://devzone.nordicsemi.com/thread/452784?ContentTypeID=1</link><pubDate>Fri, 27 Oct 2023 12:43:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fdffad1-0ab2-419a-b0a2-74e217b4fdce</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Leo,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The&amp;nbsp;west.yml I was looking at was in nrf folder.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Could you try testing on our SDK v2.4.2 with no modification ? (which use Zephyr 3.3.99) ?&amp;nbsp;&lt;br /&gt;I did a quick test here and had no problem with the runtime_obs_registration example.&amp;nbsp;&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/pastedimage1698410701146v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Have you managed to run the&amp;nbsp;\zephyr\samples\subsys\zbus\hello_world ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zbus problems with using the nRF Connect for VS Code add-in</title><link>https://devzone.nordicsemi.com/thread/452752?ContentTypeID=1</link><pubDate>Fri, 27 Oct 2023 10:17:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb1158ef-8fd6-4f03-be54-8eb81f5fbf1d</guid><dc:creator>lcj</dc:creator><description>&lt;p&gt;I have nRF Connect version 2.4.2 and know how to update it. I have multiple west.yml files, which one? It looks like you have Zephyr 3.3.99-ncls-1. It looks like the latest version of &lt;a href="https://docs.zephyrproject.org/latest/index.html"&gt;Zephyr is 3.5.99&lt;/a&gt;&amp;nbsp;but nRF Connect uses a different version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zbus problems with using the nRF Connect for VS Code add-in</title><link>https://devzone.nordicsemi.com/thread/452431?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 07:45:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2c808f2-7f5a-4f04-98a4-b464d0e76907</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;How did you install NRF Connect SDK ?&amp;nbsp;&lt;br /&gt;If you have updated nRF Connect for VSCode to latest version (2023.10.49) you can install new nRF Connect SDK inside nRF Connect for VS Code.&amp;nbsp;&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/pastedimage1698306225992v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Otherwise you can use west command line tool to update. See here:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/installation/updating.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/installation/updating.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can find your zephyr version by looking at the nrf\west.yml.&amp;nbsp;&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/pastedimage1698306309886v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zbus problems with using the nRF Connect for VS Code add-in</title><link>https://devzone.nordicsemi.com/thread/452393?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2023 01:28:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16492569-26f7-4bac-b8cb-44467bc660cc</guid><dc:creator>lcj</dc:creator><description>&lt;p&gt;How do I find my Zephyr version? Is there a way to upgrade my Zephyr version through nRF connect for vs code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zbus problems with using the nRF Connect for VS Code add-in</title><link>https://devzone.nordicsemi.com/thread/452242?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2023 11:32:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d7dd48d-8afe-4acc-b5ac-24fbc693f45d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Leo,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please state which Zephyr/NCS version you are using.&amp;nbsp;&lt;br /&gt;ZBUS is only supported in Zephyr lately so there is a chance that your version doesn&amp;#39;t have it supported.&amp;nbsp;&lt;br /&gt;Also, my suggestion is to also ask the question in Zephyr Discord channel that you may have better support:&amp;nbsp;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/88929/one-to-many-event-handling-for-zephyr-with-data-transfer/396089"&gt;RE: One-to-many event handling for Zephyr with data transfer?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>