<?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 Problem setting breakpoints in assembler source CW 11.1 in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-setting-breakpoints-in-assembler-source-CW-11-1/m-p/1187006#M15506</link>
    <description>&lt;P&gt;I mostly write C code for HCS08 and sometimes I set breakpoints for debugging some issue.&lt;/P&gt;&lt;P&gt;Sometimes in C code breakpoints fail to set in some source lines, in my experience mostly problems related to blank lines, code writing style that fools the debugger or compiler optimized code (I guess). When this happens I usually try to set the breakpoint somewhere else within the code and problem solved.&lt;/P&gt;&lt;P&gt;These days I am trying to teach HCS08 assembler to a small group of beginners, CodeWarrior 11.1 IDE refuses to set any breakpoints, and instead a&amp;nbsp;&lt;SPAN&gt;crossed out symbol (the usual blue bullet breakpoint symbol) appears. So I end up using "Run to line" command which is not what I want. Instruction trace works fine, (Step Over and Step Into commands). The same programming tool and hardware is been used for C and Assembler projects.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, once the code is correctly assembled and after FLASH programming, the debugger never starts at _Startup. Instead an extra tab appears in the debugger code window section called main(). RESET vector is correctly defined in the absolute Assembler source code listing. The&amp;nbsp; Reset Target arrow button solves this last problem and the debugger positions itself at the _Startup label as expected. But still breakpoints do not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas of what am I doing wrong for this 2 issues? Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 22 Nov 2020 05:11:59 GMT</pubDate>
    <dc:creator>BooleanBob</dc:creator>
    <dc:date>2020-11-22T05:11:59Z</dc:date>
    <item>
      <title>Problem setting breakpoints in assembler source CW 11.1</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-setting-breakpoints-in-assembler-source-CW-11-1/m-p/1187006#M15506</link>
      <description>&lt;P&gt;I mostly write C code for HCS08 and sometimes I set breakpoints for debugging some issue.&lt;/P&gt;&lt;P&gt;Sometimes in C code breakpoints fail to set in some source lines, in my experience mostly problems related to blank lines, code writing style that fools the debugger or compiler optimized code (I guess). When this happens I usually try to set the breakpoint somewhere else within the code and problem solved.&lt;/P&gt;&lt;P&gt;These days I am trying to teach HCS08 assembler to a small group of beginners, CodeWarrior 11.1 IDE refuses to set any breakpoints, and instead a&amp;nbsp;&lt;SPAN&gt;crossed out symbol (the usual blue bullet breakpoint symbol) appears. So I end up using "Run to line" command which is not what I want. Instruction trace works fine, (Step Over and Step Into commands). The same programming tool and hardware is been used for C and Assembler projects.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, once the code is correctly assembled and after FLASH programming, the debugger never starts at _Startup. Instead an extra tab appears in the debugger code window section called main(). RESET vector is correctly defined in the absolute Assembler source code listing. The&amp;nbsp; Reset Target arrow button solves this last problem and the debugger positions itself at the _Startup label as expected. But still breakpoints do not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas of what am I doing wrong for this 2 issues? Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Nov 2020 05:11:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-setting-breakpoints-in-assembler-source-CW-11-1/m-p/1187006#M15506</guid>
      <dc:creator>BooleanBob</dc:creator>
      <dc:date>2020-11-22T05:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem setting breakpoints in assembler source CW 11.1</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-setting-breakpoints-in-assembler-source-CW-11-1/m-p/1187911#M15507</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;BooleanBob&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Normally, if a specific line of code is optimized, the breakpoint can't be set there.&lt;/P&gt;
&lt;P&gt;Please do clean the object code then rebuild. if still can't set the breakpoint, please upload demo project. I will check the problem directly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 06:36:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-setting-breakpoints-in-assembler-source-CW-11-1/m-p/1187911#M15507</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2020-11-24T06:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem setting breakpoints in assembler source CW 11.1</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-setting-breakpoints-in-assembler-source-CW-11-1/m-p/1188333#M15508</link>
      <description>&lt;P&gt;&lt;SPAN&gt;T&lt;/SPAN&gt;&lt;SPAN class="gmail_default"&gt;hank you Jennie, problem solved.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN class="gmail_default"&gt;The "SKIP ALL BREAKPOINTS" toggle button was accidentally switched on or for some unknown reason.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="gmail_default"&gt;This prevented the setting of any breakpoints.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="gmail_default"&gt;This button&amp;nbsp;is close to the left "DEBUG AS" button.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="gmail_default"&gt;By the way, I am writing assembler code, where I think there are no optimizations other than the programmer can do.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="gmail_default"&gt;Thank you again for your valuable time.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Nov 2020 16:32:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-setting-breakpoints-in-assembler-source-CW-11-1/m-p/1188333#M15508</guid>
      <dc:creator>BooleanBob</dc:creator>
      <dc:date>2020-11-24T16:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem setting breakpoints in assembler source CW 11.1</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-setting-breakpoints-in-assembler-source-CW-11-1/m-p/1188504#M15509</link>
      <description>&lt;P&gt;Hi &lt;SPAN&gt;BooleanBob&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Good to know your problem was solved. You are welcome.&lt;/P&gt;
&lt;P&gt;Have a nice day,&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 01:45:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-setting-breakpoints-in-assembler-source-CW-11-1/m-p/1188504#M15509</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2020-11-25T01:45:25Z</dc:date>
    </item>
  </channel>
</rss>

