<?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 modify the Firmware Revision String</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117279/how-to-modify-the-firmware-revision-string</link><description>Hi, 
 This string is defined by &amp;quot;CONFIG_BT_DIS_FW_REV_STR&amp;quot;. Is there any API that can modify it? 
 Currently version management is done through VERSION files, but its display format is &amp;quot; 1.2.3+4&amp;quot;. 
 I want to change &amp;quot; CONFIG_BT_DIS_FW_REV_STR&amp;quot; to &amp;quot;1.23</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Jan 2025 02:40:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117279/how-to-modify-the-firmware-revision-string" /><item><title>RE: How to modify the Firmware Revision String</title><link>https://devzone.nordicsemi.com/thread/519909?ContentTypeID=1</link><pubDate>Fri, 24 Jan 2025 02:40:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39085bbd-1d46-49c8-beb5-b055d74ce5a0</guid><dc:creator>SunHuang</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your reply. I understand.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify the Firmware Revision String</title><link>https://devzone.nordicsemi.com/thread/519725?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2025 11:12:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8443c3a2-d30f-44b2-bd02-a708679f86f4</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Any other format that what is described in&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/zephyr/build/version/index.html"&gt;https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/zephyr/build/version/index.html&lt;/a&gt;&amp;nbsp;seems to not be possible due to how the header is defined. You can always modify it you&amp;#39;re not able to get it to show &amp;quot;1.0.2&amp;quot; with these options.&lt;/p&gt;
&lt;p&gt;Apologies for not being able to help you further than this.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify the Firmware Revision String</title><link>https://devzone.nordicsemi.com/thread/517388?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 07:36:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8624da0-16e6-4961-86a1-9bb4f36b667d</guid><dc:creator>SunHuang</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I want to get result like this:&lt;/p&gt;
&lt;p&gt;The &amp;quot;V1.0.2&amp;quot; will be displayed on &amp;quot;&lt;span&gt;Firmware Revision String&lt;/span&gt;&amp;quot;.&lt;/p&gt;
&lt;p&gt;No matter use &lt;span&gt;&amp;quot;tmodify the config during runtime&amp;quot; or &amp;quot;modify it as a string before building&amp;quot;&lt;/span&gt;&amp;nbsp;, only I need is to fulfill this&amp;nbsp; function.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;VERSION_MAJOR = 1
VERSION_MINOR = 0
PATCHLEVEL = 2
VERSION_TWEAK = 0
EXTRAVERSION =&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify the Firmware Revision String</title><link>https://devzone.nordicsemi.com/thread/517169?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2025 10:16:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e65fc593-c7bb-41c9-91b6-a7588ab93417</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Modifying the string during runtime is not supported since it is set during build as I suggested previously, but I&amp;#39;m not sure I understand what you&amp;#39;re aiming to do now.&lt;/p&gt;
&lt;p&gt;In the image you posted, you clearly see that you&amp;#39;ve included settings.h and are calling the function that is unreferenced. Where did you get this part from? Is it from another sample, is it present in the NCS v2.6.1 sample that you&amp;#39;re using or elsewhere?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify the Firmware Revision String</title><link>https://devzone.nordicsemi.com/thread/516281?ContentTypeID=1</link><pubDate>Fri, 27 Dec 2024 02:28:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:726aeca1-e2f5-4712-b727-8c0df345a71a</guid><dc:creator>SunHuang</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have configured&amp;nbsp;&amp;quot;CONFIG_SETTINGS_RUNTIME&amp;quot; and executed&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;quot;settings_runtime_set&amp;quot;&lt;/span&gt;, but &lt;span&gt;Firmware Revision String&lt;/span&gt; has not changed.&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Can you give me some suggestions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify the Firmware Revision String</title><link>https://devzone.nordicsemi.com/thread/516262?ContentTypeID=1</link><pubDate>Thu, 26 Dec 2024 06:01:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e682f09-2efe-4f09-b84a-3354acba6d8d</guid><dc:creator>SunHuang</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;My project does not contain this file(C:\ncs\v2.6.1\zephyr\subsys\settings\src\settings_runtime.c)&lt;/p&gt;
&lt;p&gt;How do I modify &amp;quot;CMakeLists.txt&amp;quot; to include this file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify the Firmware Revision String</title><link>https://devzone.nordicsemi.com/thread/515975?ContentTypeID=1</link><pubDate>Fri, 20 Dec 2024 15:25:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ace4800c-40cd-4ead-b1f8-94f893044653</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;From the picture I can&amp;#39;t state if you&amp;#39;ve declared it or not unfortunately. The only thing I can see is that settings_runtime_set() is a function you&amp;#39;ve written, (or rather, I assume so). If this is the case, the error is that&amp;nbsp; Sunion::AppTask::StartApp() function does not know that this function exists before you&amp;#39;re calling settings_runtime_set().&lt;/p&gt;
&lt;p&gt;You need to declare it before you call it. See &lt;a href="https://www.tutorialspoint.com/cplusplus/cpp_functions.htm"&gt;https://www.tutorialspoint.com/cplusplus/cpp_functions.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify the Firmware Revision String</title><link>https://devzone.nordicsemi.com/thread/515623?ContentTypeID=1</link><pubDate>Thu, 19 Dec 2024 02:09:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6df7a0a2-7735-4f52-8770-12c2d809ecde</guid><dc:creator>SunHuang</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I first tried to use &amp;quot;modify it as a string before building&amp;quot; and found that the displayed results were not as expected.&lt;/p&gt;
&lt;p&gt;So I go with the &lt;span&gt;&amp;quot;to modify the config during runtime&amp;quot;&lt;/span&gt; approach, which I think has been declared.&lt;br /&gt;Can you tell me where I made a mistake?&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/pastedimage1734573942764v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify the Firmware Revision String</title><link>https://devzone.nordicsemi.com/thread/515450?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2024 11:33:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95ba15bf-e62a-4c2e-9884-406f1be0c939</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;Thank you for clarifying! This configuration is set during build time. Where did you see that you can change this during run time?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regarding the build error you&amp;#39;re showing it seems to me that the function is not declared before you call it.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify the Firmware Revision String</title><link>https://devzone.nordicsemi.com/thread/515377?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2024 06:58:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c45316f-35a3-4faa-b576-d3cc93935ead</guid><dc:creator>SunHuang</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/111690/how-do-i-access-version-file-parameters-from-prj-conf"&gt;link&lt;/a&gt; is the same as my need.&lt;/p&gt;
&lt;p&gt;Because VERSION_MAJOR ang&amp;nbsp;VERSION_MINOR are numerical , setting it directly in Kconfig will get the result of v&amp;quot;space&amp;quot;.&amp;quot;space&amp;quot;&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/pastedimage1734503524843v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;So now I plan to use &amp;quot;&amp;quot;to modify the config during runtime&amp;quot;&amp;quot; to change the Firmware Revision String.&lt;/p&gt;
&lt;p&gt;But I can&amp;#39;t use this API.&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/pastedimage1734505045060v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify the Firmware Revision String</title><link>https://devzone.nordicsemi.com/thread/515292?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2024 14:31:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ed1a4dd-bbcf-4235-b0b5-d02a101550d2</guid><dc:creator>AHaug</dc:creator><description>[quote user="SunHuang"]So I hope to modify the content of &amp;quot;CONFIG_BT_DIS_FW_REV_STR&amp;quot; by writing a string.[/quote]
&lt;p&gt;Could you clarify if you mean &amp;quot;to modify the config during runtime&amp;quot; or to &amp;quot;modify it as a string before building&amp;quot;?&amp;nbsp;&lt;/p&gt;
[quote user="SunHuang"]Can you tell me what is the API to modify BLE GATT?[/quote]
&lt;p&gt;I&amp;#39;m not sure what you&amp;#39;re referring to, but here is the API for bt_gatt:&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/nrf-apis-latest/page/group_bt_gattp.html"&gt;https://docs.nordicsemi.com/bundle/nrf-apis-latest/page/group_bt_gattp.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify the Firmware Revision String</title><link>https://devzone.nordicsemi.com/thread/515046?ContentTypeID=1</link><pubDate>Mon, 16 Dec 2024 08:43:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1c705d1-f7d0-4d27-9b31-c7da87a6e7d1</guid><dc:creator>SunHuang</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;So I hope to modify the content of &amp;quot;CONFIG_BT_DIS_FW_REV_STR&amp;quot; by writing a string.&lt;/p&gt;
&lt;p&gt;Can you tell me what is the API to modify BLE GATT?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify the Firmware Revision String</title><link>https://devzone.nordicsemi.com/thread/515040?ContentTypeID=1</link><pubDate>Mon, 16 Dec 2024 08:30:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35b87d65-5878-47c2-b5c3-5bd9b1180251</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hmm, By omitting&amp;nbsp;&lt;code dir="ltr"&gt;PATCHLEVEL&lt;/code&gt;&lt;span&gt;,&amp;nbsp;&lt;/span&gt;&lt;code dir="ltr"&gt;VERSION_TWEAK&lt;/code&gt;&lt;span&gt;, and&amp;nbsp;&lt;/span&gt;&lt;code dir="ltr"&gt;EXTRAVERSION&lt;/code&gt;&lt;span&gt;&amp;nbsp;fields, you should observe the version format &amp;quot;major_version.minor_version&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But note that some uses of version number (for instance MCUboot or OTA updates), the version might be repsented internally as &amp;quot;&lt;/span&gt;&lt;span&gt;1.23.0+0&amp;quot; due to how MCUboot expects the versioning to be formatted. However, for display purposes and in many API calls, it will appear as &amp;quot;1.23&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Andreas&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify the Firmware Revision String</title><link>https://devzone.nordicsemi.com/thread/515005?ContentTypeID=1</link><pubDate>Mon, 16 Dec 2024 00:52:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf0462ae-1ece-4915-a3f8-6893cdf9846c</guid><dc:creator>SunHuang</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s format is not what I expected because its default format is &amp;quot;&lt;code&gt;0.0.0+0&amp;quot;.&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The format I want is &amp;quot;0.00&amp;quot;(VERSION_MAJOR.VERSION_MINOR).&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;So I hope to modify the BLE information through API.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to modify the Firmware Revision String</title><link>https://devzone.nordicsemi.com/thread/514894?ContentTypeID=1</link><pubDate>Fri, 13 Dec 2024 13:19:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d505490c-17dd-47e5-b428-a83b35999edc</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Try to set&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;VERSION_MAJOR&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;nbsp;1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;VERSION_MINOR&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=23&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>