<?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のトピックReset oscillating when not connected to debugger</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reset-oscillating-when-not-connected-to-debugger/m-p/1498919#M63706</link>
    <description>&lt;P&gt;We have a custom board that used an MK10DN512VMC10. &amp;nbsp;We got another order for the board and since that part is not currently available we have rebuilt the board with the MK30DX64VMC7 (mask 2N36B). &amp;nbsp;The board is pretty simple, just a serial port (UART2), 7 GPIOs and the JTAG interface.&lt;/P&gt;&lt;P&gt;When I started trying to test the new boards, I noticed the following:&lt;/P&gt;&lt;P&gt;1) I can't program or debug it with a PEMicro Multlink Universal&lt;/P&gt;&lt;P&gt;2) I can program it with a Segger JLink and the code appears to run fine in the debugger&lt;/P&gt;&lt;P&gt;3) When I remove the debugger, the code does not run and the reset pin (J11) is osciallating at about 15KHz.&lt;/P&gt;&lt;P&gt;I can reprogram the board and debug it after I see the oscillation, but if I remove the debugger, reset the board it oscillates again.&lt;/P&gt;&lt;P&gt;I'm not using semi-hosting, I have no printfs in the code and I have disabled the EzPort. &amp;nbsp;I had a low power mode set up (LLS) but the errata for this mask says that it doesn't work, so all of that code is commented out.&lt;/P&gt;&lt;P&gt;I can connect to the processor through the JLink.exe command line tool and I programmed it manually and it all seemed to work. &amp;nbsp;I even issued the "reset Kinetis" command and it appeared to work. &amp;nbsp;When I remove the JLink, it does the same thing - reset oscillating.&lt;/P&gt;&lt;P&gt;I've gone through the rest of the errata and I don't see anything that sounds like the issue.&lt;/P&gt;&lt;P&gt;The JLink has firmware version V10, compiled Nov 2 2021 12:14:50 and hardware version V10.10.&lt;/P&gt;&lt;P&gt;I'm using KDS 3.0 as this chip does not appear to be supported by MCUXpresso, at least I can't build/download an SDK for it.&lt;/P&gt;&lt;P&gt;Any ideas? &amp;nbsp;Please note that this problem is holding up production and delivery of a bunch of boards. &amp;nbsp;I cannot post the code or schematic, but I can post some sections of both if there is something that might be helpful. &amp;nbsp;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to add, I created a simple program that feeds the watchdog timer. &amp;nbsp;It exhibits the same issue.&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;#include&lt;/STRONG&gt; "MK30D7.h"&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;int&lt;/STRONG&gt; &lt;STRONG&gt;main&lt;/STRONG&gt;(&lt;STRONG&gt;void&lt;/STRONG&gt;)&lt;BR /&gt;{&lt;BR /&gt;  SIM-&amp;gt;SCGC5 |= SIM_SCGC5_PORTD_MASK;&lt;BR /&gt;  PORTD-&amp;gt;PCR[2] = PORT_PCR_MUX(1);&lt;BR /&gt;  PTD-&amp;gt;PDDR = 0x1 &amp;lt;&amp;lt; 2;&lt;BR /&gt; &lt;BR /&gt;&lt;STRONG&gt;  for&lt;/STRONG&gt; (;;)&lt;BR /&gt;  {&lt;BR /&gt;    WDOG-&amp;gt;REFRESH = 0xA602;&lt;BR /&gt;    WDOG-&amp;gt;REFRESH = 0xB480;&lt;BR /&gt;    PTD-&amp;gt;PTOR = 0x1 &amp;lt;&amp;lt; 2;&lt;BR /&gt;  }&lt;BR /&gt;  &lt;STRONG&gt;return&lt;/STRONG&gt; 0;&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Aug 2022 19:13:34 GMT</pubDate>
    <dc:creator>JBM</dc:creator>
    <dc:date>2022-08-01T19:13:34Z</dc:date>
    <item>
      <title>Reset oscillating when not connected to debugger</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reset-oscillating-when-not-connected-to-debugger/m-p/1498919#M63706</link>
      <description>&lt;P&gt;We have a custom board that used an MK10DN512VMC10. &amp;nbsp;We got another order for the board and since that part is not currently available we have rebuilt the board with the MK30DX64VMC7 (mask 2N36B). &amp;nbsp;The board is pretty simple, just a serial port (UART2), 7 GPIOs and the JTAG interface.&lt;/P&gt;&lt;P&gt;When I started trying to test the new boards, I noticed the following:&lt;/P&gt;&lt;P&gt;1) I can't program or debug it with a PEMicro Multlink Universal&lt;/P&gt;&lt;P&gt;2) I can program it with a Segger JLink and the code appears to run fine in the debugger&lt;/P&gt;&lt;P&gt;3) When I remove the debugger, the code does not run and the reset pin (J11) is osciallating at about 15KHz.&lt;/P&gt;&lt;P&gt;I can reprogram the board and debug it after I see the oscillation, but if I remove the debugger, reset the board it oscillates again.&lt;/P&gt;&lt;P&gt;I'm not using semi-hosting, I have no printfs in the code and I have disabled the EzPort. &amp;nbsp;I had a low power mode set up (LLS) but the errata for this mask says that it doesn't work, so all of that code is commented out.&lt;/P&gt;&lt;P&gt;I can connect to the processor through the JLink.exe command line tool and I programmed it manually and it all seemed to work. &amp;nbsp;I even issued the "reset Kinetis" command and it appeared to work. &amp;nbsp;When I remove the JLink, it does the same thing - reset oscillating.&lt;/P&gt;&lt;P&gt;I've gone through the rest of the errata and I don't see anything that sounds like the issue.&lt;/P&gt;&lt;P&gt;The JLink has firmware version V10, compiled Nov 2 2021 12:14:50 and hardware version V10.10.&lt;/P&gt;&lt;P&gt;I'm using KDS 3.0 as this chip does not appear to be supported by MCUXpresso, at least I can't build/download an SDK for it.&lt;/P&gt;&lt;P&gt;Any ideas? &amp;nbsp;Please note that this problem is holding up production and delivery of a bunch of boards. &amp;nbsp;I cannot post the code or schematic, but I can post some sections of both if there is something that might be helpful. &amp;nbsp;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to add, I created a simple program that feeds the watchdog timer. &amp;nbsp;It exhibits the same issue.&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;#include&lt;/STRONG&gt; "MK30D7.h"&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;int&lt;/STRONG&gt; &lt;STRONG&gt;main&lt;/STRONG&gt;(&lt;STRONG&gt;void&lt;/STRONG&gt;)&lt;BR /&gt;{&lt;BR /&gt;  SIM-&amp;gt;SCGC5 |= SIM_SCGC5_PORTD_MASK;&lt;BR /&gt;  PORTD-&amp;gt;PCR[2] = PORT_PCR_MUX(1);&lt;BR /&gt;  PTD-&amp;gt;PDDR = 0x1 &amp;lt;&amp;lt; 2;&lt;BR /&gt; &lt;BR /&gt;&lt;STRONG&gt;  for&lt;/STRONG&gt; (;;)&lt;BR /&gt;  {&lt;BR /&gt;    WDOG-&amp;gt;REFRESH = 0xA602;&lt;BR /&gt;    WDOG-&amp;gt;REFRESH = 0xB480;&lt;BR /&gt;    PTD-&amp;gt;PTOR = 0x1 &amp;lt;&amp;lt; 2;&lt;BR /&gt;  }&lt;BR /&gt;  &lt;STRONG&gt;return&lt;/STRONG&gt; 0;&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 19:13:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reset-oscillating-when-not-connected-to-debugger/m-p/1498919#M63706</guid>
      <dc:creator>JBM</dc:creator>
      <dc:date>2022-08-01T19:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Reset oscillating when not connected to debugger</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reset-oscillating-when-not-connected-to-debugger/m-p/1506257#M63824</link>
      <description>&lt;P&gt;We have produced these boards for years without problems, so we're pretty convinced it's not our hardware. &amp;nbsp; We found some MK11 processors and they work fine. &amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a 2017 post here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/We-have-been-having-problems-with-MK20DX64VLH7-in-one-of-our-new/m-p/623057#M37288" target="_blank"&gt;https://community.nxp.com/t5/Kinetis-Microcontrollers/We-have-been-having-problems-with-MK20DX64VLH7-in-one-of-our-new/m-p/623057#M37288&lt;/A&gt;&lt;/P&gt;&lt;P&gt;that details the same issue. &amp;nbsp;This processor is the same mask (2N36B) as the MK30 processors we tried.&lt;/P&gt;&lt;P&gt;We are writing this off to a mask issue. &amp;nbsp;I have created a trouble ticket, but that's been frustrating to say the least.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 16:04:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reset-oscillating-when-not-connected-to-debugger/m-p/1506257#M63824</guid>
      <dc:creator>JBM</dc:creator>
      <dc:date>2022-08-15T16:04:22Z</dc:date>
    </item>
  </channel>
</rss>

