<?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: Sawtooth on Reset_B K20 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Sawtooth-on-Reset-B-K20/m-p/389740#M21163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First I would like to thank Dan Vona, Avnet-Freescale FAE extraordinaire for posting my problem of "Sawtooth on Reset". I have solved the problem. The cause: When creating the project using the new project wizard, at I/O support, I selected (incorrectly) "debugger console" which enables semi-hosting. It appears as though when this is selected, one cannot undue this choice later. I tried. I had to create another project where I selected "UART" for I/O support. This fixed the problem and I am on the way to finishing the project.&lt;/P&gt;&lt;P&gt;What appears to have been happening is that during initialization, the failing project would get to code to initialize semi-hosting, and this caused a system reset. For some reason, it didn't fail when the j-link was hooked up with the debugger running.&amp;nbsp; So the system would start, reach the semi-hosting initialization, then reset, which may be viewed on the reset pin because all system resets pull the open drain reset pin low. This is a good feature because one can use it to reset outside peripherals. In addition, one can observe that a reset is occurring.&lt;/P&gt;&lt;P&gt;I hope this problem and solution can help others from ripping their hair out. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Feb 2015 21:40:20 GMT</pubDate>
    <dc:creator>tonygambacurta</dc:creator>
    <dc:date>2015-02-23T21:40:20Z</dc:date>
    <item>
      <title>Sawtooth on Reset_B K20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Sawtooth-on-Reset-B-K20/m-p/389739#M21162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have seen other posts but the solutions do not seem to completely apply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the situation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;When I program the K20, and start it using the debugger through Segger jLink, the system runs fine and as expected.&lt;/SPAN&gt; &lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;Freestanding system (no jLink hooked up) will not start. After RESET_b goes false, something causes a Reset to occur again from inside the IC approximately 1-1.5 mSec after RESET_b goes false.&lt;/SPAN&gt; &lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;This makes the RESET_b pin exhibit a sawtooth waveform.&lt;/SPAN&gt; &lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;Shape of oscillation depends on external R and C.&lt;/SPAN&gt; &lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;With 10k ohm pullup and a 0.1uF cap, the oscillation is 630 Hz.&lt;/SPAN&gt; &lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;Problem occurs when jLink NOT hooked up. Can't cause the same failure with jLink hooked up. Therefore can't ever observe problem with debugger.&lt;/SPAN&gt; &lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;With debugger hooked up: When tracing through startup code, everything looks fine. WDOG Unlock code can't be stepped through because of constraints on timing during programming. 2 words need to be written within 20 cycles, stays unlocked for 250 cycles. Violation causes a reset. Stepping through causes a violation of these constraints. If I set a break point after this initialization code, I can execute through this code without causing a violation.&lt;/SPAN&gt; &lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;Resets do not occur when stepping through code as described, again, because it doesn't fail with jLink hooked up.&lt;/SPAN&gt; &lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;jtag signals are pulled in proper directions where specified when jLink not hooked up.&lt;/SPAN&gt; &lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;Tower K60 proto runs fine. Does not exhibit oscilation on RESET_b pin without jLink hooked up.&lt;/SPAN&gt; &lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;I compared startup code for K20 and K60. Any diferences around WDOG code were accounted for and are not an issue.&lt;/SPAN&gt; &lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;K60 system brings RESET_b signal to pin 10 of jtag connector. My k20 system brings JTAG_TRST_B to that pin. JTAB_TRST_B does not show an oscillation.&lt;/SPAN&gt; &lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;Below is a list of sources off reset for the chip. I believe I have determined that none of these is causing the problem, but, one source is probably the culprit. I have concentrated mostly on WDOG.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;The following are sources of RESET:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;Reset sources Description&lt;BR /&gt; POR reset&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt; • Power-on reset (POR)&lt;BR /&gt; System resets&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt; • External pin reset (PIN)&lt;BR /&gt; • Low-voltage detect (LVD)&lt;BR /&gt; • Computer operating properly (COP) watchdog reset&lt;BR /&gt; • Low leakage wakeup (LLWU) reset&lt;BR /&gt; • Multipurpose clock generator loss of clock (LOC) reset&lt;BR /&gt; • Multipurpose clock generator loss of lock (LOL) reset&lt;BR /&gt; • Stop mode acknowledge error (SACKERR)&lt;BR /&gt; • Software reset (SW)&lt;BR /&gt; • Lockup reset (LOCKUP)&lt;BR /&gt; • EzPort reset&lt;BR /&gt; • MDM DAP system reset&lt;BR /&gt; Debug reset&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif';"&gt; • JTAG reset&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif';"&gt;I'm looking for any ideas as to what might be causing this behavior.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 19:22:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Sawtooth-on-Reset-B-K20/m-p/389739#M21162</guid>
      <dc:creator>dvona</dc:creator>
      <dc:date>2015-02-20T19:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sawtooth on Reset_B K20</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Sawtooth-on-Reset-B-K20/m-p/389740#M21163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First I would like to thank Dan Vona, Avnet-Freescale FAE extraordinaire for posting my problem of "Sawtooth on Reset". I have solved the problem. The cause: When creating the project using the new project wizard, at I/O support, I selected (incorrectly) "debugger console" which enables semi-hosting. It appears as though when this is selected, one cannot undue this choice later. I tried. I had to create another project where I selected "UART" for I/O support. This fixed the problem and I am on the way to finishing the project.&lt;/P&gt;&lt;P&gt;What appears to have been happening is that during initialization, the failing project would get to code to initialize semi-hosting, and this caused a system reset. For some reason, it didn't fail when the j-link was hooked up with the debugger running.&amp;nbsp; So the system would start, reach the semi-hosting initialization, then reset, which may be viewed on the reset pin because all system resets pull the open drain reset pin low. This is a good feature because one can use it to reset outside peripherals. In addition, one can observe that a reset is occurring.&lt;/P&gt;&lt;P&gt;I hope this problem and solution can help others from ripping their hair out. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 21:40:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Sawtooth-on-Reset-B-K20/m-p/389740#M21163</guid>
      <dc:creator>tonygambacurta</dc:creator>
      <dc:date>2015-02-23T21:40:20Z</dc:date>
    </item>
  </channel>
</rss>

