<?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: Debuuging SCI RDRF bit in Codewarrior in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Debuuging-SCI-RDRF-bit-in-Codewarrior/m-p/182755#M6744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should make sure data or memory windows do not include SCI or SPI registers, else&amp;nbsp;flags of these modules may get cleared and your code will skip receive enents.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Nov 2011 13:00:02 GMT</pubDate>
    <dc:creator>kef</dc:creator>
    <dc:date>2011-11-15T13:00:02Z</dc:date>
    <item>
      <title>Debuuging SCI RDRF bit in Codewarrior</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Debuuging-SCI-RDRF-bit-in-Codewarrior/m-p/182754#M6743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to debug the following code...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;void getSCI(void)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // get modem's response and display on lcd&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; line = 1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp = 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; char_Pos = 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; first_reply =1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; while(1)&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while ((SCI1SR1 &amp;amp; 0x20) == 0){};&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // wait until received data&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp = SCI1DRL;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;etc....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I put a breakpoint at the entry to getSCI(), when it stops there I can see the RDRF bit set in SCI1SR1 and the correct data in SCI1DRL.&amp;nbsp; But if I single-step (either C or assembly) as soon as I move off the line=1 line, the RDRF bit clears, and when I get to the test for it, it obviously is not thee to test.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume this s because the debugger is reading the registers ahead of the execution steps, but how can I stop this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help appreciated, this is a side issue to the real problem I am debugging!&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nigel Johnson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 00:12:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Debuuging-SCI-RDRF-bit-in-Codewarrior/m-p/182754#M6743</guid>
      <dc:creator>ve3id</dc:creator>
      <dc:date>2011-11-15T00:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Debuuging SCI RDRF bit in Codewarrior</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Debuuging-SCI-RDRF-bit-in-Codewarrior/m-p/182755#M6744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should make sure data or memory windows do not include SCI or SPI registers, else&amp;nbsp;flags of these modules may get cleared and your code will skip receive enents.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 13:00:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Debuuging-SCI-RDRF-bit-in-Codewarrior/m-p/182755#M6744</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2011-11-15T13:00:02Z</dc:date>
    </item>
  </channel>
</rss>

