<?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: KDS 3.2 debug SIGTRAP in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-2-debug-SIGTRAP/m-p/527442#M6891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan,&lt;/P&gt;&lt;P&gt;Thank you for including the project.&amp;nbsp; It makes it easier to help.&lt;/P&gt;&lt;P&gt;A few observations.&lt;/P&gt;&lt;P&gt;First the Compiler Preprocessor Defined symbol for both "C" and "C++" was:&lt;/P&gt;&lt;P&gt;"CPU_MKL27Z64VMP4"&lt;/P&gt;&lt;P&gt;and needs to be:&lt;/P&gt;&lt;P&gt;"CPU_MKL27Z64VLH4" for the FRDM-KL27Z.&lt;/P&gt;&lt;P&gt;Second your code seems fine.&amp;nbsp; It seems the PEMicro debugger does not like debugging at slow frequencies.&amp;nbsp; In your case 1MHz.&amp;nbsp; If I left the default frequency then it debugged fine.&lt;/P&gt;&lt;P&gt;Switching to Segger JLink firmware allowed me to debug at the 1MHz clocking.&lt;/P&gt;&lt;P&gt;I've attached that firmware in ZIP file.&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>Fri, 01 Jul 2016 20:27:51 GMT</pubDate>
    <dc:creator>DavidS</dc:creator>
    <dc:date>2016-07-01T20:27:51Z</dc:date>
    <item>
      <title>KDS 3.2 debug SIGTRAP</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-2-debug-SIGTRAP/m-p/527441#M6890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have run into the exact same problem found in this thread: &lt;A _jive_internal="true" data-containerid="11213" data-containertype="14" data-objectid="389373" data-objecttype="1" href="https://community.nxp.com/thread/389373"&gt;KDS 3.2 debug mode not working with KL03Z32M4 &lt;/A&gt;.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was using KDS 3.2 with a few different MCUs.&amp;nbsp; Most recently the FRDM-KL27Z for proof of concept and a KL17 in implementation.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a basic app to poll a switch and turn on an LED (that is attached here).&amp;nbsp; This project uses KSDK 2.0 and the SDA from the FRMD-KL27Z for debugging.&amp;nbsp; This compiles fine and flashes correctly (with unnecessary NO RESET SCRIPT warning).&amp;nbsp; Letting the debugger go without any breakpoints causes the SIGTRAP issue:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="155093_155093.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121914i6EC47E70E1A46BB2/image-size/large?v=v2&amp;amp;px=999" role="button" title="155093_155093.png" alt="155093_155093.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/33049i017B064F652EABC1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the trap occurs the MCU does continue to run and button presses will toggle LEDs.&amp;nbsp; Once the trap has triggered I can add a break-point in the main loop and after hitting Resume the debugger will reach it, but if the break requires some event to occur the trap will re-trigger.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following Thomas's suggestion from the other thread, I installed KDS 3.1 (well, 3.0 and as much of the 3.1 zip as it could handle).&amp;nbsp; That did cause the PE drivers to re-install.&amp;nbsp; Load the same project and the debugger issue no longer occurs.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did not uninstall KDS 3.2, so I can go back and forth to see that the project works with 3.1 and not with 3.2.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created this post because the one linked is "assumed answered", but I don't feel that it really is.&amp;nbsp; Why is debugging for these MCUs not working in KDS 3.2?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338888"&gt;frdmkl27.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 16:58:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-2-debug-SIGTRAP/m-p/527441#M6890</guid>
      <dc:creator>Toe</dc:creator>
      <dc:date>2016-07-01T16:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: KDS 3.2 debug SIGTRAP</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-2-debug-SIGTRAP/m-p/527442#M6891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan,&lt;/P&gt;&lt;P&gt;Thank you for including the project.&amp;nbsp; It makes it easier to help.&lt;/P&gt;&lt;P&gt;A few observations.&lt;/P&gt;&lt;P&gt;First the Compiler Preprocessor Defined symbol for both "C" and "C++" was:&lt;/P&gt;&lt;P&gt;"CPU_MKL27Z64VMP4"&lt;/P&gt;&lt;P&gt;and needs to be:&lt;/P&gt;&lt;P&gt;"CPU_MKL27Z64VLH4" for the FRDM-KL27Z.&lt;/P&gt;&lt;P&gt;Second your code seems fine.&amp;nbsp; It seems the PEMicro debugger does not like debugging at slow frequencies.&amp;nbsp; In your case 1MHz.&amp;nbsp; If I left the default frequency then it debugged fine.&lt;/P&gt;&lt;P&gt;Switching to Segger JLink firmware allowed me to debug at the 1MHz clocking.&lt;/P&gt;&lt;P&gt;I've attached that firmware in ZIP file.&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>Fri, 01 Jul 2016 20:27:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-2-debug-SIGTRAP/m-p/527442#M6891</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-07-01T20:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: KDS 3.2 debug SIGTRAP</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-2-debug-SIGTRAP/m-p/527443#M6892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply David.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking for where the PEMicro allows me to change the debugging frequency.&amp;nbsp; I have not intentionally changed it away from the default if it is doing that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under the debugger tab in the debug configurations the target communication speed only allows me to change the delay after reset; the debug shift frequency is grayed out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was also using the PEMicro SDA because it functions similarly to the PEMicro Universal Multilink BDM.&amp;nbsp; I have another project that I also cannot debug properly and I do not have a Segger JLink that I can use to work with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can still debug this application with the older KDS, so maybe it is as simple as correcting a debugger option in 3.2?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 13:03:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-2-debug-SIGTRAP/m-p/527443#M6892</guid>
      <dc:creator>Toe</dc:creator>
      <dc:date>2016-07-05T13:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: KDS 3.2 debug SIGTRAP</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-2-debug-SIGTRAP/m-p/527444#M6893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another piece of information that may help here: I'm running in VLPR which sets up the clock to be 2MHz.&amp;nbsp; If the clock is running full speed (48MHz) this debug issue is not present.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 15:17:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-2-debug-SIGTRAP/m-p/527444#M6893</guid>
      <dc:creator>Toe</dc:creator>
      <dc:date>2016-07-05T15:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: KDS 3.2 debug SIGTRAP</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-2-debug-SIGTRAP/m-p/527445#M6894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I also experienced P&amp;amp;E can't working well with low frequency. I use Jlink Opensda instead.&lt;/P&gt;&lt;P&gt;You can upload FRDM-KL27Z board to Jlink OpenSDA interface very easy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12.0pt; font-family: 'Cambria','serif';"&gt;Segger J-Link OpenSDA Firmware update procedure:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Cambria','serif';"&gt;Disconnect all power, external circuits and USB cables. &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Cambria','serif';"&gt;Press and hold the button marked RESET &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Cambria','serif';"&gt;Connect a USB cable with debug interface as shown in above picture &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Cambria','serif';"&gt;The drive should mount named &lt;STRONG&gt;BOOTLOADER&lt;/STRONG&gt; in windows explore.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Cambria','serif';"&gt;The reset button can now be released &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Cambria','serif';"&gt;Drag and drop the file JLink_OpenSDA_V2_2015-04-23.bin onto the USB drive named &lt;STRONG style="font-family: 'Cambria','serif';"&gt;BOOTLOADER&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Cambria','serif';"&gt;Repower board normally&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG style="font-family: 'Cambria','serif';"&gt;Jlink CDC UART Port will show up in windows device manager.&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Cambria','serif';"&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/36331i3E984982EE8B5E42/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Cambria','serif';"&gt;Then user can download and debug code via KDS3.0 debugger Segger J-Link OpenSDA interface.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 04:13:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-2-debug-SIGTRAP/m-p/527445#M6894</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2016-07-06T04:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: KDS 3.2 debug SIGTRAP</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-2-debug-SIGTRAP/m-p/527446#M6895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had exactly the same problem when I upgraded from KDS 2.0.0 to 3.2.0 with some KL26Z projects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I upgraded the PEMicro SDA firmware on the board (FRDM-KL26Z) to v118, but that didn't help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then upgraded the PEMicro GDB plugin via the Eclipse updater site at:&lt;/P&gt;&lt;PRE style="color: #373737; background: #f4f4f4; border: 0px; margin: 0px 0px 1.625em; padding: 0.75em 1.625em;"&gt;&lt;A href="http://www.pemicro.com/eclipse/updates" rel="nofollow noopener noreferrer" target="test_blank"&gt;http://www.pemicro.com/eclipse/updates&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;There was a newer version there (2.5.9.201609160049) - once that was installed and KDS restarted, the SIGTRAP issue went away.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Sep 2016 14:04:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-2-debug-SIGTRAP/m-p/527446#M6895</guid>
      <dc:creator>nicktuckett</dc:creator>
      <dc:date>2016-09-25T14:04:17Z</dc:date>
    </item>
  </channel>
</rss>

