<?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: Baud rate changes when debugger connected</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Baud-rate-changes-when-debugger-connected/m-p/362901#M18554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Martin:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What IDE are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This sounds like the debugger is trimming the device before starting, while standalone your code does not do it. If using CodeWarrior or Processor Expert check this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-95356"&gt;Yes, OSDA can trim the reference of internal clock source!&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards!,&lt;BR /&gt;Jorge Gonzalez&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>Thu, 18 Dec 2014 18:36:26 GMT</pubDate>
    <dc:creator>Jorge_Gonzalez</dc:creator>
    <dc:date>2014-12-18T18:36:26Z</dc:date>
    <item>
      <title>Baud rate changes when debugger connected</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Baud-rate-changes-when-debugger-connected/m-p/362900#M18553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are seeing an odd behaviour with an SKEAZ128MLK4 Kinetis processor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The baud rate is configured to 57.6K, and this works when we are connected to the target board with a debugger via the SWD port.&lt;/P&gt;&lt;P&gt;However, if we remove the debugger, or boot / power-cycle the board and let it run the exact same code without the debugger attached, the baud rate becomes 65K rather than 57.6K.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We suspect this is happening to all of the UARTs, not just our debug one, as the system communicates fine with a BLE module @ 14.4K just fine when the debugger is connected, but then fails to talk when booted stand-alone.&amp;nbsp; We suspect the same change is happening to the baud rate on the BLE UART, bumping it from 14.4K to some other value, which effectively breaks that communications link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something within the clock-tree is being influenced by the presence of the JTAG/SWD connection.&amp;nbsp; (that or the JTAG/SWD connection is initializing some part of the clock tree that the code alone is not).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Camz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 16:19:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Baud-rate-changes-when-debugger-connected/m-p/362900#M18553</guid>
      <dc:creator>camz</dc:creator>
      <dc:date>2014-12-18T16:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Baud rate changes when debugger connected</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Baud-rate-changes-when-debugger-connected/m-p/362901#M18554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Martin:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What IDE are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This sounds like the debugger is trimming the device before starting, while standalone your code does not do it. If using CodeWarrior or Processor Expert check this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-95356"&gt;Yes, OSDA can trim the reference of internal clock source!&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards!,&lt;BR /&gt;Jorge Gonzalez&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>Thu, 18 Dec 2014 18:36:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Baud-rate-changes-when-debugger-connected/m-p/362901#M18554</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2014-12-18T18:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Baud rate changes when debugger connected</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Baud-rate-changes-when-debugger-connected/m-p/362902#M18555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Martin, additional info:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If using CW v10.6, a colleague mentioned that there was an issue with P&amp;amp;E OpenSDA automatically trimming KEA parts, which is already fixed. Try updating CodeWarrior to the latest, including the &lt;STRONG&gt;Update 2&lt;/STRONG&gt;. (&lt;A href="http://www.freescale.com/webapp/sps/site/overview.jsp?code=CW_UPDATES_MCU_10_6"&gt;&lt;STRONG&gt;CW Updates&lt;/STRONG&gt;&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards!,&lt;BR /&gt;Jorge Gonzalez&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>Mon, 22 Dec 2014 21:44:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Baud-rate-changes-when-debugger-connected/m-p/362902#M18555</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2014-12-22T21:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Baud rate changes when debugger connected</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Baud-rate-changes-when-debugger-connected/m-p/362903#M18556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using KDS (Kinetis Design Studio) v1.1.1 and a PE Micro Mulilink debugger.&amp;nbsp; We haven't tried v2.0.0 of KDS (the project was started with v1.1.1 and we haven't attempted to import it into 2.0.0 yet).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue turned out to indeed be the trim values.&amp;nbsp; KDS was using a default of 32.768 kHz, which is actually *wrong* for the KEA parts, which have a different clocking design and actually use a 37.5 kHz internal clock source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once the trim was enabled and set to 37.5 we saw the expected baud rates when the board was running without a debugger.&amp;nbsp; However, the baud rate would then be lower when the debugger was connected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that is the 2nd problem, the auto-trimming (to the wrong values) by the debugger.&lt;/P&gt;&lt;P&gt;I wasn't able to find any settings in KDS to enable or disable this behaviour in the debugger.&amp;nbsp; I'm not even sure if this is something KDS is doing or the PE Micro GDB server.&amp;nbsp; If anyone knows how to prevent this, please share.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment, we can tweak our communications settings for a host PC to the slower baud rate when using the debugger, but that only addresses one of the 3 UARTs in use in the system.&amp;nbsp; This effectively means that we can't truly use the debugger to step though code since the UART baud rates will be mis-matched.&amp;nbsp; The debugger gets used to program code into the board, and then we need to reset it and use our UART "console" for printf style debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Camz. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Dec 2014 21:55:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Baud-rate-changes-when-debugger-connected/m-p/362903#M18556</guid>
      <dc:creator>camz</dc:creator>
      <dc:date>2014-12-22T21:55:31Z</dc:date>
    </item>
  </channel>
</rss>

