<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Build number autogenerating in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Build-number-autogenerating/m-p/210584#M8285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at &lt;A href="http://blogs.freescale.com/2012/06/26/codewarrior-tool-tip-8-extending-the-build-system/" title="http://blogs.freescale.com/2012/06/26/codewarrior-tool-tip-8-extending-the-build-system/"&gt;http://blogs.freescale.com/2012/06/26/codewarrior-tool-tip-8-extending-the-build-system/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So this could be used say to run a script/batch file which changes a source file and increments the build number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another possibility is to use the burner which would modify the S19/binary file. Again either with a .bbl or with a post build step:&lt;A href="http://mcuoneclipse.wordpress.com/2012/09/27/s-record-intel-hex-and-binary-files/" title="http://mcuoneclipse.wordpress.com/2012/09/27/s-record-intel-hex-and-binary-files/"&gt;http://mcuoneclipse.wordpress.com/2012/09/27/s-record-intel-hex-and-binary-files/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm using as a build identification is as well the __DATE__ and __TIME__ compiler macros. This is not a build number, but gives date and time of the build in a string. I use it like this in my FSShell component:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; FSSH1_SendStatusStr((const unsigned char*)"Firmware", (const unsigned char*)__DATE__, io-&amp;gt;stdOut);&lt;/P&gt;&lt;P&gt;&amp;nbsp; FSSH1_SendStr((unsigned char*)" ", io-&amp;gt;stdOut);&lt;/P&gt;&lt;P&gt;&amp;nbsp; FSSH1_SendStr((unsigned char*)__TIME__, io-&amp;gt;stdOut);&lt;/P&gt;&lt;P&gt;&amp;nbsp; FSSH1_SendStr((unsigned char*)"\r\n", io-&amp;gt;stdOut);&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;The output of this you can see n the last screenshot in &lt;/SPAN&gt;&lt;A href="http://mcuoneclipse.wordpress.com/2012/08/05/a-shell-for-the-freedom-kl25z-board/" title="http://mcuoneclipse.wordpress.com/2012/08/05/a-shell-for-the-freedom-kl25z-board/"&gt;http://mcuoneclipse.wordpress.com/2012/08/05/a-shell-for-the-freedom-kl25z-board/&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Oct 2012 08:00:19 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2012-10-06T08:00:19Z</dc:date>
    <item>
      <title>Build number autogenerating</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Build-number-autogenerating/m-p/210583#M8284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a possibility to autogenerate build number after building the project in codewarrior. This way every time project is built, some location in FLASH (constant) will be incremented and we can clearly distinguish the difference between two device by reading the build number .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 21:32:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Build-number-autogenerating/m-p/210583#M8284</guid>
      <dc:creator>Glogov_Kolac</dc:creator>
      <dc:date>2012-10-05T21:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Build number autogenerating</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Build-number-autogenerating/m-p/210584#M8285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at &lt;A href="http://blogs.freescale.com/2012/06/26/codewarrior-tool-tip-8-extending-the-build-system/" title="http://blogs.freescale.com/2012/06/26/codewarrior-tool-tip-8-extending-the-build-system/"&gt;http://blogs.freescale.com/2012/06/26/codewarrior-tool-tip-8-extending-the-build-system/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So this could be used say to run a script/batch file which changes a source file and increments the build number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another possibility is to use the burner which would modify the S19/binary file. Again either with a .bbl or with a post build step:&lt;A href="http://mcuoneclipse.wordpress.com/2012/09/27/s-record-intel-hex-and-binary-files/" title="http://mcuoneclipse.wordpress.com/2012/09/27/s-record-intel-hex-and-binary-files/"&gt;http://mcuoneclipse.wordpress.com/2012/09/27/s-record-intel-hex-and-binary-files/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm using as a build identification is as well the __DATE__ and __TIME__ compiler macros. This is not a build number, but gives date and time of the build in a string. I use it like this in my FSShell component:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; FSSH1_SendStatusStr((const unsigned char*)"Firmware", (const unsigned char*)__DATE__, io-&amp;gt;stdOut);&lt;/P&gt;&lt;P&gt;&amp;nbsp; FSSH1_SendStr((unsigned char*)" ", io-&amp;gt;stdOut);&lt;/P&gt;&lt;P&gt;&amp;nbsp; FSSH1_SendStr((unsigned char*)__TIME__, io-&amp;gt;stdOut);&lt;/P&gt;&lt;P&gt;&amp;nbsp; FSSH1_SendStr((unsigned char*)"\r\n", io-&amp;gt;stdOut);&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;The output of this you can see n the last screenshot in &lt;/SPAN&gt;&lt;A href="http://mcuoneclipse.wordpress.com/2012/08/05/a-shell-for-the-freedom-kl25z-board/" title="http://mcuoneclipse.wordpress.com/2012/08/05/a-shell-for-the-freedom-kl25z-board/"&gt;http://mcuoneclipse.wordpress.com/2012/08/05/a-shell-for-the-freedom-kl25z-board/&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 08:00:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Build-number-autogenerating/m-p/210584#M8285</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2012-10-06T08:00:19Z</dc:date>
    </item>
  </channel>
</rss>

