<?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: Debugger disconnects after code download in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325854#M431</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Erich, I tried using the "clean" option and rebuilding, but it had no effect on the issue I was seeing.&amp;nbsp; The only thing I'm leaning toward is it having files edited outside of KDS.&amp;nbsp; I had the map file and the suspect source file open in an outside text editor, and I wonder if that was causing problems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jul 2014 17:38:41 GMT</pubDate>
    <dc:creator>davidsherman</dc:creator>
    <dc:date>2014-07-30T17:38:41Z</dc:date>
    <item>
      <title>Debugger disconnects after code download</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325841#M418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using a KE06 freedom board an was compiling, downloading, and debugging with no problems. Yesterday when I had compiled and downloading software the PE debugger disconnects and does not end up at the main() breakpoint. I have taken a snapshot of the debug screen when this happens. I see that the error is "source not found 0x1ba8", if I look in the map file that address corresponds to thumb startup code (see snippet below), why would it not be able to find that? Isn't that automatically generated? I am using processor expert to generate the low level stuff....&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.text.__thumb_startup&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; 0x00001ba8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x48 ./Project_Settings/Startup_Code/startup.o&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; 0x00001ba8&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; __thumb_startup&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 11:36:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325841#M418</guid>
      <dc:creator>bitjockey</dc:creator>
      <dc:date>2014-07-29T11:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger disconnects after code download</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325842#M419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Few ideas:&lt;/P&gt;&lt;P&gt;- does your application change/remap the debug pins? If your application cuts of the debug pins, then the debugger will loose connection.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Check if you have not used debug/SWD pins for your application.&lt;/P&gt;&lt;P&gt;- don't run to main(). Instead, set a breakpoint for your startup code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45304i22F8530CA213BF53/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I assume that you will be able to step through your startup code, and then you should be able to see what is causing the problem.&lt;/P&gt;&lt;P&gt;- check the various console output and log for debugging:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45305i47B0D404F4FB23DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There might be a hint in it what is causing this.&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>Tue, 29 Jul 2014 12:54:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325842#M419</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-07-29T12:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger disconnects after code download</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325843#M420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply, I didn't reconfigure any pins. I took your advice and entered the _thumb_startup in my debug startup menu. Inadvertently forgot the second underscore at the beginning and when I started the debugger it operated as normal breakpointing at 'main'. Went back in and entered main in my debug startup breakpoint and it still works?!?! I looked to me that the debugger was not pointing to where the _thumb_startup code should be, or the startup code did not compile correctly or output into the elf file correctly....I will keep an eye on it, if it happens again I will try to isolate what is going on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 15:55:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325843#M420</guid>
      <dc:creator>bitjockey</dc:creator>
      <dc:date>2014-07-29T15:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger disconnects after code download</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325844#M421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was about to ask a similar question, I'm suddenly experiencing the same problem.&amp;nbsp; I'm using MQX Lite.&amp;nbsp; What's strange is if I comment out a function call in one line in one of my MQX tasks, it works.&amp;nbsp; This line previously worked, however, and I haven't modified the function being called.&amp;nbsp; What's also peculiar is if I comment the body of the function out so it does nothing, it still has problems.&amp;nbsp; I can't seem to change the startup point to __thumb_startup, either.&amp;nbsp; I just get the message saying "No source available for 0x410", which appears to be __boot.&amp;nbsp; If I try to change the startup to __boot, it works IF I don't have that line enabled, otherwise it says "__boot" is not defined.&amp;nbsp; Very strange.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 20:55:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325844#M421</guid>
      <dc:creator>davidsherman</dc:creator>
      <dc:date>2014-07-29T20:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger disconnects after code download</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325845#M422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like the device made a reset or a hard fault. There can be many reasons for this, like accessing illegal instructions, stack overflow,.... or that the watchdog triggered (not sure if this is enabled).&lt;/P&gt;&lt;P&gt;Do you have the hard fault handler enabled so you know if this is not your problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you get that 'no source available', try to do an assembly single step. GDB loads the PC from the reset vector (you should see it in the registers view), but sometimes does find the source for it. Doing a step ensures that everything is updated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 05:47:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325845#M422</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-07-30T05:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger disconnects after code download</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325846#M423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Erich, but I can't single step because the debugger disconnects before it even starts to debug.&amp;nbsp; I have checked the hard fault handler box, but it makes no difference.&amp;nbsp; I'm not using the watchdog timer.&amp;nbsp; I'm just scratching my head because it dies without even entering main(), so it's hard to tell what's happening.&amp;nbsp; If it is overflowing the stack, how do I tell?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 12:54:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325846#M423</guid>
      <dc:creator>davidsherman</dc:creator>
      <dc:date>2014-07-30T12:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger disconnects after code download</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325847#M424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you post your console logs of the debugger?&lt;/P&gt;&lt;P&gt;What about using another board?&lt;/P&gt;&lt;P&gt;Power supply?&lt;/P&gt;&lt;P&gt;USB cable to the probe?&lt;/P&gt;&lt;P&gt;I had once a half-dead debug cable which had kind of same symptoms, so do you have a spare one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 13:13:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325847#M424</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-07-30T13:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger disconnects after code download</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325848#M425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;Is this on the FRDM-KL25Z board or your own design?&lt;/P&gt;&lt;P&gt;Other suggestions to add to Erich's for your own design:&lt;/P&gt;&lt;P&gt;Please check that the NMI pin is disabled and the NMI pin has a pull-up.&lt;/P&gt;&lt;P&gt;RESET has strong pull-up.&lt;/P&gt;&lt;P&gt;Is code trying to initialize RTC and not RTC clock present?&lt;/P&gt;&lt;P&gt;Is debugger firmware updated?&amp;nbsp; What debugger hardware are you using?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 13:44:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325848#M425</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2014-07-30T13:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger disconnects after code download</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325849#M426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think it's a USB cable problem, I can comment out one line and it works fine.&amp;nbsp; The problem seems to be related to a structure defined in ROM.&amp;nbsp; If I even declare a pointer to point to it, it has this problem.&amp;nbsp; I have tried two different FRDM-KE06Z boards.&amp;nbsp; The board I was developing on has been modified with an external 48 MHz oscillator and a SPI eeprom attached to the SPI0 signals, but works fine with other applications.&amp;nbsp; I already found out about the NMI pin when I discovered it was shared with the SPI signal, so it is disabled now.&amp;nbsp; I have been using a P&amp;amp;E Multilink Universal FX debugger.&amp;nbsp; I tried another FRDM-KE06 board, new out of the box, and used the OpenSDA interface through a different USB cable, but it does exactly the same thing.&amp;nbsp; If I comment out the line, it starts debugging.&amp;nbsp; It occurred to me, is there a code size limit I've reached that limits debugging?&amp;nbsp; The line of code in question worked previously, but I've been porting code into other modules.&amp;nbsp; Here's the GDB log:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P&amp;amp;E GDB Server, Version 2.02.00.01&lt;/P&gt;&lt;P&gt;Copyright 2014, P&amp;amp;E Microcomputer Systems Inc, All rights reserved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loading library C:\Freescale\KDS_1.0.1\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_1.0.4.201404181439\win32\gdi\unit_ngs_arm_internal.dll ... Done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Command line arguments: -device=KE06Z128M4 -startserver -serverport=7224 -interface=OPENSDA -port=USB1 -speed=5000 -USE_CYCLONEPRO_RELAYS=0 -FORCE_MASS_ERASE=0&lt;/P&gt;&lt;P&gt;Device selected is ke06z128m4&lt;/P&gt;&lt;P&gt;User Specified Hardware Selection : Interface=OPENSDA and Port=USB1&lt;/P&gt;&lt;P&gt;Connecting to target.&lt;/P&gt;&lt;P&gt;OpenSDA detected - Flash Version 1.14&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Device is KE06Z128M4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mode is In-Circuit Debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Kinetis' is a registered trademark of Freescale.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(C)opyright 2012, P&amp;amp;E Microcomputer Systems, Inc. (&lt;A href="http://www.pemicro.com/"&gt;www.pemicro.com&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;API version is 101&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Server running on 127.0.0.1:7224&lt;/P&gt;&lt;P&gt;Connection from "127.0.0.1" via 127.0.0.1&lt;/P&gt;&lt;P&gt;Copyright 2012 P&amp;amp;E Microcomputer Systems,Inc.&lt;/P&gt;&lt;P&gt;Command Line :C:\Freescale\KDS_1.0.1\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_1.0.4.201404181439\win32\pegdbserver_console -device=KE06Z128M4 -startserver -serverport=7224 -interface=OPENSDA -port=USB1 -speed=5000 -USE_CYCLONEPRO_RELAYS=0 -FORCE_MAS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CMD&amp;gt;RE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initializing.&lt;/P&gt;&lt;P&gt;Target has been RESET and is active.&lt;/P&gt;&lt;P&gt;CMD&amp;gt;CM C:\Freescale\KDS_1.0.1\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_1.0.4.201404181439\win32\gdi\P&amp;amp;E\ke06z128m4_pflash_pipeline.arp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initializing.&lt;/P&gt;&lt;P&gt;Initialized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;;version 1.02, 02/07/2014, Copyright P&amp;amp;E Microcomputer Systems, &lt;A href="https://community.nxp.com/www.pemicro.com" target="test_blank"&gt;www.pemicro.com&lt;/A&gt; [ke_128k_pflash_ftmre_m0]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;;device freescale, ke06z128m4, desc=pflash_pipeline&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;;begin_cs device=$00000000, length=$00020000, ram=$20000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loading programming algorithm ...&lt;/P&gt;&lt;P&gt;Done.&lt;/P&gt;&lt;P&gt;CMD&amp;gt;EM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erasing.&lt;/P&gt;&lt;P&gt;Module has been erased.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initializing.&lt;/P&gt;&lt;P&gt;Initialized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;;version 1.02, 02/07/2014, Copyright P&amp;amp;E Microcomputer Systems, &lt;A href="https://community.nxp.com/www.pemicro.com" target="test_blank"&gt;www.pemicro.com&lt;/A&gt; [ke_128k_pflash_ftmre_m0]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;;device freescale, ke06z128m4, desc=pflash_pipeline&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;;begin_cs device=$00000000, length=$00020000, ram=$20000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loading programming algorithm ...&lt;/P&gt;&lt;P&gt;Done.&lt;/P&gt;&lt;P&gt;CMD&amp;gt;PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Programming.&lt;/P&gt;&lt;P&gt;Processing Object File Data ...&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;&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; &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Programmed.&lt;/P&gt;&lt;P&gt;CMD&amp;gt;VC&lt;/P&gt;&lt;P&gt;Verifying object file CRC-16 to device ranges ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; block 00000000-000000BF ...&lt;/P&gt;&lt;P&gt;Ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; block 00000400-0000A7C3 ...&lt;/P&gt;&lt;P&gt;Ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Checksum Verification Successful. (Cumulative CRC-16=$2F55)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CMD&amp;gt;RE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initializing.&lt;/P&gt;&lt;P&gt;Target has been RESET and is active.&lt;/P&gt;&lt;P&gt;Disconnected from "127.0.0.1" via 127.0.0.1&lt;/P&gt;&lt;P&gt;CTRL-C Pressed. Terminating Gracefully...&lt;/P&gt;&lt;P&gt;Target Disconnected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 14:13:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325849#M426</guid>
      <dc:creator>davidsherman</dc:creator>
      <dc:date>2014-07-30T14:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger disconnects after code download</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325850#M427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, that's not a code size limit. If you would reach that, it will not download and let you know.&lt;/P&gt;&lt;P&gt;About that pointer to that ROM location: is that a special area? It looks if you have that pointer, that memory gets refrenced (and linked).&lt;/P&gt;&lt;P&gt;And then it gets downloaded/flashed to that area. It looks to me that this causes something bad with the processor somehow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It could be the P&amp;amp;E Multilink? Try if the same happens if you use the OpenSDA. If yes, you might try it with the Segger J-Link firmware (just to make sure it is not a P&amp;amp;E issue):&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2013/05/16/freedom-board-with-segger-opensda-debug-firmware/" title="http://mcuoneclipse.com/2013/05/16/freedom-board-with-segger-opensda-debug-firmware/"&gt;Freedom Board with Segger OpenSDA Debug Firmware | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 14:23:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325850#M427</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-07-30T14:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger disconnects after code download</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325851#M428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There shouldn't be anything special about that area, it just has const qualifiers that place it in ROM, which I've confirmed in the linker map.&amp;nbsp; I haven't defined any specific linker sections.&amp;nbsp; As I've already said, it does exactly the same thing using OpenSDA.&amp;nbsp; Now things have a new wrinkle.&amp;nbsp; I had disabled some lines while troubleshooting this.&amp;nbsp; Now that I've re-enabled them, this problem has shifted to another line, a call to a function which contains _int_install_isr().&amp;nbsp; If I comment that line, it starts debugging, and with it enabIed it refuses to start.&amp;nbsp; Again, it does this on two different boards, using both OpenSDA and the Multilink.&amp;nbsp; The only other quirk I noticed is that KDS is complaining about not being able to find a source file, which has the function in question.&amp;nbsp; The source file does exist, and I can open it from within KDS, so I'm not sure why the console is now reporting "No source file".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 15:53:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325851#M428</guid>
      <dc:creator>davidsherman</dc:creator>
      <dc:date>2014-07-30T15:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger disconnects after code download</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325852#M429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay!&amp;nbsp; KDS does seem to be temperamental.&amp;nbsp; On a whim, I tried figuring out this error with the source file was about.&amp;nbsp; So, I copied it off, deleted it from the project, added a new source file with the same name, then copied over the old one.&amp;nbsp; Now, not only is the source file error message gone, but I can re-enable all the source lines and the debugger runs.&amp;nbsp; I can even make that pointer to the ROM structure again, and it's still good.&amp;nbsp; Crazy...&amp;nbsp; I'd log more bug reports about the strange things I've seen in KDS, like occasionally not being able to build at all because it says it can't write to temp files, but these things are so random I can't reproduce them.&amp;nbsp; Thanks for your assistance, Erich.&amp;nbsp; My apologies to the OP as well, I didn't mean to hijack your thread :smileysilly:.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 17:01:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325852#M429</guid>
      <dc:creator>davidsherman</dc:creator>
      <dc:date>2014-07-30T17:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger disconnects after code download</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325853#M430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;well, the important thing is that you are up and running again. Still it concerns me, because clearly things should not be that way. Maybe somehow your object file got corrupted? You can do a complete re-build with Project &amp;gt; Clean and then build, or simply delete the 'Debug' (or whatever name it has) output folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that I had once an issue that some files of my project were compiled for M4, but the rest for M0+: all kind of strange things happened when I tried to run that code in the Cortex M0+ :-(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 17:20:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325853#M430</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-07-30T17:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger disconnects after code download</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325854#M431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Erich, I tried using the "clean" option and rebuilding, but it had no effect on the issue I was seeing.&amp;nbsp; The only thing I'm leaning toward is it having files edited outside of KDS.&amp;nbsp; I had the map file and the suspect source file open in an outside text editor, and I wonder if that was causing problems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 17:38:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325854#M431</guid>
      <dc:creator>davidsherman</dc:creator>
      <dc:date>2014-07-30T17:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger disconnects after code download</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325855#M432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having the source file open should not matter at all. And if the file has been touched outside the IDE, Eclipse is pretty good to detect that. Where I had a problem in the past was that GDB was running as a zombie process (not terminated), and it kept the .elf file open. Rebuilding the files did not help, and the linker complained about the .elf file not accessible. Killing the gdb excecuable from the Windows task manager solved that problem :-)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 17:42:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325855#M432</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-07-30T17:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger disconnects after code download</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325856#M433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interestingly I've just run into the same exact issue.&amp;nbsp; My GDB Log is identical to what was posted earlier by David Sherman.&amp;nbsp; Using the PE Micro Multilink Universal.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had been making some very minor incremental code changes and this problem popped up.&amp;nbsp; Backing them out doesn't seem to get me back to a working config. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Confirmed that none of my GPIO configs are stepping on the SWD lines.&amp;nbsp; NMI is not enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone else seeing this have any advice beyond what David Sherman did to "reload" his &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 19:05:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325856#M433</guid>
      <dc:creator>DavidLundquist</dc:creator>
      <dc:date>2014-08-27T19:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger disconnects after code download</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325857#M434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does it happen as well if you download a simple/new project wizard created project?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 19:33:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325857#M434</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-08-27T19:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger disconnects after code download</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325858#M435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I just cured the same problem by doing Remove All breakpoints.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't had a chance to reproduce the issue and test this fix, but I had already tried fiddling with the USB connection and P&amp;amp;E USB Multilink / OSBDM/OSJTAG setup in the debug configuration, restarting Kinetis Design Studio, restarting the PC, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have had gdb (arm-none-eabi-gdb.exe) keep running in the background sometimes (if this happens, perhaps try using the red square "Terminate" button on the console window), but that is not what was causing this disconnect-after-download issue. It makes sense to me that a badly-placed breakpoint could upset the CPU following reset. Hopefully some other users can shed more light on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 21:53:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325858#M435</guid>
      <dc:creator>roreith</dc:creator>
      <dc:date>2014-09-04T21:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger disconnects after code download</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325859#M436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ro Reith, You are my hero,&amp;nbsp; I did everything for the same problem (hours lost) then found your post about removing all break points and bang!&amp;nbsp; I am off an running again!&lt;/P&gt;&lt;P&gt;thanks much:smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW I am using KDS 1.1.1 on a K60DN512Z no OS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 08:20:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325859#M436</guid>
      <dc:creator>claybarclay</dc:creator>
      <dc:date>2014-09-15T08:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger disconnects after code download</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325860#M437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I too have just seen similar behavior to Ro Reith and Clay Barclay.&amp;nbsp; I am using PE Micro USB Universal Multilink to debug my firmware and it seems to work for a few hours and then just stop working, failing in the same manner as the original poster described.&amp;nbsp; Hopefully this is the only fix that is needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 20:29:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugger-disconnects-after-code-download/m-p/325860#M437</guid>
      <dc:creator>nickheppermann</dc:creator>
      <dc:date>2014-09-15T20:29:07Z</dc:date>
    </item>
  </channel>
</rss>

