<?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>S12 / MagniV MicrocontrollersのトピックRe: Compilation problem(or not?)</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Compilation-problem-or-not/m-p/142333#M3427</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi:&lt;BR /&gt;&lt;BR /&gt;Chances are your new code is being optimize out by the compiler. &lt;BR /&gt;&lt;BR /&gt;First of all, check that your code does not generate ANY warning.&lt;BR /&gt;&lt;BR /&gt;Second, set the compiler to generate an error (not a warning) on Implicit parameter declaration.&lt;BR /&gt;&lt;BR /&gt;Third, check that variables used in an Interrupt Service Routine (ISR) are declared volatile&lt;BR /&gt;&lt;BR /&gt;Fourth, check that your new code is actually doing something. Compilers usually remove dead assignments and code that does nothing (adding to variables that are not used, etc).&lt;BR /&gt;&lt;BR /&gt;Attaching yout code in the posts might be useful, as well.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Alex.&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jul 2006 23:29:02 GMT</pubDate>
    <dc:creator>alex_spotw</dc:creator>
    <dc:date>2006-07-06T23:29:02Z</dc:date>
    <item>
      <title>Compilation problem(or not?)</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Compilation-problem-or-not/m-p/142332#M3426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on codewarior and got myself into a strange position.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when I compile my code and try to run it, I noticed that my newest code does not compile properly. I know it because I can not put any breakpoint on this line of code. and it skip these lines while steping in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 23:12:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Compilation-problem-or-not/m-p/142332#M3426</guid>
      <dc:creator>israel</dc:creator>
      <dc:date>2006-07-06T23:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation problem(or not?)</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Compilation-problem-or-not/m-p/142333#M3427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi:&lt;BR /&gt;&lt;BR /&gt;Chances are your new code is being optimize out by the compiler. &lt;BR /&gt;&lt;BR /&gt;First of all, check that your code does not generate ANY warning.&lt;BR /&gt;&lt;BR /&gt;Second, set the compiler to generate an error (not a warning) on Implicit parameter declaration.&lt;BR /&gt;&lt;BR /&gt;Third, check that variables used in an Interrupt Service Routine (ISR) are declared volatile&lt;BR /&gt;&lt;BR /&gt;Fourth, check that your new code is actually doing something. Compilers usually remove dead assignments and code that does nothing (adding to variables that are not used, etc).&lt;BR /&gt;&lt;BR /&gt;Attaching yout code in the posts might be useful, as well.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Alex.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2006 23:29:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Compilation-problem-or-not/m-p/142333#M3427</guid>
      <dc:creator>alex_spotw</dc:creator>
      <dc:date>2006-07-06T23:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation problem(or not?)</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Compilation-problem-or-not/m-p/142334#M3428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I assume you are using CodeWarrior for HC12. Am I right?&lt;/P&gt;&lt;P&gt;If this is the case, I assume also tat you tried to put the breakpoint in the Debugger source window after the code has been downloaded.&lt;/P&gt;&lt;P&gt;CodeWarrior for HC12 is using an external debugger and you cannot set a breakpoint in an editor window.&lt;/P&gt;&lt;P&gt;Additionally a quick Tip to move forward (also only valid if you are using CW HC12).&lt;/P&gt;&lt;P&gt;After you have downloaded your code to the target, bring the code of the function you are interested in in the Source Window (Use menu entry "Source" -&amp;gt; ""Find procedure" for that).&lt;/P&gt;&lt;P&gt;THen select "Source" -&amp;gt; "Marks". This will insert a small red mark in front of each instruction where you can set a breakpoint.&lt;/P&gt;&lt;P&gt;If the source line you are referring to does not have marks, that means either the function or the instruction does not generate code.&lt;/P&gt;&lt;P&gt;Then we will have to start investigating from there.&lt;/P&gt;&lt;P&gt;Is the whole function without mark? Or just an instruction?&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2006 13:07:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Compilation-problem-or-not/m-p/142334#M3428</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-07-07T13:07:09Z</dc:date>
    </item>
  </channel>
</rss>

