<?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>CodeWarrior Development ToolsのトピックDebugger Lost Communication with MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Debugger-Lost-Communication-with-MCU/m-p/359081#M1823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Hi Everyone:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;I am a starter with Freescale products. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I am working on a LED blinking program.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;I found&amp;nbsp; two lines of port control code would lead to debugger complaining bad communication with MCU. &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="14114_14114.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119911i09E3ED08A4CD195E/image-size/large?v=v2&amp;amp;px=999" role="button" title="14114_14114.png" alt="14114_14114.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="SS.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45803iC8B80B08C8597AEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="SS.png" alt="SS.png" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;With the two port control lines, the code actually is correct because I saw the led blinking after downloading. &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;However, the break points or stop are not available due to the communication issue.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Without the two port control lines of code, communication problem doesn't occur.&amp;nbsp; LED will then not blinking because ports not configured correctly&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;I am using &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;Tower system TWR-K60100M with a MK60DN512VMD10 MCU&lt;/SPAN&gt;.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Following is the code.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#include "derivative.h" /* include peripheral declarations */&lt;/P&gt;&lt;P&gt;int&amp;nbsp; main(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; int&amp;nbsp; counter=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SIM_SCGC5 |= (SIM_SCGC5_PORTA_MASK );&amp;nbsp;&amp;nbsp; /*clock gating*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; PORTA_GPCLR=0xFFFF0000|PORT_PCR_DSE_MASK|PORT_PCR_MUX(1) ; /*Port Control*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; PORTA_GPCHR=0xFFFF0000|PORT_PCR_DSE_MASK|PORT_PCR_MUX(1) ; /*Port Control*/&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; GPIOA_PDDR=0xFFFFFFFF; &lt;/P&gt;&lt;P&gt;&amp;nbsp; for(;counter&amp;lt;210000;counter++)&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(counter&amp;lt;100000){&lt;/P&gt;&lt;P&gt;&amp;nbsp; GPIOA_PDOR=0xFFFFFFFF; &lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; else{&lt;/P&gt;&lt;P&gt;&amp;nbsp; GPIOA_PDOR=0; &lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(counter&amp;gt;200000)&lt;/P&gt;&lt;P&gt;&amp;nbsp; counter=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; while(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; return 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Aug 2014 14:21:59 GMT</pubDate>
    <dc:creator>yicui</dc:creator>
    <dc:date>2014-08-14T14:21:59Z</dc:date>
    <item>
      <title>Debugger Lost Communication with MCU</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Debugger-Lost-Communication-with-MCU/m-p/359081#M1823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Hi Everyone:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;I am a starter with Freescale products. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I am working on a LED blinking program.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;I found&amp;nbsp; two lines of port control code would lead to debugger complaining bad communication with MCU. &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="14114_14114.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119911i09E3ED08A4CD195E/image-size/large?v=v2&amp;amp;px=999" role="button" title="14114_14114.png" alt="14114_14114.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="SS.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45803iC8B80B08C8597AEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="SS.png" alt="SS.png" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;With the two port control lines, the code actually is correct because I saw the led blinking after downloading. &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;However, the break points or stop are not available due to the communication issue.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Without the two port control lines of code, communication problem doesn't occur.&amp;nbsp; LED will then not blinking because ports not configured correctly&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;I am using &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;Tower system TWR-K60100M with a MK60DN512VMD10 MCU&lt;/SPAN&gt;.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Following is the code.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#include "derivative.h" /* include peripheral declarations */&lt;/P&gt;&lt;P&gt;int&amp;nbsp; main(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; int&amp;nbsp; counter=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SIM_SCGC5 |= (SIM_SCGC5_PORTA_MASK );&amp;nbsp;&amp;nbsp; /*clock gating*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; PORTA_GPCLR=0xFFFF0000|PORT_PCR_DSE_MASK|PORT_PCR_MUX(1) ; /*Port Control*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; PORTA_GPCHR=0xFFFF0000|PORT_PCR_DSE_MASK|PORT_PCR_MUX(1) ; /*Port Control*/&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; GPIOA_PDDR=0xFFFFFFFF; &lt;/P&gt;&lt;P&gt;&amp;nbsp; for(;counter&amp;lt;210000;counter++)&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(counter&amp;lt;100000){&lt;/P&gt;&lt;P&gt;&amp;nbsp; GPIOA_PDOR=0xFFFFFFFF; &lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; else{&lt;/P&gt;&lt;P&gt;&amp;nbsp; GPIOA_PDOR=0; &lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(counter&amp;gt;200000)&lt;/P&gt;&lt;P&gt;&amp;nbsp; counter=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; while(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; return 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 14:21:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Debugger-Lost-Communication-with-MCU/m-p/359081#M1823</guid>
      <dc:creator>yicui</dc:creator>
      <dc:date>2014-08-14T14:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger Lost Communication with MCU</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Debugger-Lost-Communication-with-MCU/m-p/359082#M1824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The debugger talks to the CPU through the JTAG lines on Port A 0-3. When the MCU powers up these lines default to that purpose. Your are reprogramming too many pins on PortA to be GPIO. You need to be more selective in the number of PortA Pins you reconfigure to be GPIO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Norm Davies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 17:17:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Debugger-Lost-Communication-with-MCU/m-p/359082#M1824</guid>
      <dc:creator>ndavies</dc:creator>
      <dc:date>2014-08-14T17:17:46Z</dc:date>
    </item>
  </channel>
</rss>

