<?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 Debug freeze (probably on infinite loop after some call) in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-freeze-probably-on-infinite-loop-after-some-call/m-p/746986#M1604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i work much with lpcxpresso and now i try mcuxpresso(MCUXpresso IDE v10.1.1 [Build 606] [2018-01-02] ). And i find many difficulties with this tool. I use RedProbe+ with lpc11u35 custom board (there is no problem with it on older versions of lpcxpresso). For examle:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#include "system_LPC11Uxx.h"&lt;BR /&gt;&lt;BR /&gt;int main(void)&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SystemInit();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;for(;;)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;;&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If i run thru this program step by step then debug will freze in point of return from Cmsis's SystemInit and running loop. Ide is still operational but pressing suspend do nothing. In debug messages there is a spam of lines "Stopped: Step".&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;MCUXpresso RedlinkMulti Driver v10.1 (Dec 19 2017 16:58:35 - crt_emu_cm_redlink build 390)&lt;BR /&gt;Reconnected to existing redlink server (PID 4294967295)&lt;BR /&gt;Connecting to probe 2 core 0 (server PID unknown) gave 'OK'&lt;BR /&gt;Probe Firmware: Red Probe+ A (Code Red - Red Probe+)&lt;BR /&gt;Serial Number:&amp;nbsp; FTXDQ3G0A&lt;BR /&gt;VID:PID:&amp;nbsp; 21BD:0003&lt;BR /&gt;USB Path:&lt;BR /&gt;debug interface type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = &amp;lt;unknown&amp;gt; (DAP DP ID 0BB11477) over &amp;lt;error&amp;gt;&lt;BR /&gt;processor type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = Cortex-M0 (CPU ID 410CC200)&lt;BR /&gt;number of h/w breakpoints = 4&lt;BR /&gt;number of flash patches&amp;nbsp;&amp;nbsp; = 0&lt;BR /&gt;number of h/w watchpoints = 2&lt;BR /&gt;Probe(0): Connected&amp;amp;Reset. DpID: 0BB11477. CpuID: 410CC200. Info: &amp;lt;None&amp;gt;&lt;BR /&gt;Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.&lt;BR /&gt;Content of CoreSight Debug ROM(s):&lt;BR /&gt;RBASE E00FF000: CID B105100D PID 04000BB471 ROM dev (type 0x1)&lt;BR /&gt;ROM 1 E000E000: CID B105E00D PID 04000BB008 ChipIP dev SCS (type 0x0)&lt;BR /&gt;ROM 1 E0001000: CID B105E00D PID 04000BB00A ChipIP dev DWT (type 0x0)&lt;BR /&gt;ROM 1 E0002000: CID B105E00D PID 04000BB00B ChipIP dev FPB (type 0x0)&lt;BR /&gt;Inspected v.2 On-chip Flash Memory LPC11_12_13_64K_8K.cfx&lt;BR /&gt;Image 'LPC11_12_13 (64K Flash, min 8K RAM) Nov 14 2017 14:59:50'&lt;BR /&gt;NXP: LPC11U35/501&lt;BR /&gt;Connected: was_reset=true. was_stopped=false&lt;BR /&gt;MCUXpresso Free License - Downloads unlimited&lt;BR /&gt;Awaiting telnet connection to port 3330 ...&lt;BR /&gt;GDB nonstop mode disabled (using allstop mode)&lt;BR /&gt;Opening flash driver LPC11_12_13_64K_8K.cfx&lt;BR /&gt;Sending SYSRESETREQ to run flash driver&lt;BR /&gt;Writing 1232 bytes to address 0x00000000 in Flash&lt;BR /&gt;Erased/Wrote page&amp;nbsp; 0-0 with 1232 bytes in 56msec&lt;BR /&gt;Closing flash driver LPC11_12_13_64K_8K.cfx&lt;BR /&gt;Flash Write Done&lt;BR /&gt;Flash Program Summary: 1232 bytes in 0.06 seconds (21.48 KB/sec)&lt;BR /&gt;Starting execution using system reset and halt target&lt;BR /&gt;Stopped: Breakpoint #1&lt;BR /&gt;Stopped: Step&lt;BR /&gt;Stopped: Breakpoint #1&lt;BR /&gt;Stopped: Step&lt;BR /&gt;Stopped: Step&lt;BR /&gt;Stopped: Step&lt;BR /&gt;Stopped: Step&lt;/P&gt;&lt;P&gt;&amp;lt;and so on&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But if i'll debug this place in asembler mode all is ok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jan 2018 11:20:12 GMT</pubDate>
    <dc:creator>kabikov</dc:creator>
    <dc:date>2018-01-23T11:20:12Z</dc:date>
    <item>
      <title>Debug freeze (probably on infinite loop after some call)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-freeze-probably-on-infinite-loop-after-some-call/m-p/746986#M1604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i work much with lpcxpresso and now i try mcuxpresso(MCUXpresso IDE v10.1.1 [Build 606] [2018-01-02] ). And i find many difficulties with this tool. I use RedProbe+ with lpc11u35 custom board (there is no problem with it on older versions of lpcxpresso). For examle:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#include "system_LPC11Uxx.h"&lt;BR /&gt;&lt;BR /&gt;int main(void)&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SystemInit();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;for(;;)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;;&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If i run thru this program step by step then debug will freze in point of return from Cmsis's SystemInit and running loop. Ide is still operational but pressing suspend do nothing. In debug messages there is a spam of lines "Stopped: Step".&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;MCUXpresso RedlinkMulti Driver v10.1 (Dec 19 2017 16:58:35 - crt_emu_cm_redlink build 390)&lt;BR /&gt;Reconnected to existing redlink server (PID 4294967295)&lt;BR /&gt;Connecting to probe 2 core 0 (server PID unknown) gave 'OK'&lt;BR /&gt;Probe Firmware: Red Probe+ A (Code Red - Red Probe+)&lt;BR /&gt;Serial Number:&amp;nbsp; FTXDQ3G0A&lt;BR /&gt;VID:PID:&amp;nbsp; 21BD:0003&lt;BR /&gt;USB Path:&lt;BR /&gt;debug interface type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = &amp;lt;unknown&amp;gt; (DAP DP ID 0BB11477) over &amp;lt;error&amp;gt;&lt;BR /&gt;processor type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = Cortex-M0 (CPU ID 410CC200)&lt;BR /&gt;number of h/w breakpoints = 4&lt;BR /&gt;number of flash patches&amp;nbsp;&amp;nbsp; = 0&lt;BR /&gt;number of h/w watchpoints = 2&lt;BR /&gt;Probe(0): Connected&amp;amp;Reset. DpID: 0BB11477. CpuID: 410CC200. Info: &amp;lt;None&amp;gt;&lt;BR /&gt;Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.&lt;BR /&gt;Content of CoreSight Debug ROM(s):&lt;BR /&gt;RBASE E00FF000: CID B105100D PID 04000BB471 ROM dev (type 0x1)&lt;BR /&gt;ROM 1 E000E000: CID B105E00D PID 04000BB008 ChipIP dev SCS (type 0x0)&lt;BR /&gt;ROM 1 E0001000: CID B105E00D PID 04000BB00A ChipIP dev DWT (type 0x0)&lt;BR /&gt;ROM 1 E0002000: CID B105E00D PID 04000BB00B ChipIP dev FPB (type 0x0)&lt;BR /&gt;Inspected v.2 On-chip Flash Memory LPC11_12_13_64K_8K.cfx&lt;BR /&gt;Image 'LPC11_12_13 (64K Flash, min 8K RAM) Nov 14 2017 14:59:50'&lt;BR /&gt;NXP: LPC11U35/501&lt;BR /&gt;Connected: was_reset=true. was_stopped=false&lt;BR /&gt;MCUXpresso Free License - Downloads unlimited&lt;BR /&gt;Awaiting telnet connection to port 3330 ...&lt;BR /&gt;GDB nonstop mode disabled (using allstop mode)&lt;BR /&gt;Opening flash driver LPC11_12_13_64K_8K.cfx&lt;BR /&gt;Sending SYSRESETREQ to run flash driver&lt;BR /&gt;Writing 1232 bytes to address 0x00000000 in Flash&lt;BR /&gt;Erased/Wrote page&amp;nbsp; 0-0 with 1232 bytes in 56msec&lt;BR /&gt;Closing flash driver LPC11_12_13_64K_8K.cfx&lt;BR /&gt;Flash Write Done&lt;BR /&gt;Flash Program Summary: 1232 bytes in 0.06 seconds (21.48 KB/sec)&lt;BR /&gt;Starting execution using system reset and halt target&lt;BR /&gt;Stopped: Breakpoint #1&lt;BR /&gt;Stopped: Step&lt;BR /&gt;Stopped: Breakpoint #1&lt;BR /&gt;Stopped: Step&lt;BR /&gt;Stopped: Step&lt;BR /&gt;Stopped: Step&lt;BR /&gt;Stopped: Step&lt;/P&gt;&lt;P&gt;&amp;lt;and so on&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But if i'll debug this place in asembler mode all is ok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 11:20:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-freeze-probably-on-infinite-loop-after-some-call/m-p/746986#M1604</guid>
      <dc:creator>kabikov</dc:creator>
      <dc:date>2018-01-23T11:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Debug freeze (probably on infinite loop after some call)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-freeze-probably-on-infinite-loop-after-some-call/m-p/746987#M1605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GDB can sometimes have issues single stepping at the source level in very tight loops like this (and behaviour can vary between GDB versions). Try putting something into your loop, even if its just a "__NOP()".&amp;nbsp;&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>Wed, 24 Jan 2018 08:08:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Debug-freeze-probably-on-infinite-loop-after-some-call/m-p/746987#M1605</guid>
      <dc:creator>lpcxpresso_supp</dc:creator>
      <dc:date>2018-01-24T08:08:18Z</dc:date>
    </item>
  </channel>
</rss>

