<?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>Moving to 2.6.0 from 2.3.0 problem with VERSION</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111650/moving-to-2-6-0-from-2-3-0-problem-with-version</link><description>Hi, 
 I am moving to version 2.6.0 of the SDK and toolchain. I am developing on windows 11 pro. Our cMakeLists.txt file creates a version file in our conf directory version.conf. I am trying to change it to use the APP_ROOT/VERSION file. I have taken</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 May 2024 20:23:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111650/moving-to-2-6-0-from-2-3-0-problem-with-version" /><item><title>RE: Moving to 2.6.0 from 2.3.0 problem with VERSION</title><link>https://devzone.nordicsemi.com/thread/486748?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 20:23:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ff9fb27-4dca-4fc2-ad25-52fe7785e600</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Brian,&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.0/zephyr/build/version/index.html#app-version-details"&gt;Application version management&lt;/a&gt; using the VERSION file was introduced in NCS v2.6.0. To my experience, you do not need to include the file via CMakeLists.txt like that. The build system is setup to automatically detect and take in the file.&lt;/p&gt;
&lt;p&gt;Also, VERSION is not a Kconfig file, so when you include it into CONF_FILE like you showed, the build system will try to interpret it as a Kconfig file and caused the &lt;em&gt;&amp;quot;ignoring malformed line&amp;quot;&lt;/em&gt; warnings.&lt;br /&gt;Your mention of those warnings in your opening post makes sense now.&lt;/p&gt;
[quote user="finkbr"]&lt;div&gt;&lt;span&gt;CONFIG_MCUBOOT_IMAGE_VERSION&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;1.0.21+1&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;and that no longer works and i am now sing the VERSION file.&lt;/span&gt;&lt;/div&gt;[/quote]
&lt;p&gt;If you want to use Kconfig, technically it still works. The&amp;nbsp;NCS specific&amp;nbsp;Kconfig is just &lt;a href="https://github.com/nrfconnect/sdk-nrf/commit/66c6305d59d8713b841dba72ca496a2a2904d90e#diff-20a0ebbac4434a507dd7e71b80070ffa6d2d99756fbda1fe2ccb08a78007e86c"&gt;removed in to unify the versioning solution with Zephyr&amp;#39;s&lt;/a&gt;, and the Kconfig&amp;nbsp;you should use is now&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.1/kconfig/index.html#CONFIG_MCUBOOT_IMGTOOL_SIGN_VERSION"&gt;CONFIG_MCUBOOT_IMGTOOL_SIGN_VERSION&lt;/a&gt;&amp;nbsp;instead.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But VERSION file is the preferred way.&lt;/p&gt;
[quote user="finkbr"]Am I to assume that MCUBOOT will automatically pick up the version file and use the version it contains?[/quote]
&lt;p&gt;I inadvertently answered it first already, but yes.&lt;/p&gt;
[quote user="finkbr"]If so, Thank you and you can close this ticket, otherwise, what should I do for MCUBOOT versioning.[/quote]
&lt;p&gt;Alright. Good to know everything is clear now. I will close the ticket then &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Moving to 2.6.0 from 2.3.0 problem with VERSION</title><link>https://devzone.nordicsemi.com/thread/486743?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 19:31:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:deb221d0-0e15-4790-9713-a2070ad4e347</guid><dc:creator>finkbr</dc:creator><description>&lt;p&gt;Hi, I did, ive done it before, the website is saying an error occurred and wont let me.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I built peripheral sample and the basic build works, when i add the versioning it gives the same error.&amp;nbsp; HOWEVER:&lt;/p&gt;
&lt;p&gt;I have a section in the CMakeLists.txt file&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Define configuration files.
list(APPEND CONF_FILE
  ${CMAKE_CURRENT_SOURCE_DIR}/conf/prj.conf
  ${CMAKE_CURRENT_SOURCE_DIR}/conf/prj-${BUILD_TYPE}.conf
  #${CMAKE_CURRENT_SOURCE_DIR}/conf/version.conf
  #${CMAKE_CURRENT_SOURCE_DIR}/VERSION
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;That appends all the the conf files together.&amp;nbsp; With the old versioning method this was fine.&amp;nbsp; Now its not.&amp;nbsp; After commenting out the append for VERSION it now compiles.&amp;nbsp; Now the last question which is what brought me to this new way of doing things.&amp;nbsp; We used to use&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MCUBOOT_IMAGE_VERSION&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;1.0.21+1&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;and that no longer works and i am now sing the VERSION file.&amp;nbsp; Am I to assume that MCUBOOT will automatically pick up the version file and use the version it contains?&amp;nbsp; If so, Thank you and you can close this ticket, otherwise, what should I do for MCUBOOT versioning.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Brian&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Moving to 2.6.0 from 2.3.0 problem with VERSION</title><link>https://devzone.nordicsemi.com/thread/486742?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 19:25:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5706486b-bc19-426d-a1bc-a726c0adbeb6</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Brian,&lt;/p&gt;
&lt;p&gt;For adding code, please try to use the Insert &amp;gt; Code menu option.&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/pastedimage1717096994470v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;For files, usually I just drag a file and drop into the edit box. But you could try using the Insert &amp;gt; Image/video/file menu option too.&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/pastedimage1717097044115v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Please do check if Peripheral UART work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Moving to 2.6.0 from 2.3.0 problem with VERSION</title><link>https://devzone.nordicsemi.com/thread/486733?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 16:54:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89f51b05-27d2-4747-87e9-78188bb918e0</guid><dc:creator>finkbr</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes I am on the correct toolchain version 2.6.0, sdk 2.6.0. There are spaces before and after the &amp;#39;=&amp;#39; sign. I deleted the build directories, no change. the only invisible characters in the file are the carriage return and line feed produced by the \n in the cmake file.&lt;/p&gt;
&lt;p&gt;I will work on building the Peripheral UART.&lt;/p&gt;
&lt;p&gt;I cant seem to attach any code or anything right now, the website is telling me there is an error wen i try to upload a file or insert code to this reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Moving to 2.6.0 from 2.3.0 problem with VERSION</title><link>https://devzone.nordicsemi.com/thread/486694?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 13:32:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d633087-fd2f-4766-bc70-4bcd1a5a6bb4</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Brian,&lt;/p&gt;
&lt;p&gt;The correct way is with a space character before and after the equal sign.&lt;/p&gt;
&lt;p&gt;Could you please try to remove the build directory completely and build again from the beginning?&lt;/p&gt;
&lt;p&gt;Please also:&lt;br /&gt;- Check if you are on the correct toolchain version.&lt;br /&gt;- Check if there are any invisible invalid character in the VERSION file.&lt;br /&gt;- Try building the Peripheral UART sample with your current setup, to see if the same issue happened.&lt;/p&gt;
&lt;p&gt;If none of that works, could you please share the full build log with less&amp;nbsp;of the file path redacted? I would like to see the relative path of the files within the project, at least.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>