<?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>8-bit MicrocontrollersのトピックWhat is clock config on a PA4 when in debug mode?</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/What-is-clock-config-on-a-PA4-when-in-debug-mode/m-p/479851#M21805</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having startup issue: when debug plugged in/running code executes fine.&lt;/P&gt;&lt;P&gt;Freestanding restart just loop restarts like the watchdog isn't being fed.&lt;/P&gt;&lt;P&gt;I've had this issue on other projects, and have a PA in one that runs fine.&lt;/P&gt;&lt;P&gt;Wondering if I'm in an odd clock speed and picking bad range parms for ADC &amp;amp; FTM.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I can start from the debug clock mode, I should be able to find my way.&lt;/P&gt;&lt;P&gt;Right now it either runs under debug or loop restarts, with no good clue what's wrong.&lt;/P&gt;&lt;P&gt;This is a port-over from a QE that's been fine for 2+years, but the PA is a little different.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any and all pointers Greatly appreciated, TNX, K.Sargent&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update: I'm configuring the chip wrong.&lt;/P&gt;&lt;P&gt;Reduced code to just port initialization, with a simple blink the LED loop and it runs fine.&lt;/P&gt;&lt;P&gt;At least I know it isn't in the hardware...&lt;/P&gt;&lt;P&gt;Still would like to know what modes/options the debug module enforces. TNX&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Found problem, forgot the macro "feed_watchdog" blows up H:X.&lt;/P&gt;&lt;P&gt;P.S. who in hell would write a stock macro that blows up registers??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 13 Dec 2015 19:26:05 GMT</pubDate>
    <dc:creator>CustomSarge</dc:creator>
    <dc:date>2015-12-13T19:26:05Z</dc:date>
    <item>
      <title>What is clock config on a PA4 when in debug mode?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/What-is-clock-config-on-a-PA4-when-in-debug-mode/m-p/479851#M21805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having startup issue: when debug plugged in/running code executes fine.&lt;/P&gt;&lt;P&gt;Freestanding restart just loop restarts like the watchdog isn't being fed.&lt;/P&gt;&lt;P&gt;I've had this issue on other projects, and have a PA in one that runs fine.&lt;/P&gt;&lt;P&gt;Wondering if I'm in an odd clock speed and picking bad range parms for ADC &amp;amp; FTM.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I can start from the debug clock mode, I should be able to find my way.&lt;/P&gt;&lt;P&gt;Right now it either runs under debug or loop restarts, with no good clue what's wrong.&lt;/P&gt;&lt;P&gt;This is a port-over from a QE that's been fine for 2+years, but the PA is a little different.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any and all pointers Greatly appreciated, TNX, K.Sargent&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update: I'm configuring the chip wrong.&lt;/P&gt;&lt;P&gt;Reduced code to just port initialization, with a simple blink the LED loop and it runs fine.&lt;/P&gt;&lt;P&gt;At least I know it isn't in the hardware...&lt;/P&gt;&lt;P&gt;Still would like to know what modes/options the debug module enforces. TNX&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Found problem, forgot the macro "feed_watchdog" blows up H:X.&lt;/P&gt;&lt;P&gt;P.S. who in hell would write a stock macro that blows up registers??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Dec 2015 19:26:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/What-is-clock-config-on-a-PA4-when-in-debug-mode/m-p/479851#M21805</guid>
      <dc:creator>CustomSarge</dc:creator>
      <dc:date>2015-12-13T19:26:05Z</dc:date>
    </item>
  </channel>
</rss>

