<?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>Kinetis Design StudioのトピックBUG: KDS debug call-stack fails with Segger JLink</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/BUG-KDS-debug-call-stack-fails-with-Segger-JLink/m-p/655286#M8577</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;K64F Freedom board, KDS 3.2.0 with all available updates installed, Windows 8 64-bit host.&lt;/P&gt;&lt;P&gt;Latest J-link updates are installed: JLink_V612a dated 2-December (KDS and J-link firmware both updated).&lt;BR /&gt;While KDS mostly works for an LED blinky application we're having serious problems with anything non-trivial (like our application).&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We gave up on the NXP-provided OpenSDA SWD interface as it was too slow and buggy. &lt;BR /&gt;Purchased a couple of Segger J-Link Base units, cut the required traces on the Freedom board, and gave it a try...&lt;/P&gt;&lt;P&gt;Many things work for my C/C++ application; with J-Link I can:&lt;/P&gt;&lt;P&gt;- download into flash (15x faster than NXP-provided programming),&lt;BR /&gt; - start a debug session,&lt;BR /&gt; - operate breakpoints&lt;BR /&gt; - examine variables (both stack and static)&lt;BR /&gt; - pause and continue execution&lt;BR /&gt; - single step&lt;/P&gt;&lt;P&gt;Unfortunately I cannot:&lt;BR /&gt;- see a stack call trace when the program is paused (though it shows the current routine)&lt;BR /&gt; &lt;BR /&gt; Here's a snapshot of an assert infinite loop I paused showing missing stack call trace&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="171012_171012.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122614i90AEA24100CDABED/image-size/large?v=v2&amp;amp;px=999" role="button" title="171012_171012.PNG" alt="171012_171012.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="JLink_missing_call_stack.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14454iDC9B8220F9254425/image-size/large?v=v2&amp;amp;px=999" role="button" title="JLink_missing_call_stack.PNG" alt="JLink_missing_call_stack.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Segger reproduced the problem and suggested adding the following option in the debugger configuration "other options" field:&amp;nbsp; &lt;SPAN style="font-size: 13px; font-family: andale mono,monospace;"&gt;-RTOS GDBserver/RTOSPlugin_FreeRTOS&lt;/SPAN&gt;&lt;/P&gt;Unfortunately that results in the debugger crashing first time it hits a breakpoint:&lt;BR /&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="171013_171013.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122615iA74D4C8F5606E817/image-size/large?v=v2&amp;amp;px=999" role="button" title="171013_171013.PNG" alt="171013_171013.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="JLinkGDBserver_crashPNG.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14500i45A98C5F2E148279/image-size/large?v=v2&amp;amp;px=999" role="button" title="JLinkGDBserver_crashPNG.PNG" alt="JLinkGDBserver_crashPNG.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any hope of getting this fixed?&lt;/P&gt;&lt;P&gt;Would you recommend using a different development environment for non-trivial applications on K64F?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; Thanks,&lt;BR /&gt; Best Regards, Dave&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Dec 2016 23:25:44 GMT</pubDate>
    <dc:creator>davenadler</dc:creator>
    <dc:date>2016-12-06T23:25:44Z</dc:date>
    <item>
      <title>BUG: KDS debug call-stack fails with Segger JLink</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/BUG-KDS-debug-call-stack-fails-with-Segger-JLink/m-p/655286#M8577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;K64F Freedom board, KDS 3.2.0 with all available updates installed, Windows 8 64-bit host.&lt;/P&gt;&lt;P&gt;Latest J-link updates are installed: JLink_V612a dated 2-December (KDS and J-link firmware both updated).&lt;BR /&gt;While KDS mostly works for an LED blinky application we're having serious problems with anything non-trivial (like our application).&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We gave up on the NXP-provided OpenSDA SWD interface as it was too slow and buggy. &lt;BR /&gt;Purchased a couple of Segger J-Link Base units, cut the required traces on the Freedom board, and gave it a try...&lt;/P&gt;&lt;P&gt;Many things work for my C/C++ application; with J-Link I can:&lt;/P&gt;&lt;P&gt;- download into flash (15x faster than NXP-provided programming),&lt;BR /&gt; - start a debug session,&lt;BR /&gt; - operate breakpoints&lt;BR /&gt; - examine variables (both stack and static)&lt;BR /&gt; - pause and continue execution&lt;BR /&gt; - single step&lt;/P&gt;&lt;P&gt;Unfortunately I cannot:&lt;BR /&gt;- see a stack call trace when the program is paused (though it shows the current routine)&lt;BR /&gt; &lt;BR /&gt; Here's a snapshot of an assert infinite loop I paused showing missing stack call trace&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="171012_171012.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122614i90AEA24100CDABED/image-size/large?v=v2&amp;amp;px=999" role="button" title="171012_171012.PNG" alt="171012_171012.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="JLink_missing_call_stack.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14454iDC9B8220F9254425/image-size/large?v=v2&amp;amp;px=999" role="button" title="JLink_missing_call_stack.PNG" alt="JLink_missing_call_stack.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Segger reproduced the problem and suggested adding the following option in the debugger configuration "other options" field:&amp;nbsp; &lt;SPAN style="font-size: 13px; font-family: andale mono,monospace;"&gt;-RTOS GDBserver/RTOSPlugin_FreeRTOS&lt;/SPAN&gt;&lt;/P&gt;Unfortunately that results in the debugger crashing first time it hits a breakpoint:&lt;BR /&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="171013_171013.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122615iA74D4C8F5606E817/image-size/large?v=v2&amp;amp;px=999" role="button" title="171013_171013.PNG" alt="171013_171013.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="JLinkGDBserver_crashPNG.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14500i45A98C5F2E148279/image-size/large?v=v2&amp;amp;px=999" role="button" title="JLinkGDBserver_crashPNG.PNG" alt="JLinkGDBserver_crashPNG.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any hope of getting this fixed?&lt;/P&gt;&lt;P&gt;Would you recommend using a different development environment for non-trivial applications on K64F?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; Thanks,&lt;BR /&gt; Best Regards, Dave&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 23:25:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/BUG-KDS-debug-call-stack-fails-with-Segger-JLink/m-p/655286#M8577</guid>
      <dc:creator>davenadler</dc:creator>
      <dc:date>2016-12-06T23:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: BUG: KDS debug call-stack fails with Segger JLink</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/BUG-KDS-debug-call-stack-fails-with-Segger-JLink/m-p/655287#M8578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;I have not faced such an issue, and I'm using that functionality on a daily base with complex projects.&lt;/P&gt;&lt;P&gt;I'm using&lt;/P&gt;&lt;P&gt;SEGGER J-Link GDB Server V6.12a Command Line Version&lt;/P&gt;&lt;P&gt;JLinkARM.dll V6.12a (DLL compiled Dec&amp;nbsp; 2 2016 16:44:26)&lt;/P&gt;&lt;P&gt;with the original GDB of KDS V3.2.0:&lt;/P&gt;&lt;P&gt;GNU gdb (GNU Tools for ARM Embedded Processors) 7.6.0.20140731-cvs&lt;/P&gt;&lt;P&gt;(you get the above information in the console view).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing you could check is the output of the console for Segger and the FreeRTOS plugin, see &lt;A class="link-titled" href="https://mcuoneclipse.com/2016/06/13/adding-freertos-thread-awareness-to-gdb-and-eclipse/" title="https://mcuoneclipse.com/2016/06/13/adding-freertos-thread-awareness-to-gdb-and-eclipse/"&gt;Adding FreeRTOS Thread Awareness to GDB and Eclipse | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The plugin needs some data structures in the FreeRTOS kernel available to work best. I have posted my log below as a reference. Other than that, because this is a crash in the Segger library (which is owned by Segger, and I'm sure they want to fix it), have you reported this on the Segger forum already? Segger is very responsive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEGGER J-Link GDB Server V6.12a Command Line Version&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JLinkARM.dll V6.12a (DLL compiled Dec&amp;nbsp; 2 2016 16:44:26)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----GDB Server start settings-----&lt;BR /&gt;GDBInit file:&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;&amp;nbsp; none&lt;BR /&gt;GDB Server Listening port:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2331&lt;BR /&gt;SWO raw output listening port: 2332&lt;BR /&gt;Terminal I/O port:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2333&lt;BR /&gt;Accept remote connection:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; localhost only&lt;BR /&gt;Generate logfile:&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; off&lt;BR /&gt;Verify download:&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; on&lt;BR /&gt;Init regs on start:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on&lt;BR /&gt;Silent mode:&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;&amp;nbsp;&amp;nbsp; off&lt;BR /&gt;Single run mode:&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; on&lt;BR /&gt;Target connection timeout:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 ms&lt;BR /&gt;------J-Link related settings------&lt;BR /&gt;J-Link Host interface:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USB&lt;BR /&gt;J-Link script:&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; none&lt;BR /&gt;J-Link settings file:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; none&lt;BR /&gt;------Target related settings------&lt;BR /&gt;Target device:&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; MK22FX512xxx12&lt;BR /&gt;Target interface:&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; SWD&lt;BR /&gt;Target interface speed:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1000kHz&lt;BR /&gt;Target endian:&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; little&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connecting to J-Link...&lt;BR /&gt;J-Link is connected.&lt;BR /&gt;Firmware: J-Link OpenSDA 2 compiled Oct 13 2015 12:10:27&lt;BR /&gt;Hardware: V1.00&lt;BR /&gt;S/N: 621000000&lt;BR /&gt;Checking target voltage...&lt;BR /&gt;Target voltage: 3.30 V&lt;BR /&gt;Listening on TCP/IP port 2331&lt;BR /&gt;Connecting to target...Connected to target&lt;BR /&gt;Waiting for GDB connection...Connected to 127.0.0.1&lt;BR /&gt;Reading all registers&lt;BR /&gt;Read 4 bytes @ address 0x00000000 (Data = 0x20000000)&lt;BR /&gt;Target interface speed set to 1000 kHz&lt;BR /&gt;Resetting target&lt;BR /&gt;Halting target CPU...&lt;BR /&gt;...Target halted (PC = 0x00005F78)&lt;BR /&gt;R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000&lt;BR /&gt;R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000&lt;BR /&gt;R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000&lt;BR /&gt;R12= 00000000, R13= 20000000, MSP= 20000000, PSP= 00000000&lt;BR /&gt;R14(LR) = FFFFFFFF, R15(PC) = 00005F78&lt;BR /&gt;XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000&lt;BR /&gt;CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00&lt;BR /&gt;Reading all registers&lt;BR /&gt;Select auto target interface speed (1429 kHz)&lt;BR /&gt;Flash breakpoints enabled&lt;BR /&gt;Loading RTOS plugin: GDBServer/RTOSPlugin_FreeRTOS...&lt;BR /&gt;RTOS plugin (v1.0) loaded successfully&lt;BR /&gt;RTOS plugin initialized successfully.&lt;BR /&gt;Received symbol: pxCurrentTCB (1FFFE414)&lt;BR /&gt;Received symbol: pxReadyTasksLists (1FFFE418)&lt;BR /&gt;Received symbol: xDelayedTaskList1 (1FFFE490)&lt;BR /&gt;Received symbol: xDelayedTaskList2 (1FFFE4A4)&lt;BR /&gt;Received symbol: pxDelayedTaskList (1FFFE4B8)&lt;BR /&gt;Received symbol: pxOverflowDelayedTaskList (1FFFE4BC)&lt;BR /&gt;Received symbol: xPendingReadyList (1FFFE4C0)&lt;BR /&gt;Received symbol: xTasksWaitingTermination (1FFFE4D4)&lt;BR /&gt;Received symbol: xSuspendedTaskList (1FFFE4EC)&lt;BR /&gt;Received symbol: uxCurrentNumberOfTasks (1FFFE500)&lt;BR /&gt;Received symbol: uxTopUsedPriority (1FFF8088)&lt;BR /&gt;Received symbol: uxTopReadyPriority (1FFFE508)&lt;BR /&gt;Received symbol: vPortEnableVFP (00011ED8)&lt;BR /&gt;All mandatory symbols successfully loaded.&lt;BR /&gt;All mandatory symbols successfully loaded.&lt;BR /&gt;Downloading 392 bytes @ address 0x00000000 - Verified OK&lt;BR /&gt;Downloading 16 bytes @ address 0x00000400 - Verified OK&lt;BR /&gt;Downloading 16128 bytes @ address 0x00000410 - Verified OK&lt;BR /&gt;Downloading 16128 bytes @ address 0x00004310 - Verified OK&lt;BR /&gt;Downloading 16128 bytes @ address 0x00008210 - Verified OK&lt;BR /&gt;Downloading 16176 bytes @ address 0x0000C110 - Verified OK&lt;BR /&gt;Downloading 16080 bytes @ address 0x00010040 - Verified OK&lt;BR /&gt;Downloading 16048 bytes @ address 0x00013F10 - Verified OK&lt;BR /&gt;Downloading 11232 bytes @ address 0x00017DC0 - Verified OK&lt;BR /&gt;Downloading 8 bytes @ address 0x0001A9A0 - Verified OK&lt;BR /&gt;Downloading 4 bytes @ address 0x0001A9A8 - Verified OK&lt;BR /&gt;Downloading 4 bytes @ address 0x0001A9AC - Verified OK&lt;BR /&gt;Downloading 472 bytes @ address 0x0001A9B0 - Verified OK&lt;BR /&gt;Downloading 36 bytes @ address 0x0001AB88 - Verified OK&lt;BR /&gt;Resetting target&lt;BR /&gt;Halting target CPU...&lt;BR /&gt;...Target halted (PC = 0x00005F78)&lt;BR /&gt;Sleep 500ms&lt;BR /&gt;Read 4 bytes @ address 0x00005F78 (Data = 0x46204C0B)&lt;BR /&gt;Read 2 bytes @ address 0x00005DBC (Data = 0xF002)&lt;BR /&gt;Read 2 bytes @ address 0x00005DBC (Data = 0xF002)&lt;BR /&gt;Read 2 bytes @ address 0x00005DBC (Data = 0xF002)&lt;BR /&gt;R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000&lt;BR /&gt;R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000&lt;BR /&gt;R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000&lt;BR /&gt;R12= 00000000, R13= 20000000, MSP= 20000000, PSP= 00000000&lt;BR /&gt;R14(LR) = FFFFFFFF, R15(PC) = 00005F78&lt;BR /&gt;XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000&lt;BR /&gt;CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00&lt;BR /&gt;Reading all registers&lt;BR /&gt;ERROR: Task not found.&lt;BR /&gt;Reading all registers&lt;BR /&gt;Read 4 bytes @ address 0x00005F78 (Data = 0x46204C0B)&lt;BR /&gt;Setting breakpoint @ address 0x00005DBC, Size = 2, BPHandle = 0x0001&lt;BR /&gt;Starting target CPU...&lt;BR /&gt;...Breakpoint reached @ address 0x00005DBC&lt;BR /&gt;Reading all registers&lt;BR /&gt;Removing breakpoint @ address 0x00005DBC, Size = 2&lt;BR /&gt;Read 4 bytes @ address 0x00005DBC (Data = 0xFF98F002)&lt;BR /&gt;Reading 64 bytes @ address 0x1FFFFFC0&lt;BR /&gt;Starting target CPU...&lt;BR /&gt;Debugger requested to halt target...&lt;BR /&gt;...Target halted (PC = 0x00013BA0)&lt;BR /&gt;Reading all registers&lt;BR /&gt;Read 4 bytes @ address 0x00013BA0 (Data = 0x2B00681B)&lt;BR /&gt;Reading 64 bytes @ address 0x1FFFCB00&lt;BR /&gt;Reading all registers&lt;BR /&gt;Read 4 bytes @ address 0x00012044 (Data = 0xF85D46BD)&lt;BR /&gt;Reading all registers&lt;BR /&gt;Read 4 bytes @ address 0x00012044 (Data = 0xF85D46BD)&lt;BR /&gt;Reading all registers&lt;BR /&gt;Read 4 bytes @ address 0x00012044 (Data = 0xF85D46BD)&lt;BR /&gt;Reading all registers&lt;BR /&gt;Read 4 bytes @ address 0x00012044 (Data = 0xF85D46BD)&lt;BR /&gt;Reading all registers&lt;BR /&gt;Read 4 bytes @ address 0x00012044 (Data = 0xF85D46BD)&lt;BR /&gt;Reading all registers&lt;BR /&gt;Read 4 bytes @ address 0x00012044 (Data = 0xF85D46BD)&lt;BR /&gt;Reading all registers&lt;BR /&gt;Read 4 bytes @ address 0x00012044 (Data = 0xF85D46BD)&lt;BR /&gt;Read 4 bytes @ address 0x00013BA0 (Data = 0x2B00681B)&lt;BR /&gt;Read 4 bytes @ address 0x00013AB0 (Data = 0x681B4B04)&lt;BR /&gt;Read 4 bytes @ address 0x00000000 (Data = 0x20000000)&lt;BR /&gt;Read 4 bytes @ address 0x00012044 (Data = 0xF85D46BD)&lt;BR /&gt;Read 4 bytes @ address 0x00013BA0 (Data = 0x2B00681B)&lt;BR /&gt;Read 4 bytes @ address 0x00012044 (Data = 0xF85D46BD)&lt;BR /&gt;Read 4 bytes @ address 0x00013BA0 (Data = 0x2B00681B)&lt;BR /&gt;Read 4 bytes @ address 0x00012044 (Data = 0xF85D46BD)&lt;BR /&gt;Read 4 bytes @ address 0x00013BA0 (Data = 0x2B00681B)&lt;BR /&gt;Read 4 bytes @ address 0x00012044 (Data = 0xF85D46BD)&lt;BR /&gt;Read 4 bytes @ address 0x00013BA0 (Data = 0x2B00681B)&lt;BR /&gt;Read 4 bytes @ address 0x00012044 (Data = 0xF85D46BD)&lt;BR /&gt;Read 4 bytes @ address 0x00013BA0 (Data = 0x2B00681B)&lt;BR /&gt;Read 4 bytes @ address 0x00012044 (Data = 0xF85D46BD)&lt;BR /&gt;Read 4 bytes @ address 0x00013BA0 (Data = 0x2B00681B)&lt;BR /&gt;Read 4 bytes @ address 0x00012044 (Data = 0xF85D46BD)&lt;BR /&gt;Read 4 bytes @ address 0x00013BA0 (Data = 0x2B00681B)&lt;BR /&gt;Read 4 bytes @ address 0x00013AB0 (Data = 0x681B4B04)&lt;BR /&gt;Read 4 bytes @ address 0x00000000 (Data = 0x20000000)&lt;BR /&gt;Starting target CPU...&lt;BR /&gt;Debugger requested to halt target...&lt;BR /&gt;...Target halted (PC = 0x000038D0)&lt;BR /&gt;Reading all registers&lt;BR /&gt;Read 4 bytes @ address 0x000038D0 (Data = 0x4A187BBB)&lt;BR /&gt;Reading 64 bytes @ address 0x1FFFB580&lt;BR /&gt;Read 4 bytes @ address 0x000039D0 (Data = 0x617B2300)&lt;BR /&gt;Reading 64 bytes @ address 0x1FFFB5C0&lt;BR /&gt;Read 4 bytes @ address 0x00003C54 (Data = 0x49094808)&lt;BR /&gt;Read 4 bytes @ address 0x00004304 (Data = 0x681B4B0B)&lt;BR /&gt;Read 4 bytes @ address 0x0000435C (Data = 0xF00E200A)&lt;BR /&gt;Reading 64 bytes @ address 0x1FFFB600&lt;BR /&gt;Read 4 bytes @ address 0x00000000 (Data = 0x20000000)&lt;BR /&gt;Reading all registers&lt;BR /&gt;Read 4 bytes @ address 0x00012044 (Data = 0xF85D46BD)&lt;BR /&gt;Read 4 bytes @ address 0x000038D0 (Data = 0x4A187BBB)&lt;BR /&gt;Reading all registers&lt;BR /&gt;Read 4 bytes @ address 0x00012044 (Data = 0xF85D46BD)&lt;BR /&gt;Read 4 bytes @ address 0x000038D0 (Data = 0x4A187BBB)&lt;BR /&gt;Reading all registers&lt;BR /&gt;Read 4 bytes @ address 0x00012044 (Data = 0xF85D46BD)&lt;BR /&gt;Read 4 bytes @ address 0x000038D0 (Data = 0x4A187BBB)&lt;BR /&gt;Reading all registers&lt;BR /&gt;Read 4 bytes @ address 0x00012044 (Data = 0xF85D46BD)&lt;BR /&gt;Read 4 bytes @ address 0x000038D0 (Data = 0x4A187BBB)&lt;BR /&gt;Reading all registers&lt;BR /&gt;Read 4 bytes @ address 0x00012044 (Data = 0xF85D46BD)&lt;BR /&gt;Read 4 bytes @ address 0x000038D0 (Data = 0x4A187BBB)&lt;BR /&gt;Reading all registers&lt;BR /&gt;Read 4 bytes @ address 0x00012044 (Data = 0xF85D46BD)&lt;BR /&gt;Read 4 bytes @ address 0x000038D0 (Data = 0x4A187BBB)&lt;BR /&gt;Reading all registers&lt;BR /&gt;Read 4 bytes @ address 0x00012044 (Data = 0xF85D46BD)&lt;BR /&gt;Read 4 bytes @ address 0x000038D0 (Data = 0x4A187BBB)&lt;BR /&gt;Read 4 bytes @ address 0x00012044 (Data = 0xF85D46BD)&lt;BR /&gt;Read 4 bytes @ address 0x00013ABC (Data = 0xF950F7F2)&lt;BR /&gt;Reading 64 bytes @ address 0x1FFFCB00&lt;BR /&gt;Read 4 bytes @ address 0x00000000 (Data = 0x20000000)&lt;BR /&gt;Read 4 bytes @ address 0x000038D0 (Data = 0x4A187BBB)&lt;BR /&gt;Reading 64 bytes @ address 0x1FFFB580&lt;BR /&gt;Read 4 bytes @ address 0x000039D0 (Data = 0x617B2300)&lt;BR /&gt;Reading 64 bytes @ address 0x1FFFB5C0&lt;BR /&gt;Read 4 bytes @ address 0x00003C54 (Data = 0x49094808)&lt;BR /&gt;Read 4 bytes @ address 0x00004304 (Data = 0x681B4B0B)&lt;BR /&gt;Read 4 bytes @ address 0x0000435C (Data = 0xF00E200A)&lt;BR /&gt;Reading 64 bytes @ address 0x1FFFB600&lt;BR /&gt;Read 4 bytes @ address 0x00000000 (Data = 0x20000000)&lt;BR /&gt;Read 4 bytes @ address 0x00012044 (Data = 0xF85D46BD)&lt;BR /&gt;Read 4 bytes @ address 0x00013ABC (Data = 0xF950F7F2)&lt;BR /&gt;Reading 64 bytes @ address 0x1FFFCB00&lt;BR /&gt;Read 4 bytes @ address 0x00000000 (Data = 0x20000000)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 07:31:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/BUG-KDS-debug-call-stack-fails-with-Segger-JLink/m-p/655287#M8578</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2016-12-07T07:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: BUG: KDS debug call-stack fails with Segger JLink</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/BUG-KDS-debug-call-stack-fails-with-Segger-JLink/m-p/655288#M8579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Erich, yes reported to Segger, who have confirmed this morning they can reproduce the problem...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 14:37:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/BUG-KDS-debug-call-stack-fails-with-Segger-JLink/m-p/655288#M8579</guid>
      <dc:creator>davenadler</dc:creator>
      <dc:date>2016-12-07T14:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: BUG: KDS debug call-stack fails with Segger JLink</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/BUG-KDS-debug-call-stack-fails-with-Segger-JLink/m-p/655289#M8580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This morning Segger confirmed this is an NXP bug; KDS call stack display for FreeRTOS tasks fails on Windows versions after version 7:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;TT&gt;Hi Dave,&lt;BR /&gt; &lt;BR /&gt; after some investigation, it turned out this depends on the operating system.&lt;BR /&gt; With windows 7, the call stack is correctly shown and using windows 10 it&lt;BR /&gt; fails the same way as in your screenshot.&lt;BR /&gt; &lt;BR /&gt; I'd like to think this is display error caused by eclipse, so NXP would be in&lt;BR /&gt; charge of fixing this bug. From our side, the GDB server is behaving correctly.&lt;BR /&gt; &lt;BR /&gt; Best regards,&lt;BR /&gt; Arne&lt;BR /&gt; &lt;/TT&gt;&lt;/P&gt;&lt;P&gt;Here's an example of the FreeRTOS task viewer showing multiple threads (tasks), with no call stack information (just shows the point where the thread is blocked instead of the complete call stack):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="KDS_shows threads_but_call_stack_not_working_GDB_log.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/9729i76E670E21AA9277E/image-size/large?v=v2&amp;amp;px=999" role="button" title="KDS_shows threads_but_call_stack_not_working_GDB_log.png" alt="KDS_shows threads_but_call_stack_not_working_GDB_log.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;From Segger, here's and example of a correct display on Windows 7:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="KDS_example_shows threads_and_call_stack.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/9764i01BE3ABB9A513363/image-size/large?v=v2&amp;amp;px=999" role="button" title="KDS_example_shows threads_and_call_stack.png" alt="KDS_example_shows threads_and_call_stack.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 30px;"&gt;&lt;STRONG&gt;NXP - Any hope of getting this fixed??&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;Thanks,&lt;BR /&gt;Best Regards, Dave&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 19:16:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/BUG-KDS-debug-call-stack-fails-with-Segger-JLink/m-p/655289#M8580</guid>
      <dc:creator>davenadler</dc:creator>
      <dc:date>2016-12-14T19:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: BUG: KDS debug call-stack fails with Segger JLink</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/BUG-KDS-debug-call-stack-fails-with-Segger-JLink/m-p/655290#M8581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave&lt;/P&gt;&lt;P&gt;interesting point about Windows 7 vs. Windows 10. It is only that I have not seen this on my end, and I'm using Windows 10. You had reported a crash above in the Segger library, so are you saying that Segger has already fixed that? This is not clear from your screenshot. Neverless, if you can upload your project I could give it a try on my side. If you don't want to share it publicly, you can send it to my email address noted on&amp;nbsp;&lt;A class="link-titled" href="https://mcuoneclipse.com/about/" title="https://mcuoneclipse.com/about/"&gt;About&lt;/A&gt;&amp;nbsp; and I'll have a look (I assume you are using a FRDM-K64F, correct?).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other thought I have is this: have you already configured this in FreeRTOSConfig.h&lt;/P&gt;&lt;P&gt;#define configTASK_RETURN_ADDRESS&amp;nbsp;&amp;nbsp; 0&amp;nbsp; /* return address of task is zero */&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;Because this terminates the stack with a zero return address. Otherwise, depending on the GDB version, this can confuse GDB (still, the Segger DLL shall not crash). That setting is discussed here as well: &lt;A href="https://community.nxp.com/thread/335076"&gt;https://community.nxp.com/thread/335076&lt;/A&gt;&amp;nbsp; and I always have that macro set to zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 20:11:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/BUG-KDS-debug-call-stack-fails-with-Segger-JLink/m-p/655290#M8581</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2016-12-14T20:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: BUG: KDS debug call-stack fails with Segger JLink</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/BUG-KDS-debug-call-stack-fails-with-Segger-JLink/m-p/655291#M8582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apologies Erich, I skipped a few steps required to avoid crashing and get FreeRTOS task viewer functioning; this from Segger. I've done all of these:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Set configUSE_PORT_OPTIMISED_TASK_SELECTION to 0&lt;/LI&gt;&lt;LI&gt;Added to the debugger options: -RTOS GDBserver/RTOSPlugin_FreeRTOS&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;TT&gt;Create a dummy symbol uxTopUsedPriority (will be preferred to &lt;/TT&gt;&lt;/SPAN&gt;&lt;TT&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;TT&gt;uxTopReadyPriority&lt;/TT&gt;) and set it to configMAX_PRIORITIES. &lt;BR /&gt;Sample code: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="" href="https://github.com/gnuarmeclipse/openocd/blob/gnuarmeclipse-dev/contrib/rtos-helpers/FreeRTOS-openocd.c"&gt;https://github.com/gnuarmeclipse/openocd/blob/gnuarmeclipse-dev/contrib/rtos-helpers/FreeRTOS-openocd.c&lt;/A&gt;&lt;/TT&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note: All of the above should be done for all NXP FreeRTOS examples and NXP-wizard-generated FreeRTOS projects!!&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 20:32:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/BUG-KDS-debug-call-stack-fails-with-Segger-JLink/m-p/655291#M8582</guid>
      <dc:creator>davenadler</dc:creator>
      <dc:date>2016-12-14T20:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: BUG: KDS debug call-stack fails with Segger JLink</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/BUG-KDS-debug-call-stack-fails-with-Segger-JLink/m-p/655292#M8583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Erich Styger wrote: ... The other thought I have is this: have you already configured this in FreeRTOSConfig.h&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#define configTASK_RETURN_ADDRESS&amp;nbsp;&amp;nbsp; 0&lt;/STRONG&gt;&amp;nbsp; /* return address of task is zero */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because this terminates the stack with a zero return address. Otherwise, depending on the GDB version, this can confuse GDB (still, the Segger DLL shall not crash).&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;OK, I added this configuration setting. While the call stack displays goofy "called from 0", it is finally usable:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="KDS_showing_callback_stack_plus_0.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/9763i5A9E90305196B799/image-size/large?v=v2&amp;amp;px=999" role="button" title="KDS_showing_callback_stack_plus_0.PNG" alt="KDS_showing_callback_stack_plus_0.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks Erich!&lt;BR /&gt;&lt;STRONG&gt;Again: this along with the above (1-3) should be done in all NXP FreeRTOS examples and NXP-wizard-generated FreeRTOS projects!! NXP is making hard for customers by not setting this up in the first place!&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 23:14:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/BUG-KDS-debug-call-stack-fails-with-Segger-JLink/m-p/655292#M8583</guid>
      <dc:creator>davenadler</dc:creator>
      <dc:date>2016-12-14T23:14:45Z</dc:date>
    </item>
  </channel>
</rss>

