<?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>how to protocol buffers with ncs</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111556/how-to-protocol-buffers-with-ncs</link><description>hello Nordic 
 we are working with nrf52832 and nrf52840 running with ncs v2.5.0 (waiting for v2.7.0 cause 2.6.0 have some issues with cmsis fft tables that prevent us from upgrading) 
 anyway, 
 we are saving some data to external flash using little</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Jun 2024 12:32:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111556/how-to-protocol-buffers-with-ncs" /><item><title>RE: how to protocol buffers with ncs</title><link>https://devzone.nordicsemi.com/thread/487723?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 12:32:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4218d368-0498-4884-bd22-d7f51a3b9ec2</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry, I couldn&amp;#39;t provide much help on this issue. I hope Zephyr Discord will provide you with some good references.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to protocol buffers with ncs</title><link>https://devzone.nordicsemi.com/thread/487617?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 06:35:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf641a4a-47a7-4237-abc1-9c1c155ae5b6</guid><dc:creator>ziv123</dc:creator><description>&lt;p&gt;that was not very helpful unfortunately&lt;/p&gt;
&lt;p&gt;you can close this thread, i don&amp;#39;t think i can mark &amp;quot;verify Answer&amp;quot; on that&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to protocol buffers with ncs</title><link>https://devzone.nordicsemi.com/thread/487515?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 12:30:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d4f16a7-089a-4d59-afdf-6961e912f64f</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I guess this is a much better query for&lt;a href="https://discord.com/invite/zephyr-888818750588092488"&gt; Zephyr Discord&lt;/a&gt;. We don&amp;#39;t have much documentation or guidance for the protocol buffer. The sample I shared was also from Zephyr.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to protocol buffers with ncs</title><link>https://devzone.nordicsemi.com/thread/487302?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2024 11:57:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb13eb84-617d-4c2e-bd3e-8caefd933bd5</guid><dc:creator>ziv123</dc:creator><description>&lt;p&gt;Hey&lt;/p&gt;
&lt;p&gt;so i managed to solve the compilation issue with the addition of this :&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;zephyr_include_directories(${CMAKE_CURRENT_BINARY_DIR})
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;i look at the example and it is very simple case , is there some guide or example how to work with a .proto buf which has several messages with fields and messages as fields of some other messages&amp;nbsp; ?&lt;/p&gt;
&lt;p&gt;and with streaming of the encoded protobuf in chunks since we can not have all the data of the protobuf available on RAM&amp;nbsp; ?&lt;/p&gt;
&lt;p&gt;hope you can help with some guidance here&amp;nbsp;&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Ziv&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to protocol buffers with ncs</title><link>https://devzone.nordicsemi.com/thread/486988?ContentTypeID=1</link><pubDate>Sun, 02 Jun 2024 08:19:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04b87dc3-93c4-4449-98b4-3c3fe3325667</guid><dc:creator>ziv123</dc:creator><description>&lt;p&gt;Hi Menon&lt;/p&gt;
&lt;p&gt;tried to follow the sample but i get this error when i build:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CMakeFiles/app.dir/src/sample.pb.c.obj -MF CMakeFiles/app.dir/src/sample.pb.c.obj.d -o CMakeFiles/app.dir/src/sample.pb.c.obj -c src/sample.pb.c
src/sample.pb.c:4:10: fatal error: src/sample.pb.h: No such file or directory
    4 | #include &amp;quot;src/sample.pb.h&amp;quot;
      |          ^~~~~~~~~~~~~~~~~&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;i added my .proto file same level as main.c, under my_app/src/ .. my cmake addition:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;...
set(NANOPB_OPTIONS &amp;quot;-I${CMAKE_SOURCE_DIR}&amp;quot;)
nanopb_generate_cpp(proto_sources proto_headers RELPATH .
    src/sample.proto
)
...
target_sources(app PRIVATE ${proto_sources} ${app_sources})
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;the files are generated in the /build/src dir, and both of them are there (the .c file is generated with include path src/sample.pb.h, though the .h file is in the same&amp;nbsp;dir&amp;nbsp;the .c file is so i don&amp;#39;t know if that is not the issue, but it is self generated) so i don&amp;#39;t understand why i get this error.&lt;/p&gt;
&lt;p&gt;also i wonder if it will be&amp;nbsp;an issue cause we are using the same code base for several boards with different builds and we do not want to have different include path in the code for each board.. any idea how to manage that ?&lt;/p&gt;
&lt;p&gt;hope to read from you soon&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Ziv&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to protocol buffers with ncs</title><link>https://devzone.nordicsemi.com/thread/486149?ContentTypeID=1</link><pubDate>Tue, 28 May 2024 11:06:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5675e7b-bc38-43ed-8465-f419137ef49d</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;span dir="ltr"&gt;In the NRF Connect SDK, there is a simple protocol buffer sample using Nanopb for serialising structured data to platform-independent raw buffers. See &lt;a title="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/modules/nanopb/readme.html#overview" href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/samples/modules/nanopb/README.html#overview" rel="noopener noreferrer" target="_blank"&gt;the Nanopb sample&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>