<?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>Unable to add versioning to NRF application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110988/unable-to-add-versioning-to-nrf-application</link><description>Hello Community, I am trying to add versioning to my Bluetooth HCI_UART program for that I have modified a little according to my requirements. This would be for the BL5340PA custom board from Liard connectivity. The core chip of this board would still</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 May 2024 09:55:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110988/unable-to-add-versioning-to-nrf-application" /><item><title>RE: Unable to add versioning to NRF application</title><link>https://devzone.nordicsemi.com/thread/482473?ContentTypeID=1</link><pubDate>Wed, 08 May 2024 09:55:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c8cc091-6a19-47e0-8b62-c350f965a8b6</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;As mentioned, it was not present in ncs v2.4.x.&lt;/p&gt;
[quote userid="129301" url="~/f/nordic-q-a/110988/unable-to-add-versioning-to-nrf-application/482470"] If this feature is not supported on V2.4.1 then what would be an alternate way to include a versioning system in my firmware?[/quote]
&lt;p&gt;You can manually include a header file, for instance. Or look at CMake functions:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://cmake.org/cmake/help/v3.18/guide/tutorial/#adding-a-version-number-and-configured-header-file"&gt;https://cmake.org/cmake/help/v3.18/guide/tutorial/#adding-a-version-number-and-configured-header-file&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;H&amp;aring;kon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to add versioning to NRF application</title><link>https://devzone.nordicsemi.com/thread/482470?ContentTypeID=1</link><pubDate>Wed, 08 May 2024 09:47:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6af6d5da-ab2c-4d78-ad7d-4b6f93598b37</guid><dc:creator>Utsav R Shah</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/hkn"&gt;Håkon Alseth&lt;/a&gt;&amp;nbsp; thanks for the information.&lt;/p&gt;
&lt;p&gt;I did try the steps you have mentioned in ncs V2.4.1 but I got the same error again. If this feature is not supported on V2.4.1 then what would be an alternate way to include a versioning system in my firmware?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to add versioning to NRF application</title><link>https://devzone.nordicsemi.com/thread/482460?ContentTypeID=1</link><pubDate>Wed, 08 May 2024 09:18:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4303297-4a47-44db-bb84-0a15ecc04346</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This was a feature added in zephyr v3.5 (ncs v2.5 and newer). It is not present in ncs v2.4.1.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. Create the my_project/VERSION file, containing something like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;VERSION_MAJOR = 1
VERSION_MINOR = 2
PATCHLEVEL = 3
VERSION_TWEAK = 4
EXTRAVERSION = unstable&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. Include app_version.h in your project, for instance in main.c&lt;/p&gt;
&lt;p&gt;3. configure your project (ie. add a new build)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you configure your project, then add the VERSION file, it will not be picked up by CMake/build system, so it is important that you re-generate your project.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>