<?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>OSBDM and TBDMLのトピックRe: KE06Z Incorrect Clock Rate when using USBDM</title>
    <link>https://community.nxp.com/t5/OSBDM-and-TBDML/KE06Z-Incorrect-Clock-Rate-when-using-USBDM/m-p/437180#M3135</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm equally surprised.&lt;/P&gt;&lt;P&gt;I know of no obvious way that the BDM interface should affect the clock rate of the target if it is running from an external crystal.&lt;/P&gt;&lt;P&gt;The only thought I have is that it is using the internal oscillator and the P&amp;amp;E interface is trimming then clock whereas USBDM doesn't.&amp;nbsp; This doesn't agree with your description so its very unlikely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you provide a minimal project in Codewarrior and I will test it with a FRM-KE06 board and see if I can find the reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 27 Jun 2015 07:49:05 GMT</pubDate>
    <dc:creator>pgo</dc:creator>
    <dc:date>2015-06-27T07:49:05Z</dc:date>
    <item>
      <title>KE06Z Incorrect Clock Rate when using USBDM</title>
      <link>https://community.nxp.com/t5/OSBDM-and-TBDML/KE06Z-Incorrect-Clock-Rate-when-using-USBDM/m-p/437179#M3134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I'm switching from using the P&amp;amp;E OpenSDA support to using USBDM to program and debug a KE06Z target. I'm doing so since I need to start programming custom made target boards that use a different version of the KE06Z chip than the one on the FRDM board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to get this to run, but I've found that the clock is off. For example, I'm outputting data on a UART at 9600 baud. When using the P&amp;amp;E OpenSDA toolchain it correctly outputs the data at 9600 baud. When I switch to USBDM I found that I had to adjust the baud rate to 8700 in order to get the data to actually be output at 9600 baud.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using Processor Expert extensively, so it is stetting up the target's clock, and I would have thought that the BDM tool being used wouldn't effect the clock rate. Processor Expert is configuring the target to run with a little over a 20MHz clock rate. When running with USBDM it seems to be running closer to 22Mhz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm guessing that I've set it up in such a way that the BDM tool is driving the clock of the target, instead of the external 8MHz crystal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have suggestions on how to configure Processor Expert so that the BDM isn't effecting the clock rate of the KE06Z target?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can post some screenshots of what I believe are the applicable parts of the Processor Expert configuration, but if someone knows off hand what is up it would be great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 19:32:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/OSBDM-and-TBDML/KE06Z-Incorrect-Clock-Rate-when-using-USBDM/m-p/437179#M3134</guid>
      <dc:creator>izzni</dc:creator>
      <dc:date>2015-06-26T19:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: KE06Z Incorrect Clock Rate when using USBDM</title>
      <link>https://community.nxp.com/t5/OSBDM-and-TBDML/KE06Z-Incorrect-Clock-Rate-when-using-USBDM/m-p/437180#M3135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm equally surprised.&lt;/P&gt;&lt;P&gt;I know of no obvious way that the BDM interface should affect the clock rate of the target if it is running from an external crystal.&lt;/P&gt;&lt;P&gt;The only thought I have is that it is using the internal oscillator and the P&amp;amp;E interface is trimming then clock whereas USBDM doesn't.&amp;nbsp; This doesn't agree with your description so its very unlikely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you provide a minimal project in Codewarrior and I will test it with a FRM-KE06 board and see if I can find the reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jun 2015 07:49:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/OSBDM-and-TBDML/KE06Z-Incorrect-Clock-Rate-when-using-USBDM/m-p/437180#M3135</guid>
      <dc:creator>pgo</dc:creator>
      <dc:date>2015-06-27T07:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: KE06Z Incorrect Clock Rate when using USBDM</title>
      <link>https://community.nxp.com/t5/OSBDM-and-TBDML/KE06Z-Incorrect-Clock-Rate-when-using-USBDM/m-p/437181#M3136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pgo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I apologize for not posting my resolution to the problem up until now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are correct in that it was actually running off the internal oscillator, and that USBDM wasn't doing the trimming that the P&amp;amp;E OpenSDA interface was. Frankly I'm glad it wasn't performing the trimming since it forced me to deal with my clocking issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The root of my problem was that I had "enabled" the External Oscillator, but I had not changed the clock mode to "FEE", which would have actually made use of the external oscillator to drive the clock. So although the external oscillator was enabled, I still have the clock in "FEI" mode, which made use of the now untrimmed internal oscillator to drive the clock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should have spent more time reading the reference manual for the MCU instead of ham fisting my way through it using Processor Expert as a hammer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help!&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 02:34:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/OSBDM-and-TBDML/KE06Z-Incorrect-Clock-Rate-when-using-USBDM/m-p/437181#M3136</guid>
      <dc:creator>izzni</dc:creator>
      <dc:date>2015-09-29T02:34:27Z</dc:date>
    </item>
  </channel>
</rss>

