<?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>ColdFire/68K Microcontrollers and ProcessorsのトピックRe: M52259DEMO operating at the wrong speed</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52259DEMO-operating-at-the-wrong-speed/m-p/194656#M8579</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It solved my problem also with the&amp;nbsp; Axiom CMM52259- OEM&amp;nbsp; board . It has the same CLKMOD configuration. We detected the wrong system clock configuration&amp;nbsp; after we tried to use the UART and got garbled output .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Oct 2010 13:06:32 GMT</pubDate>
    <dc:creator>DK1BN</dc:creator>
    <dc:date>2010-10-19T13:06:32Z</dc:date>
    <item>
      <title>M52259DEMO operating at the wrong speed</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52259DEMO-operating-at-the-wrong-speed/m-p/194650#M8573</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;&lt;/P&gt;&lt;P&gt;I've recently purchased a M52259Demo and have been playing with the Processor Expert both with supplied demos and from projects I've started from scratch. With both of them I'm having problems with the board running approx x5.5 slow when using the external 48MHz crystal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Taking this project as an example:&lt;/P&gt;&lt;P&gt;C:\Program Files\Freescale\CodeWarrior for ColdFire V7.1\(CodeWarrior_Examples)\Processor_Expert_Examples\M52259EVB\Init_GPIO,&lt;/P&gt;&lt;P&gt;I simply change the Remote Debug to Coldfire V2-V4 JM60 OSBDM then compile and run. Unfortunately, I get junk on the serial port (set correctly to 38400,8,N,1) and the LED flashes three times slowly.&lt;/P&gt;&lt;P&gt;If I change the High Speed Clock in the CPU bean from external to internal, everything bursts into life correctly. The LED flashes at a sensible speed and the serial port produces the expected text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my own project, I have used a timer driven interrupt to flash an LED and a PWM channel to flash a different LED. Both methods run a factor of x5.5 slow on the external clock and at the correct speed when using the internal clock. The external clock input is set to 48MHz - unchanged from the defaults.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this likely to be me not pressing a button correctly somewhere or is it likely to be down to me having a duff demo board?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help given!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 23:14:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52259DEMO-operating-at-the-wrong-speed/m-p/194650#M8573</guid>
      <dc:creator>BatTech</dc:creator>
      <dc:date>2010-04-22T23:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: M52259DEMO operating at the wrong speed</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52259DEMO-operating-at-the-wrong-speed/m-p/194651#M8574</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;&lt;/P&gt;&lt;P&gt;The M52259EVB has clock mode jumpers which control with which setting the board starts with - the DEMO doesn't. By overwriting the settings during initialisation the SW can however always control how it runs though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try a pre-compiled target image: &lt;A href="http://www.utasker.com/SW_Demos.html" rel="nofollow" target="_self"&gt;http://www.utasker.com/SW_Demos.html&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;There is one for your board which will allow you to test Ethernet, USB and the UART. An LED blinks at 2.5Hz - default Baud is 115200.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it runs off, it is something to do with the HW - if not it is a setting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.uTasker.com" rel="nofollow" target="_self"&gt;www.uTasker.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 03:42:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52259DEMO-operating-at-the-wrong-speed/m-p/194651#M8574</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2010-04-23T03:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: M52259DEMO operating at the wrong speed</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52259DEMO-operating-at-the-wrong-speed/m-p/194652#M8575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mark,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've downloaded the image and programmed it in with success. The serial port confused me for a while - the correct baud rate is 19200, but I got that working as does the ethernet port. The LED flashes at about 2.3Hz as closely as I could measure it so it looks like I have good hardware (assuming that uTasker uses the external crystal).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess this tells me I have a configuration problem in my setup which is causing the clock to be a factor of x5.5 out. I can't see it though.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 05:08:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52259DEMO-operating-at-the-wrong-speed/m-p/194652#M8575</guid>
      <dc:creator>BatTech</dc:creator>
      <dc:date>2010-04-23T05:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: M52259DEMO operating at the wrong speed</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52259DEMO-operating-at-the-wrong-speed/m-p/194653#M8576</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;&lt;/P&gt;&lt;P&gt;Sorry about the serial port speed - I though it was 115200 in that demo but obviously not - you can also check and control the UART speed via TELNET (or via UART when the Baud is correct) - go to the serial menu. You can also save it by commanding "save".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When running from the external 48MHz the following may help at initialisation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCF_CLOCK_OCLR = (OSCEN | REFS | RANGE);&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; // enable external crystal oscillator&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCF_CLOCK_CCLR = 0x00;&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;&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; // switch to crystal source&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCF_CLOCK_OCHR = 0x00;&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;&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; // disable relaxation oscillator&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then to set the PLL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCF_CLOCK_CCHR&amp;nbsp; = (PRE_DIVIDER - 1);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // values from 1 to 8 possible - should generate 1..10MHz input&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCF_CLOCK_SYNCR = ((((PLL_MUL - 4)/2) &amp;lt;&amp;lt; 12) | CLKSRC | PLLMODE | PLLEN | (POST_DIVIDE &amp;lt;&amp;lt; 8)); // set up PLL to generate the required frequency&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (!(MCF_CLOCK_SYNSR &amp;amp; PLLOCKED)) { SIM_LOCK }&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; // wait for PLL to lock&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For your board to run at 80MHz:&lt;/P&gt;&lt;P&gt;MCF_CLOCK_CCHR = 6&lt;/P&gt;&lt;P&gt;MCF_CLOCK_SYNCR = 0x3007&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also try the uTasker project since it gives you everthing that you need (from initialisation through device drivers,&amp;nbsp; TCP/IP, USB to graphical library and SD-Card FAT). It allows you to simulate the Kirin3 (much easier to develop and debug with) - it also shows you the processor PLL setup results and warns you if anything is configured to give invalid results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.uTasker.com" rel="nofollow" target="_self"&gt;www.uTasker.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.utasker.com/kirin3.html" rel="nofollow" target="_self"&gt;www.utasker.com/kirin3.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 06:31:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52259DEMO-operating-at-the-wrong-speed/m-p/194653#M8576</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2010-04-23T06:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: M52259DEMO operating at the wrong speed</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52259DEMO-operating-at-the-wrong-speed/m-p/194654#M8577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regarding to the problem with running M52259 from external clock. We are aware of this problem and it will be fixed in the next release of PE. For now as workaround is there the possibility to put the following code into CPU.c using "User code after PE initialization" property in "Build options" tab in CPU component (formerly called beans).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; setReg8(OCLR, 0xC0);&amp;nbsp; // Turn on crystal, External crystal oscillator enabled.&lt;BR /&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; // External oscillator running in external crystal mode.&lt;BR /&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; // External oscillator running in normal power mmode.&lt;BR /&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; // Support external crystal of 32kHz.&lt;BR /&gt;&amp;nbsp; setReg8(CCLR, 0x00);&amp;nbsp; // Switch to crystal.&lt;BR /&gt;&amp;nbsp; setReg8(OCHR, 0x00);&amp;nbsp; // Turn off relaxation oscillator&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;For more datials please follow this &lt;A href="https://community.freescale.com/message/63780#63780" title="https://community.freescale.com/message/63780#63780"&gt;https://community.freescale.com/message/63780#63780&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are sorry for the inconvenience.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;BR /&gt;Vojtech Filip&lt;BR /&gt;Processor Expert Support Team&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 13:42:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52259DEMO-operating-at-the-wrong-speed/m-p/194654#M8577</guid>
      <dc:creator>ProcessorExpert</dc:creator>
      <dc:date>2010-04-23T13:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: M52259DEMO operating at the wrong speed</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52259DEMO-operating-at-the-wrong-speed/m-p/194655#M8578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vojtech Filip, that solved the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 16:30:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52259DEMO-operating-at-the-wrong-speed/m-p/194655#M8578</guid>
      <dc:creator>BatTech</dc:creator>
      <dc:date>2010-04-23T16:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: M52259DEMO operating at the wrong speed</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52259DEMO-operating-at-the-wrong-speed/m-p/194656#M8579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It solved my problem also with the&amp;nbsp; Axiom CMM52259- OEM&amp;nbsp; board . It has the same CLKMOD configuration. We detected the wrong system clock configuration&amp;nbsp; after we tried to use the UART and got garbled output .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 13:06:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/M52259DEMO-operating-at-the-wrong-speed/m-p/194656#M8579</guid>
      <dc:creator>DK1BN</dc:creator>
      <dc:date>2010-10-19T13:06:32Z</dc:date>
    </item>
  </channel>
</rss>

