<?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: MCUXpresso 10.1.1 and MIMXRT1050-EVK debug in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpresso-10-1-1-and-MIMXRT1050-EVK-debug/m-p/734927#M1389</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thanks for your kind support, now it's clear why it happens.&lt;/P&gt;&lt;P&gt;Any idea why SEGGER debugger doesn't work properly ?&lt;/P&gt;&lt;P&gt;In the same loop ( i++ ) jumps into &lt;STRONG&gt;hardware_handler&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Feb 2018 09:29:07 GMT</pubDate>
    <dc:creator>dimaios</dc:creator>
    <dc:date>2018-02-12T09:29:07Z</dc:date>
    <item>
      <title>MCUXpresso 10.1.1 and MIMXRT1050-EVK debug</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpresso-10-1-1-and-MIMXRT1050-EVK-debug/m-p/734925#M1387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sirs,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm trying to debug a very simple application using MCUXpresso 10.1.1 and the evaluation board MIMXRT1050-EVK ( i.MX RT 1050 evaluation board ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I've tested the project under Windows 7 32bit and Windows 10 x64 ( same result )&lt;/P&gt;&lt;P&gt;2) The SDK_2.3.0_EVK-MIMXRT1050 was built selecting all the available options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attached project is a simple GNU C++ 11 autogenerated by the IDE.&lt;/P&gt;&lt;PRE class="language-cpp line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;main&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;

&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class="comment token"&gt;/* Init board hardware. */&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="token function"&gt;BOARD_InitBootPins&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="token function"&gt;BOARD_InitBootClocks&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="token function"&gt;BOARD_InitBootPeripherals&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN class="comment token"&gt;/* Init FSL debug console. */&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="token function"&gt;BOARD_InitDebugConsole&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="token function"&gt;printf&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Hello World\n"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;/* Force the counter to be placed into memory. */&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;volatile&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;static&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;int&lt;/SPAN&gt; i &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="comment token"&gt;/* Enter an infinite loop, just incrementing a counter. */&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;while&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i&lt;SPAN class="operator token"&gt;++&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[A] Test A - Using the onboard debug interface ( USB cable )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; Start debugging&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; Press F6 until the debug cursor is over the i++ instruction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="[01] F6 from start to variable increment.jpg"&gt;&lt;IMG alt="[01] F6 from start to variable increment.jpg" src="https://community.nxp.com/t5/image/serverpage/image-id/4752iDF73CF75AAB5C206/image-size/large?v=v2&amp;amp;px=999" title="[01] F6 from start to variable increment.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Now press F6 several times until the green line ( debugging cursor ) disappears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="[02] Lost debugging cursor.jpg"&gt;&lt;IMG alt="[02] Lost debugging cursor.jpg" src="https://community.nxp.com/t5/image/serverpage/image-id/4753iA9C8DC3584A8AD12/image-size/large?v=v2&amp;amp;px=999" title="[02] Lost debugging cursor.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;WHY THE DEBUGGER DOESN'T STOP ON THIS INSTRUCTION ?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Look at the debugging led on the evaluation board .... it's blinking ...endlessy!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="[03] Debugger Led blinking.jpg"&gt;&lt;IMG alt="[03] Debugger Led blinking.jpg" src="https://community.nxp.com/t5/image/serverpage/image-id/4674iB358F23C795EDE80/image-size/large?v=v2&amp;amp;px=999" title="[03] Debugger Led blinking.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) The disassembly window shows that the &lt;STRONG&gt;i++&lt;/STRONG&gt; instruction hasn't been optimized everything should work properly!!!&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;If you force a breakpoint in the while loop the cursor reappears and the debugging is restored!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="[04] Disassembly window.jpg"&gt;&lt;IMG alt="[04] Disassembly window.jpg" src="https://community.nxp.com/t5/image/serverpage/image-id/4754i0B3A892C86B024B8/image-size/large?v=v2&amp;amp;px=999" title="[04] Disassembly window.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;WHY THE DEBBUGGER DOESN'T STOP ON THIS INSTRUCTION AND SEEMS TO FREELY RUN ?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[B] Test B - Using the Segger J-Link Base version 9.3 drivers 6.30b ( last available version )&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unpredictable behaviour.&lt;/P&gt;&lt;P&gt;Sometimes the F6 key is not mapped on the right function, sometimes the debugger jumps in the &lt;STRONG&gt;hardware_handler&lt;/STRONG&gt; routine.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[C] Test C - Using the J-Link 2&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same behaviour as explained in&lt;STRONG&gt; [A]&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="IMG_20180209_165716.jpg"&gt;&lt;IMG alt="IMG_20180209_165716.jpg" src="https://community.nxp.com/t5/image/serverpage/image-id/4709i3B432988282544AA/image-size/large?v=v2&amp;amp;px=999" title="IMG_20180209_165716.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:03:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpresso-10-1-1-and-MIMXRT1050-EVK-debug/m-p/734925#M1387</guid>
      <dc:creator>dimaios</dc:creator>
      <dc:date>2020-11-02T14:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpresso 10.1.1 and MIMXRT1050-EVK debug</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpresso-10-1-1-and-MIMXRT1050-EVK-debug/m-p/734926#M1388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Single stepping a very tight source loop like this can sometimes "confuse" GDB as you are effectively setting a breakpoint on the source line that you are already on, where you are already at a breakpoint from the previous step&amp;nbsp;(depending on compiler and debugger versions, as well as options being used).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Typically if this happens, just press the "Suspend" button to pause again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, if you click on the &lt;STRONG&gt;i-&amp;gt;&lt;/STRONG&gt; button in the Debug View to turn on "instruction stepping mode" you will then step at the instruction level rather than the source level, which will avoid the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also avoid the issue by adding a&amp;nbsp;&lt;STRONG&gt;__NOP();&amp;nbsp;&lt;/STRONG&gt;operation after the &lt;STRONG&gt;i++&lt;/STRONG&gt; statement inside the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MCUXpresso IDE Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 09:23:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpresso-10-1-1-and-MIMXRT1050-EVK-debug/m-p/734926#M1388</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2018-02-12T09:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: MCUXpresso 10.1.1 and MIMXRT1050-EVK debug</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpresso-10-1-1-and-MIMXRT1050-EVK-debug/m-p/734927#M1389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thanks for your kind support, now it's clear why it happens.&lt;/P&gt;&lt;P&gt;Any idea why SEGGER debugger doesn't work properly ?&lt;/P&gt;&lt;P&gt;In the same loop ( i++ ) jumps into &lt;STRONG&gt;hardware_handler&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 09:29:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/MCUXpresso-10-1-1-and-MIMXRT1050-EVK-debug/m-p/734927#M1389</guid>
      <dc:creator>dimaios</dc:creator>
      <dc:date>2018-02-12T09:29:07Z</dc:date>
    </item>
  </channel>
</rss>

