<?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 MicrocontrollersのトピックRe: Measuring clock in KEA-128</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495948#M30802</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice and David,&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; Both of your answers are working for me.I want to know why normal GPIO toggling won't work.Is it because of number of instructions taken to do it?&lt;/P&gt;&lt;P&gt;Can you please provide any diagram or place where it is mentioned that PTH2 is directly connected to the system clock.Thank you ffor your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jan 2016 07:27:13 GMT</pubDate>
    <dc:creator>vigneshbalaji</dc:creator>
    <dc:date>2016-01-19T07:27:13Z</dc:date>
    <item>
      <title>Measuring clock in KEA-128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495945#M30799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I want to measure my clock in KEA-128.I am doing this by toggling a GPIO pin in it.I am running my clock at 20Mhz which was the standard example given by NXP(Freescale).But my scope is reading only 583 Khz only.I think I am missing something in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know the bus clock per instruction in KEA-128?&lt;/P&gt;&lt;P&gt;The clock per instruction of peripherals?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you suggest me a good method to measure the Clock of KEA-128 other than toggling a GPIO? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 18:08:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495945#M30799</guid>
      <dc:creator>vigneshbalaji</dc:creator>
      <dc:date>2016-01-18T18:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Measuring clock in KEA-128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495946#M30800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest using the FlexTimer in PWM mode, and have it toggle one of the outputs. It uses bus clock as the clock source and is much more straightforward than disassembling the source and computing instruction cycles.&amp;nbsp; Not all instructions use the same number of clock cycles.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 18:58:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495946#M30800</guid>
      <dc:creator>davidsherman</dc:creator>
      <dc:date>2016-01-18T18:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Measuring clock in KEA-128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495947#M30801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vignest,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check the bus clock on the pin of PTH2 .&lt;/P&gt;&lt;P&gt;First enable the "bus clock output " of this register :&lt;/P&gt;&lt;P&gt;SIM_SOPT0 -&amp;gt; CLKOE&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/35747i300384469F5AF71A/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;Hope it helps !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice Yang&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>Tue, 19 Jan 2016 04:38:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495947#M30801</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-01-19T04:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Measuring clock in KEA-128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495948#M30802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice and David,&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; Both of your answers are working for me.I want to know why normal GPIO toggling won't work.Is it because of number of instructions taken to do it?&lt;/P&gt;&lt;P&gt;Can you please provide any diagram or place where it is mentioned that PTH2 is directly connected to the system clock.Thank you ffor your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 07:27:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495948#M30802</guid>
      <dc:creator>vigneshbalaji</dc:creator>
      <dc:date>2016-01-19T07:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Measuring clock in KEA-128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495949#M30803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is there a constrain that we should not run the bus clock at 48Mhz???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I modified my clock like this and found that my controller is not in a flashable state.&lt;/P&gt;&lt;P&gt;Can you tell me what has happened behind this?I am not able to flash my controller after this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was my clock code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM_SOPT0 = SIM_SOPT0_CLKOE_MASK;&lt;/P&gt;&lt;P&gt;void Clk_Init()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; ICS_C1|=ICS_C1_IRCLKEN_MASK; /* Enable the internal reference clock*/ &lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt; while(!(ICS_S &amp;amp; ICS_S_LOCK_MASK)); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ICS_S |= ICS_S_LOCK_MASK ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Clear Loss of lock sticky bit */&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 12:32:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495949#M30803</guid>
      <dc:creator>vigneshbalaji</dc:creator>
      <dc:date>2016-01-19T12:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Measuring clock in KEA-128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495950#M30804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The bus clock cannot run faster than 24MHz.&amp;nbsp; You will have to change the SIM_CLKDIV register to make sure the bus clock is divided by 2 from the core clock BEFORE you set the ICS for 48MHz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 13:22:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495950#M30804</guid>
      <dc:creator>davidsherman</dc:creator>
      <dc:date>2016-01-19T13:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Measuring clock in KEA-128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495951#M30805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello VIGNESH,&lt;/P&gt;&lt;P&gt;- How about your code to toggling the GPIO pin ?&lt;/P&gt;&lt;P&gt;- About the bus clock output , please refer to the KEA128RM, the PTH2 pin is the bus clock pin,&lt;/P&gt;&lt;P&gt;&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/52198i43486396FEC9A375/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;and configure the "CLOKOE" and "BUSREF" to select the value of the pth2 pin out put.&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/52202iF9E3ED4FE35B5341/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;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice Yang&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, 20 Jan 2016 02:53:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495951#M30805</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-01-20T02:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Measuring clock in KEA-128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495952#M30806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi VIGNESH BALAJI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; See you again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actually, about this question, I already answer you in your CASE:&lt;/P&gt;&lt;P&gt;GPIO toggle is using the GPIO module, the GPIO module speed is not as faster as the bus clock.&lt;/P&gt;&lt;P&gt;Besides, if you use the GPIO, it still related to the instuction cycles, the compilier, the optimization function,ect.&lt;/P&gt;&lt;P&gt;All these factors will affect the GPIO toggle speed, you can check the according asm code, you will find the detals. If you still want to use GPIO, you can choose FGPIO, it will faster than the GPIO. Write the code, don't use the while, because while still need a lot of cycles, you can use the FGPIO code one by one directly.&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;FGPIOE_PRTOR=0X02;&lt;/P&gt;&lt;P&gt;FGPIOE_PRTOR=0X02;&lt;/P&gt;&lt;P&gt;FGPIOE_PRTOR=0X02;&lt;/P&gt;&lt;P&gt;FGPIOE_PRTOR=0X02;&lt;/P&gt;&lt;P&gt;FGPIOE_PRTOR=0X02;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I suggest you use the method which I told you to test the bus clock:&lt;/P&gt;&lt;P&gt;Configure SIM_SOPT0[CLKOE]=1, SIM_SOPT0[BUSFREF]=0, Bus clock output is enabled on PTH2.&lt;/P&gt;&lt;P&gt;This will output bus clock directly!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Jingjing&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, 20 Jan 2016 06:09:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495952#M30806</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-01-20T06:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Measuring clock in KEA-128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495953#M30807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you jing,&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; The FTM method was good&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 08:44:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495953#M30807</guid>
      <dc:creator>vigneshbalaji</dc:creator>
      <dc:date>2016-01-20T08:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Measuring clock in KEA-128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495954#M30808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, that's very good!&lt;/P&gt;&lt;P&gt;If you still have any question, please let me know!&lt;/P&gt;&lt;P&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Jingjing&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, 20 Jan 2016 09:18:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495954#M30808</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-01-20T09:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Measuring clock in KEA-128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495955#M30809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jing,&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; I am having a problem now.I ran my bus clock at 48 Mhz using the below code change.Now I am not able to flash my code.Can you tell me what went wrong and how to fix it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIM_SOPT0 = SIM_SOPT0_CLKOE_MASK;&lt;/P&gt;&lt;P&gt;void Clk_Init()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; ICS_C1|=ICS_C1_IRCLKEN_MASK; /* Enable the internal reference clock*/ &lt;/P&gt;&lt;P&gt;&amp;nbsp; while(!(ICS_S &amp;amp; ICS_S_LOCK_MASK));&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Wait for PLL lock, now running at 40 MHz (1280 * 31.25Khz) */&lt;/P&gt;&lt;P&gt;&amp;nbsp; ICS_S |= ICS_S_LOCK_MASK ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Clear Loss of lock sticky bit */&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was the error message I got.I am using segger to Flash the code.&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot (11).png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/52161i96F4F6FD54F2FF9C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (11).png" alt="Screenshot (11).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot (1).png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/52146iD42C35264981C8AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (1).png" alt="Screenshot (1).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 10:10:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495955#M30809</guid>
      <dc:creator>vigneshbalaji</dc:creator>
      <dc:date>2016-01-20T10:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Measuring clock in KEA-128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495956#M30810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you flashing it?&amp;nbsp; Are you using the debugger or the "flash from file" utility?&amp;nbsp; It appears this is the same code that set it for 48 MHz; where are you setting the SIM_CLKDIV register?&amp;nbsp; If you set a breakpoint before Clk_init is called, does it stop at the breakpoint if you try debugging?&amp;nbsp; From the error message it just looks like it stopped debugging, which is to be expected if you are attempting to run the bus at 48MHz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 14:42:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495956#M30810</guid>
      <dc:creator>davidsherman</dc:creator>
      <dc:date>2016-01-20T14:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Measuring clock in KEA-128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495957#M30811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am using the Debugger to flash it,which internally uses SWD.I saw that SWD cannot run above 24 Mhz but now my controller bus clock is running at 48Mhz.Can you tell me what to do now to Flash my controller again?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Th code is not even Flashing so I am not able to debug it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 14:59:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495957#M30811</guid>
      <dc:creator>vigneshbalaji</dc:creator>
      <dc:date>2016-01-20T14:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Measuring clock in KEA-128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495958#M30812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I said, you CANNOT run the bus at 48 MHz, the KEA128 will stop functioning and the debugger will stop working once the code you are showing sets the clock for 48MHz.&amp;nbsp; You will have to correct your code first and flash it with the correct code in order to debug.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 15:07:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495958#M30812</guid>
      <dc:creator>davidsherman</dc:creator>
      <dc:date>2016-01-20T15:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Measuring clock in KEA-128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495959#M30813</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;&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; I corrected my code and then only I flashed it.Please check the code Below.It is the standard Example given by NXP.Still I am facing the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void Clk_Init()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; ICS_C1|=ICS_C1_IRCLKEN_MASK; /* Enable the internal reference clock*/ &lt;/P&gt;&lt;P&gt;&amp;nbsp; ICS_C3= 0x90; /* Reference clock frequency = 31.25 KHz*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; while(!(ICS_S &amp;amp; ICS_S_LOCK_MASK));&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Wait for PLL lock, now running at 40 MHz (1280 * 31.25Khz) */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ICS_C2|=ICS_C2_BDIV(1)&amp;nbsp; ; /*BDIV=2, Bus clock = 20 MHz*/&lt;/P&gt;&lt;P&gt;&amp;nbsp; ICS_S |= ICS_S_LOCK_MASK ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Clear Loss of lock sticky bit */&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I even added a divider SIM_CLKDIV = 0x11100000 before the clock.Can you tell me what to do to Flash the code to my Microcontroller.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 15:45:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495959#M30813</guid>
      <dc:creator>vigneshbalaji</dc:creator>
      <dc:date>2016-01-20T15:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Measuring clock in KEA-128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495960#M30814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens if you use the flash utility and not the debugger?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 16:56:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495960#M30814</guid>
      <dc:creator>davidsherman</dc:creator>
      <dc:date>2016-01-20T16:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Measuring clock in KEA-128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495961#M30815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My debugger can do both debug and&amp;nbsp; Flash also.I am not able to Flash with it Right now.Is there any way out to make my Controller Flash Again?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 17:18:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495961#M30815</guid>
      <dc:creator>vigneshbalaji</dc:creator>
      <dc:date>2016-01-20T17:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Measuring clock in KEA-128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495962#M30816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens if you use the flash utility and NOT the debugger? (Hint: Try using the "Flash From File" utility, and don't use the debugger)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 17:26:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495962#M30816</guid>
      <dc:creator>davidsherman</dc:creator>
      <dc:date>2016-01-20T17:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Measuring clock in KEA-128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495963#M30817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The same error. I just tried to Flash the code(Run) the same thing is happening.Can you tell me the reason behind this?&lt;/P&gt;&lt;P&gt;I want to know whether all the Flashing is through SWD in the ARM Cortex-M0+.Is there any way where we can Flash the code without the SWD interface of Cortex M0+?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 17:33:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495963#M30817</guid>
      <dc:creator>vigneshbalaji</dc:creator>
      <dc:date>2016-01-20T17:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Measuring clock in KEA-128</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495964#M30818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What messages do you see in the console window?&amp;nbsp; Does it report that it's erasing and programming?&amp;nbsp; Yes, you do have to use SWD, that's the only means of programming the flash since that part doesn't support JTAG.&amp;nbsp; Only other things I can suggest, when I've seen similar problems:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Removing all breakpoints in the debugger window&lt;BR /&gt;- Restart computer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&amp;nbsp; Disregard my question about the error, I misread the screen shots.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 17:47:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Measuring-clock-in-KEA-128/m-p/495964#M30818</guid>
      <dc:creator>davidsherman</dc:creator>
      <dc:date>2016-01-20T17:47:50Z</dc:date>
    </item>
  </channel>
</rss>

