<?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>Kinetis Design StudioのトピックRe: Making use of system Build Variable in C source</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Making-use-of-system-Build-Variable-in-C-source/m-p/596041#M7494</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;In Make:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-DBUILDNUMBER=$(your env build_number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I explain the process here:&lt;BR /&gt;&lt;A href="http://blog.softwaresafety.net/2010/08/automatic-serial-number-for-test-driven.html" title="http://blog.softwaresafety.net/2010/08/automatic-serial-number-for-test-driven.html"&gt;Software Safety: Automatic Serial Number for Test Driven Development. Makefile Tip #0&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jul 2016 11:54:26 GMT</pubDate>
    <dc:creator>bobpaddock</dc:creator>
    <dc:date>2016-07-22T11:54:26Z</dc:date>
    <item>
      <title>Making use of system Build Variable in C source</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Making-use-of-system-Build-Variable-in-C-source/m-p/596040#M7493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attempting to make use of a system build variable in my C source, in this case it is the build number of the SW being built. This value, 'BUILD_NMBER' is defined among the environmental variables of the host system, and I have confirmed that this variable appears in the list of system build variables within KDS.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where I'm not sure how to proceed is in incorporate this variable into my C source code. In this case I wish to capture this number in SW such that it can be reported back at runtime as though it were a #define. My project compiles into a binary image that will be running on an embedded device, if that helps at all.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice in how I might do this would be greatly appreciated! Thanks!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Erik Tidemand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 20:24:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Making-use-of-system-Build-Variable-in-C-source/m-p/596040#M7493</guid>
      <dc:creator>etidemand</dc:creator>
      <dc:date>2016-07-21T20:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Making use of system Build Variable in C source</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Making-use-of-system-Build-Variable-in-C-source/m-p/596041#M7494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;In Make:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-DBUILDNUMBER=$(your env build_number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I explain the process here:&lt;BR /&gt;&lt;A href="http://blog.softwaresafety.net/2010/08/automatic-serial-number-for-test-driven.html" title="http://blog.softwaresafety.net/2010/08/automatic-serial-number-for-test-driven.html"&gt;Software Safety: Automatic Serial Number for Test Driven Development. Makefile Tip #0&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 11:54:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Making-use-of-system-Build-Variable-in-C-source/m-p/596041#M7494</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2016-07-22T11:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Making use of system Build Variable in C source</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Making-use-of-system-Build-Variable-in-C-source/m-p/596042#M7495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was the trick I was looking for. Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Erik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 23:20:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Making-use-of-system-Build-Variable-in-C-source/m-p/596042#M7495</guid>
      <dc:creator>etidemand</dc:creator>
      <dc:date>2016-07-22T23:20:22Z</dc:date>
    </item>
  </channel>
</rss>

