<?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 Issue while debugging with Optimizer OFF in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Issue-while-debugging-with-Optimizer-OFF/m-p/317400#M949</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Setup:&lt;/P&gt;&lt;P&gt;CW10.5&lt;/P&gt;&lt;P&gt;K61FX512&lt;/P&gt;&lt;P&gt;Code runs from Ext RAM&lt;/P&gt;&lt;P&gt;TraceLink &amp;amp; Multilink&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I turn optimizer ON ( =1), code runs alright.&lt;/P&gt;&lt;P&gt;If it is turned OFF ( = 0), code compiles properly &amp;amp; even the debugger session is invoked. But as soon as I do a "step over" at __init_registers in __thumb_startup, it shows "No source available". "Step into" does work but only for few instructions.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Also at this time, in the memory view, all the values are reset to 0x00. (Maybe - DDR connection broken somehow???)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I started a session with Tracelink too, but the trace logs aren't too helpful.&lt;/P&gt;&lt;P&gt;Stack &amp;amp; Heap are sufficiently big.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any clues or suggestions?&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 style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Update:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- Seems like a watchdog reset from RCM register&lt;/P&gt;&lt;P&gt;- Have tried disabling watchdog&amp;nbsp; from TCL file, inside __init_registers and __init_hardware. But no success. It still does a WDT reset&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jul 2014 13:11:03 GMT</pubDate>
    <dc:creator>kpanchamia</dc:creator>
    <dc:date>2014-07-08T13:11:03Z</dc:date>
    <item>
      <title>Issue while debugging with Optimizer OFF</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Issue-while-debugging-with-Optimizer-OFF/m-p/317400#M949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Setup:&lt;/P&gt;&lt;P&gt;CW10.5&lt;/P&gt;&lt;P&gt;K61FX512&lt;/P&gt;&lt;P&gt;Code runs from Ext RAM&lt;/P&gt;&lt;P&gt;TraceLink &amp;amp; Multilink&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I turn optimizer ON ( =1), code runs alright.&lt;/P&gt;&lt;P&gt;If it is turned OFF ( = 0), code compiles properly &amp;amp; even the debugger session is invoked. But as soon as I do a "step over" at __init_registers in __thumb_startup, it shows "No source available". "Step into" does work but only for few instructions.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Also at this time, in the memory view, all the values are reset to 0x00. (Maybe - DDR connection broken somehow???)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I started a session with Tracelink too, but the trace logs aren't too helpful.&lt;/P&gt;&lt;P&gt;Stack &amp;amp; Heap are sufficiently big.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any clues or suggestions?&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 style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Update:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- Seems like a watchdog reset from RCM register&lt;/P&gt;&lt;P&gt;- Have tried disabling watchdog&amp;nbsp; from TCL file, inside __init_registers and __init_hardware. But no success. It still does a WDT reset&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 13:11:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Issue-while-debugging-with-Optimizer-OFF/m-p/317400#M949</guid>
      <dc:creator>kpanchamia</dc:creator>
      <dc:date>2014-07-08T13:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Issue while debugging with Optimizer OFF</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Issue-while-debugging-with-Optimizer-OFF/m-p/317401#M950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Kunal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As your code is running from external RAM I think that without optimizations the code is not fast enough, so watchdog is not being disabled or cleared on time. I recommend to keep optimizations enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 19:31:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Issue-while-debugging-with-Optimizer-OFF/m-p/317401#M950</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2014-07-09T19:31:51Z</dc:date>
    </item>
  </channel>
</rss>

