<?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: Clock setting of coldfire MCF54418 in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Clock-setting-of-coldfire-MCF54418/m-p/290831#M12060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Actually i cannot boot from boat loader,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't matter. I'm saying ANY code you load and run under a debugger can't do lots of things that will upset the debugger. So you can't do them then. You can only do them on code loaded into FLASH and run from there, later in your product development.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; it has to be done using debugger. Is there any reference for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You seem to be doing it already. What do you want to know - specifically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more examples of coding, just read every Freescale App Note, and download every sample project you can find. I haven't found anything more organized than that, but then I've never used Code Warrior either. That should come with some sort of example platform layer, loaders, drivers and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Sep 2013 13:04:06 GMT</pubDate>
    <dc:creator>TomE</dc:creator>
    <dc:date>2013-09-06T13:04:06Z</dc:date>
    <item>
      <title>Clock setting of coldfire MCF54418</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Clock-setting-of-coldfire-MCF54418/m-p/290828#M12057</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 have been working on bareboard programming of MCF54418 (cold fire v4). I am using PE multilink BDM to program the processor's SRAM.&amp;nbsp; The problem is when I change the clock settings by writing PLL_CR, PLL_DR register my debug interface hangs. What I suspect,&amp;nbsp; due to change in clock BDM lost its connection. So I tried to reset processor using soft reset but it doesn't work. Below is the clock snippet i am using to change clock settings.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can any body help me to find out what's wrong in it? Any help would be highly appreciated&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="j-rte-table"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;TD style=""&gt;MCF_CCM_CCR = 0x8502U; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;TD style=""&gt;MCF_CCM_MISCCR = 0x0018U; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;TD style=""&gt;MCF_CLOCK_PLL_CR = 39U;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;TD style=""&gt;MCF_CLOCK_PLL_DR = 1U; // Both debugger and processor hangs after executing this instruction&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="j-rte-table"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;TD style=""&gt;&lt;P&gt;MCF_RCM_RCR = 0x80U;&amp;nbsp; // it should reset processor&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Uzair&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 17:45:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Clock-setting-of-coldfire-MCF54418/m-p/290828#M12057</guid>
      <dc:creator>muhamamaduzair</dc:creator>
      <dc:date>2013-09-04T17:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Clock setting of coldfire MCF54418</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Clock-setting-of-coldfire-MCF54418/m-p/290829#M12058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you can change the clock while debugging. I'm pretty sure you can't reset it and expect to remain in control.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The way I've done this on recent projects the the MCF5329 is to have the debugger initialize the CPU Clock and the DRAM controller, and then have the bootstrap/startup code recognize that it is running under the debugger (because the colde detects the clock has already been reprogrammed). As a result, the code sets a "running under the debugger" variable, skips initializing the clock and DRAM, and initializes the hardware watchdog into halt/debug mode, or completely disabled mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some things you just can't do in the debugger, like resetting, low power modes and single-stepping while the hardware watchdog is active. So you have to have your code KNOW not to do these things when debugging, and test that stuff the hard way. Live, with printing, LED flashing and logging to memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 00:07:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Clock-setting-of-coldfire-MCF54418/m-p/290829#M12058</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2013-09-06T00:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Clock setting of coldfire MCF54418</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Clock-setting-of-coldfire-MCF54418/m-p/290830#M12059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually i cannot boot from boat loader, it has to be done using debugger. Is there any reference for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Uz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 11:19:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Clock-setting-of-coldfire-MCF54418/m-p/290830#M12059</guid>
      <dc:creator>muhamamaduzair</dc:creator>
      <dc:date>2013-09-06T11:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Clock setting of coldfire MCF54418</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Clock-setting-of-coldfire-MCF54418/m-p/290831#M12060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Actually i cannot boot from boat loader,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't matter. I'm saying ANY code you load and run under a debugger can't do lots of things that will upset the debugger. So you can't do them then. You can only do them on code loaded into FLASH and run from there, later in your product development.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; it has to be done using debugger. Is there any reference for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You seem to be doing it already. What do you want to know - specifically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more examples of coding, just read every Freescale App Note, and download every sample project you can find. I haven't found anything more organized than that, but then I've never used Code Warrior either. That should come with some sort of example platform layer, loaders, drivers and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 13:04:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Clock-setting-of-coldfire-MCF54418/m-p/290831#M12060</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2013-09-06T13:04:06Z</dc:date>
    </item>
  </channel>
</rss>

