<?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>CodeWarrior Development ToolsのトピックChangings in the hex file</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Changings-in-the-hex-file/m-p/483990#M3920</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made some unit tests in the SW using some sections with&lt;/P&gt;&lt;P&gt;#ifdef &lt;SPAN style="color: #e23d39;"&gt;UNIT_TEST&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;test variables 1&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;test variables 2&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;test variables 3&amp;gt;;&lt;/P&gt;&lt;P&gt;#endif &lt;SPAN style="color: #3334ca;"&gt;/* UNIT_TEST */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After building the HEX file (in &lt;STRONG&gt;s19&lt;/STRONG&gt; format), there are changes in it, which are not allowed. The define UNIT_TEST is used &lt;SPAN style="text-decoration: underline;"&gt;only&lt;/SPAN&gt; in the test Tool.&lt;/P&gt;&lt;P&gt;I presume that, this define is not accepted (but the test section is) from CodeWarrior and CW generates code.&lt;/P&gt;&lt;P&gt;The memory map is new generated but also not changed (there is no any build date in it) even some SW changes are made.&lt;/P&gt;&lt;P&gt;I use CodeWarrior for MCU, Version: &lt;STRONG&gt;10.6&lt;/STRONG&gt;, Build Id:140329 for microcontroller HCS08. No other changes in the framework or in the project are performed.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Mar 2016 16:48:30 GMT</pubDate>
    <dc:creator>vladi</dc:creator>
    <dc:date>2016-03-16T16:48:30Z</dc:date>
    <item>
      <title>Changings in the hex file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Changings-in-the-hex-file/m-p/483990#M3920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made some unit tests in the SW using some sections with&lt;/P&gt;&lt;P&gt;#ifdef &lt;SPAN style="color: #e23d39;"&gt;UNIT_TEST&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;test variables 1&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;test variables 2&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;test variables 3&amp;gt;;&lt;/P&gt;&lt;P&gt;#endif &lt;SPAN style="color: #3334ca;"&gt;/* UNIT_TEST */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After building the HEX file (in &lt;STRONG&gt;s19&lt;/STRONG&gt; format), there are changes in it, which are not allowed. The define UNIT_TEST is used &lt;SPAN style="text-decoration: underline;"&gt;only&lt;/SPAN&gt; in the test Tool.&lt;/P&gt;&lt;P&gt;I presume that, this define is not accepted (but the test section is) from CodeWarrior and CW generates code.&lt;/P&gt;&lt;P&gt;The memory map is new generated but also not changed (there is no any build date in it) even some SW changes are made.&lt;/P&gt;&lt;P&gt;I use CodeWarrior for MCU, Version: &lt;STRONG&gt;10.6&lt;/STRONG&gt;, Build Id:140329 for microcontroller HCS08. No other changes in the framework or in the project are performed.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 16:48:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Changings-in-the-hex-file/m-p/483990#M3920</guid>
      <dc:creator>vladi</dc:creator>
      <dc:date>2016-03-16T16:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Changings in the hex file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Changings-in-the-hex-file/m-p/483991#M3921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vla&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial','sans-serif';"&gt;Where did you define UNIT_TEST?&amp;nbsp; Usually we define the macro in Project Properties-&amp;gt; C/C++ Build-&amp;gt; Settings-&amp;gt; HCS08 Compiler -&amp;gt; Preprocessor, please see the screenshot below. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial','sans-serif';"&gt;Please remove it from this panel if you do not need it in release reversion of your software. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="define.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/23204i94467AB8ADFA8933/image-size/large?v=v2&amp;amp;px=999" role="button" title="define.png" alt="define.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial','sans-serif';"&gt;It is easy to know the macro exists, just place some illegal code inside the “#ifdef…… #endif”. If the macro definition is already removed completely, there should be no error like below. If the error appears, there must be somewhere defined the macro. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="err.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/23246i1A869D4822E8B97B/image-size/large?v=v2&amp;amp;px=999" role="button" title="err.png" alt="err.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial','sans-serif';"&gt;If your variables or functions defined inside “#ifdef…… #endif”&amp;nbsp; are not appearing in the new generated MAP file, they should not be included in S-record file either. Please compare the S-record files to know what is changed before and after removing the macro definition.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Fiona Kuang&lt;/P&gt;&lt;P&gt;Technical Information &amp;amp; Commercial Support&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 04:40:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Changings-in-the-hex-file/m-p/483991#M3921</guid>
      <dc:creator>TICS_Fiona</dc:creator>
      <dc:date>2016-03-17T04:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Changings in the hex file</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Changings-in-the-hex-file/m-p/483992#M3922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;in addition, if variable1, variable2, variable3 are &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;&lt;STRONG&gt;global&lt;/STRONG&gt; &lt;/EM&gt;&lt;/SPAN&gt;variables, make sure they are not optimized compiler.&lt;/P&gt;&lt;P&gt;to avoid optimization, add this code in prm file:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ENTRIES&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;variable1, varaible2, variable3&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;END&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the problem persists, I would like to suggest you create a demo project for your issue and post it here. thus we can check it directly.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 02:24:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Changings-in-the-hex-file/m-p/483992#M3922</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2016-03-18T02:24:47Z</dc:date>
    </item>
  </channel>
</rss>

