<?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>nrfutil application version string inconsistent with help</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60765/nrfutil-application-version-string-inconsistent-with-help</link><description>In implementing the --application-version-string with nrfutil I found the help was inconsistent with the application. 
 The help for this option is: 
 
 In the example 2.7.31 is to be converted to 207031, but it is actually converted to 20731. 
 Even</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Apr 2020 16:20:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60765/nrfutil-application-version-string-inconsistent-with-help" /><item><title>RE: nrfutil application version string inconsistent with help</title><link>https://devzone.nordicsemi.com/thread/247157?ContentTypeID=1</link><pubDate>Tue, 28 Apr 2020 16:20:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbbfb923-095c-4067-bf77-15b77d4e0494</guid><dc:creator>Andrew</dc:creator><description>&lt;p&gt;Thanks for clarifying this and forwarding on to the nrfutil dev team Edvin!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfutil application version string inconsistent with help</title><link>https://devzone.nordicsemi.com/thread/247105?ContentTypeID=1</link><pubDate>Tue, 28 Apr 2020 12:58:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d191851-e70c-444a-9a1a-36a31dc50fac</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I believe this is actually a typo (and possibly a bug). The range for a, b and c in --application-version-string &amp;quot;a.b.c&amp;quot; is 0-99, not 0-999. So it should have said in the description:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; --application-version-string TEXT
                                  The application version string, e.g.
                                  &amp;quot;2.7.31&amp;quot;. Will be converted to an integer,
                                  e.g. 20731.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;or possibly even &amp;quot;020731&amp;quot;.&lt;/p&gt;
&lt;p&gt;Looking at the output from nrfutil pkg display, the hex value for the application version is consistent with 2 digits for a, b and c.&lt;/p&gt;
&lt;p&gt;At least I haven&amp;#39;t found any testing saying that there is any errors when using 0-99. Have you?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The possible bug I see is that it should warn you if you use a number higher than 99, because the first 1 from 131 is added to the number before:&lt;/p&gt;
&lt;p&gt;02 . (07 + 1) . 31.&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t looked at the source code for this, but it looks like this is what&amp;#39;s happening. I&amp;#39;ll forward this to the team that develop our nrfutil tools. Thank you for reporting!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>