<?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: Breakpoints Using CyclonePro &amp; S08QG8 in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Breakpoints-Using-CyclonePro-S08QG8/m-p/135852#M4148</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Rhino, and thanks for responding.&lt;BR /&gt;&lt;BR /&gt;I thought it had 2. One instruction breakpoint and one stop-on-address breakpoint.&lt;BR /&gt;&lt;BR /&gt;In any case, I've even put 3 breakpoints in and it stops at the 1st and the 3rd.&lt;BR /&gt;&lt;BR /&gt;I put in 4, and when it runs it says it can't install the 4th one. So I remove it. And now it stops on the 1st, 2nd AND 3rd.&lt;BR /&gt;&lt;BR /&gt;To answer your question, yes, if I only put in 1 breakpoint it seems to work OK as far as breakpoints go. I would think it would warn me if I try to put in a 2nd or 3rd breakpoint and that wasn't supported.&lt;BR /&gt;&lt;BR /&gt;I know once I get into a serious debugging battle that I'm not always going to remember if I have a breakpoint installed somewhere or not.&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 May 2006 16:30:05 GMT</pubDate>
    <dc:creator>Wings</dc:creator>
    <dc:date>2006-05-13T16:30:05Z</dc:date>
    <item>
      <title>Breakpoints Using CyclonePro &amp; S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Breakpoints-Using-CyclonePro-S08QG8/m-p/135849#M4145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I posted this on P&amp;amp;E forums but I don't think anyone is home over there, so hopefully someone here can give me some help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using CodeWarrior Development Studio vers 5.7.0, debugger is BDM P&amp;amp;E Multilink/Cyclone Pro, vers 6.1. Here is my question, copied from my post at P&amp;amp;E:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;---------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm taking my first test drive with a CyclonePro connected via USB to my QG8 hardware via the BDM port. I've got the default ASM file loaded and I've inserted a string of NOPs and an instruction to increment a memory location (just to see if it's really doing something). Sure enough, if I single-step or halt it, it really is working!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So now I try setting a breakpoint.... or two or three. Sometimes that works, sometimes not. One breakpoint always seems to work but when I start adding more things start getting weird. Weird, as in not stopping at a breakpoint even though that little red pointy arrow says there's one there. Weird as in saying "Could not set the hardware breakpoint at address $E00F", immediately followed by "Was not able to set the breakpoint at $E00F". (I think it knows I learn best by repetitive &amp;amp; redundant error messages.) Weird as in stopping at a breakpoint that I have previously inserted and then removed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So before I go spinning my wheels trying to figure out exactly what I'm doing wrong I would like to ask for some advice here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the thing I need to do to make sure that breakpoints I've set really are there? (This question is most important of all, since if I can't trust it to stop at my breakpoint then I'll never be able to debug my code with any confidence at all.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I doing that causes it to complain that it cannot set a breakpoint?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I make it forget about a breakpoint that I once had but have since removed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd really appreciate some feedback from P&amp;amp;E or anyone who has experience in using the CyclonePro with the BGM.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 May 2006 02:19:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Breakpoints-Using-CyclonePro-S08QG8/m-p/135849#M4145</guid>
      <dc:creator>Wings</dc:creator>
      <dc:date>2006-05-13T02:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Breakpoints Using CyclonePro &amp; S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Breakpoints-Using-CyclonePro-S08QG8/m-p/135850#M4146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I've narrowed down one breakpoint quirk to a specific set of conditions that are repeatable.&lt;BR /&gt;&lt;BR /&gt;The code&lt;BR /&gt;&lt;BR /&gt;LOOP: CLRA&lt;BR /&gt;INCA&lt;BR /&gt;INCA&lt;BR /&gt;INC $80&lt;BR /&gt;BRA LOOP&lt;BR /&gt;&lt;BR /&gt;If I place a breakpoint at the 2nd INCA, all is well -- it stops there on every loop (and AccA = 1). If I place 2 breakpoints, one there and the 2nd at INC $80, it does this:&lt;BR /&gt;&lt;BR /&gt;1 It stops at the 1st breakpoint (2nd INCA), and the command window shows "Preset breakpoint encountered" then "Breakpoint". AccA = 1. What I expected.&lt;BR /&gt;&lt;BR /&gt;2 Hitting Resume and the command window says "STARTED" but nothing seems to happen. (AccA is still a 1.)&lt;BR /&gt;&lt;BR /&gt;3 Hitting Resume again and it stops at the first breakpoint as before.&lt;BR /&gt;&lt;BR /&gt;4 Resume and it does nothing.&lt;BR /&gt;&lt;BR /&gt;5 Resume and it stops at the 1st breakpoint.&lt;BR /&gt;&lt;BR /&gt;6 Resume and an alert dialog says "Could not set hardware breakpoint at $E008", then "Was not able to set the breakpoint at $E008".&lt;BR /&gt;&lt;BR /&gt;7 Remove both breakpoints and it's as though they are still there. The breakpoint indicators go away but it repeats forever from steps 2 and 3 above whenever I hit Resume (no more alert dialog).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;A N Y B O D Y?????&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 May 2006 05:17:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Breakpoints-Using-CyclonePro-S08QG8/m-p/135850#M4146</guid>
      <dc:creator>Wings</dc:creator>
      <dc:date>2006-05-13T05:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Breakpoints Using CyclonePro &amp; S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Breakpoints-Using-CyclonePro-S08QG8/m-p/135851#M4147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;There is only one hardware breakpoint built into the device, so what you're describing mostly makes sense.&amp;nbsp; Does it work fine if you only set one breakpoint at a time and remove that one before applying another one?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The BDM module on the chip lets you program one address into the breakpoint match register - and when the program counter holds the same address, the BDM stops the CPU.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 May 2006 09:56:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Breakpoints-Using-CyclonePro-S08QG8/m-p/135851#M4147</guid>
      <dc:creator>rhinoceroshead</dc:creator>
      <dc:date>2006-05-13T09:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Breakpoints Using CyclonePro &amp; S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Breakpoints-Using-CyclonePro-S08QG8/m-p/135852#M4148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Rhino, and thanks for responding.&lt;BR /&gt;&lt;BR /&gt;I thought it had 2. One instruction breakpoint and one stop-on-address breakpoint.&lt;BR /&gt;&lt;BR /&gt;In any case, I've even put 3 breakpoints in and it stops at the 1st and the 3rd.&lt;BR /&gt;&lt;BR /&gt;I put in 4, and when it runs it says it can't install the 4th one. So I remove it. And now it stops on the 1st, 2nd AND 3rd.&lt;BR /&gt;&lt;BR /&gt;To answer your question, yes, if I only put in 1 breakpoint it seems to work OK as far as breakpoints go. I would think it would warn me if I try to put in a 2nd or 3rd breakpoint and that wasn't supported.&lt;BR /&gt;&lt;BR /&gt;I know once I get into a serious debugging battle that I'm not always going to remember if I have a breakpoint installed somewhere or not.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 May 2006 16:30:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Breakpoints-Using-CyclonePro-S08QG8/m-p/135852#M4148</guid>
      <dc:creator>Wings</dc:creator>
      <dc:date>2006-05-13T16:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Breakpoints Using CyclonePro &amp; S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Breakpoints-Using-CyclonePro-S08QG8/m-p/135853#M4149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;FONT size="2"&gt;Hello Wings,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;It is conceivable that the Cyclone Pro hardware may be operating correctly - thus the disinterest by P &amp;amp; E.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;If multiple breakpoints are allowed, these would need to be supervised by the debugger, and the hardware breakpoint automatically updated, depending on the current PC.&amp;nbsp; So this&amp;nbsp;could potentially&amp;nbsp;be a problem with CW debugger.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;A suggestion - try leaving at least one instruction between consecutive breakpoints - this would usually be the case in a normal debugging session.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Regards,&lt;BR /&gt;Mac&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 May 2006 21:16:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Breakpoints-Using-CyclonePro-S08QG8/m-p/135853#M4149</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2006-05-13T21:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Breakpoints Using CyclonePro &amp; S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Breakpoints-Using-CyclonePro-S08QG8/m-p/135854#M4150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;At first I thought CW should automatically update it too - but in the event that there is a branch and you want a breakpoint in each branch, it would be impossible for CW to know which breakpoint to set.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 May 2006 23:12:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Breakpoints-Using-CyclonePro-S08QG8/m-p/135854#M4150</guid>
      <dc:creator>rhinoceroshead</dc:creator>
      <dc:date>2006-05-13T23:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Breakpoints Using CyclonePro &amp; S08QG8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Breakpoints-Using-CyclonePro-S08QG8/m-p/135855#M4151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I've read in app note AN2596 that the debug controller in every S chip has one breakpoint that can trigger on either an instruction fetch (normal breakpoint) or an address access (stop-on-address). In the Debug Module, which is present in most S chips but not all, there are two more breakpoints just like the first one, so that does make a total of 3. Now whether or not CW's debugger allows one to use all 3 is another question.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 May 2006 00:59:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Breakpoints-Using-CyclonePro-S08QG8/m-p/135855#M4151</guid>
      <dc:creator>Wings</dc:creator>
      <dc:date>2006-05-14T00:59:38Z</dc:date>
    </item>
  </channel>
</rss>

