<?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: Debugging problems in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugging-problems/m-p/398030#M2583</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zhang Jun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, that did make some difference but in the end that was not the reason for all the problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The final solution turned out to be really silly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was not using the FRDM-KL03Z board on its own but I was also using a digital scope to check my incoming signals.&lt;/P&gt;&lt;P&gt;It turned out that the scope was not plugged into the mains with an earthed mains plug.&lt;/P&gt;&lt;P&gt;Instead, a modified mains plug was used: one without an earth connection so that the scope could be used for measurements where an earthed mains&amp;nbsp; plug caused problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, since then nobody remembered the specially modified plug so when when I started using the scope I did not know either.&lt;/P&gt;&lt;P&gt;I finally found out when I started getting electrical shocks from the scope and the connected freedom board.&lt;/P&gt;&lt;P&gt;Because of the missing earth connection and some filtering capacitors sitting between the mains supply input and the earth connection in the scope there was actually +/- 120 V AC ( half the mains supply ) on the scope's ground.&lt;/P&gt;&lt;P&gt;The filter capacitors don't allow much current so it was not destructive but it sure wrecked havoc on the USB link to the Freedom board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Connecting the PC's USB ground and that of the freedom board to the scope's ground with the 120 VAC on it is definitely not a good idea !!!&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Apr 2015 09:31:04 GMT</pubDate>
    <dc:creator>filipdossche</dc:creator>
    <dc:date>2015-04-16T09:31:04Z</dc:date>
    <item>
      <title>Debugging problems</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugging-problems/m-p/398028#M2581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I keep getting erratic debugger behavior. Sometimes it works, sometimes it does not.&lt;/P&gt;&lt;P&gt;I regularly get the folowing error: "Error setting BP @xxxx" and "Error removing BP @xxxx".&lt;/P&gt;&lt;P&gt;xxxx is a hex number.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regularly but less frequent it simply can't connect to the target.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is a real nuisance because when it happens I have have to restart KDS, clean the project, rebuild and try it again.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Doe anyone have any suggestions as to what I could do to correct this ( setting, config, ? )&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My setup is like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - KDS 2.0.0 with additional tools to support KL03Z processor (toolchain etc...)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - FRDM-KL03Z board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - The debug configuration uses the "OpenSDA Embedded debug - USB port" interface.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have noticed the "Debug shift frequency" is set at 5000 Khz and cannot be changed. The associated comment says it should be set at +/- 1/6th of the target clock rate.&lt;/P&gt;&lt;P&gt;maybe that has something to do with it because I know the board starts at 8 Mhz. I have to change the settings to make it work at the 48 Mhz i need.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="22016_22016.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120268i97E94E0E423A997D/image-size/large?v=v2&amp;amp;px=999" role="button" title="22016_22016.png" alt="22016_22016.png" /&gt;&lt;/span&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/51076i47D64480B546C96A/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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 12:16:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugging-problems/m-p/398028#M2581</guid>
      <dc:creator>filipdossche</dc:creator>
      <dc:date>2015-04-10T12:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging problems</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugging-problems/m-p/398029#M2582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Filip,&lt;/P&gt;&lt;P&gt;I suggest you update the firmware with MSD-DEBUG-FRDM-KL03Z_Pemicro_v114.SDA. then reset board and test connection again.&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/32bit/software/board_support_packages/FRDM-KL03-QSP.zip" title="http://cache.freescale.com/files/32bit/software/board_support_packages/FRDM-KL03-QSP.zip"&gt;http://cache.freescale.com/files/32bit/software/board_support_packages/FRDM-KL03-QSP.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with MSD-DEBUG-FRDM-KL03Z_Pemicro_v114.SDA, I can connect board every time.&lt;/P&gt;&lt;P&gt;attached is my config setting.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&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>Mon, 13 Apr 2015 07:54:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugging-problems/m-p/398029#M2582</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-04-13T07:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging problems</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugging-problems/m-p/398030#M2583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zhang Jun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, that did make some difference but in the end that was not the reason for all the problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The final solution turned out to be really silly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was not using the FRDM-KL03Z board on its own but I was also using a digital scope to check my incoming signals.&lt;/P&gt;&lt;P&gt;It turned out that the scope was not plugged into the mains with an earthed mains plug.&lt;/P&gt;&lt;P&gt;Instead, a modified mains plug was used: one without an earth connection so that the scope could be used for measurements where an earthed mains&amp;nbsp; plug caused problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, since then nobody remembered the specially modified plug so when when I started using the scope I did not know either.&lt;/P&gt;&lt;P&gt;I finally found out when I started getting electrical shocks from the scope and the connected freedom board.&lt;/P&gt;&lt;P&gt;Because of the missing earth connection and some filtering capacitors sitting between the mains supply input and the earth connection in the scope there was actually +/- 120 V AC ( half the mains supply ) on the scope's ground.&lt;/P&gt;&lt;P&gt;The filter capacitors don't allow much current so it was not destructive but it sure wrecked havoc on the USB link to the Freedom board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Connecting the PC's USB ground and that of the freedom board to the scope's ground with the 120 VAC on it is definitely not a good idea !!!&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 09:31:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Debugging-problems/m-p/398030#M2583</guid>
      <dc:creator>filipdossche</dc:creator>
      <dc:date>2015-04-16T09:31:04Z</dc:date>
    </item>
  </channel>
</rss>

