<?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: KL02 run after a reset in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-run-after-a-reset/m-p/691013#M42576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Scott Evans,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Do you mean your watchdog can't reset?&lt;/P&gt;&lt;P&gt;&amp;nbsp;You can check the register, whether your watchdog is disabled, because the watchdog control register is write once after reset, so I think maybe your watchdog is disabled before.&lt;/P&gt;&lt;P&gt;If you still have question about it, please kindly let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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, 26 Jun 2017 09:20:58 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2017-06-26T09:20:58Z</dc:date>
    <item>
      <title>KL02 run after a reset</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-run-after-a-reset/m-p/691010#M42573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a KL02 micro and it wont run after a sw reset (SYSRESETREQ). The chip does reset but is held in reset until i run it manually. how do i get it to run after a reset?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I simply have this in main :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCB_AIRCR = SCB_AIRCR_SYSRESETREQ_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then it resets and stays at the beginning of&amp;nbsp;__thumb_startup()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have verified that it doesn't run after the reset when not in debug with an LED that should flash. without the reset it happily flashes. With the reset it never comes on (obviously it wont flash at all but it should get the the point of turning the LED on before reseting again)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 07:37:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-run-after-a-reset/m-p/691010#M42573</guid>
      <dc:creator>scottyevans</dc:creator>
      <dc:date>2017-06-19T07:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: KL02 run after a reset</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-run-after-a-reset/m-p/691011#M42574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Scott Evans,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Your software reset code have problem, please do it like this:&lt;/P&gt;&lt;P&gt;#define Reset()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( SCB_AIRCR = SCB_AIRCR_VECTKEY(0x5FA) | SCB_AIRCR_SYSRESETREQ_MASK)&lt;/P&gt;&lt;P&gt;&amp;nbsp; Then try again.&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Tue, 20 Jun 2017 08:50:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-run-after-a-reset/m-p/691011#M42574</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-06-20T08:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: KL02 run after a reset</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-run-after-a-reset/m-p/691012#M42575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried that but its still not behaving how i expect. The reset works fine (not only for the Reset() function, but for all other types of reset). After completing a reset it doesn't start running automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, i have a watchdog running but i don't bother poking it, so after the watchdog expires I would expect to see it hit the same point in main() continuously, as it keeps resetting and goes back to the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;__thumb_startup(). This isn't happening though, it does remains on the&amp;nbsp;&lt;SPAN&gt;__thumb_startup() function.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Any ideas on why?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 08:54:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-run-after-a-reset/m-p/691012#M42575</guid>
      <dc:creator>scottyevans</dc:creator>
      <dc:date>2017-06-26T08:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: KL02 run after a reset</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-run-after-a-reset/m-p/691013#M42576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Scott Evans,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Do you mean your watchdog can't reset?&lt;/P&gt;&lt;P&gt;&amp;nbsp;You can check the register, whether your watchdog is disabled, because the watchdog control register is write once after reset, so I think maybe your watchdog is disabled before.&lt;/P&gt;&lt;P&gt;If you still have question about it, please kindly let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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, 26 Jun 2017 09:20:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-run-after-a-reset/m-p/691013#M42576</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-06-26T09:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: KL02 run after a reset</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-run-after-a-reset/m-p/691014#M42577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No my watchdog is firing perfectly fine. but once it does fire and resets the device, the device does not automatically run again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its not an issue with the watchdog but with the reset procedure, as the same happens when i reset the device any other way&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 09:41:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-run-after-a-reset/m-p/691014#M42577</guid>
      <dc:creator>scottyevans</dc:creator>
      <dc:date>2017-06-26T09:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: KL02 run after a reset</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-run-after-a-reset/m-p/691015#M42578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Scott Evans,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Did you debug it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; After the reset happens, where is it stopping?&lt;/P&gt;&lt;P&gt;&amp;nbsp; You can give me a shot screen about your debug information when the problem happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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, 26 Jun 2017 09:49:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-run-after-a-reset/m-p/691015#M42578</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-06-26T09:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: KL02 run after a reset</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-run-after-a-reset/m-p/691016#M42579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure, please see attached image. It is stopping right on&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;__thumb_startup() as I mentioned before (no other breakpoints are set). it will only continue to run if I hit the "resume" button.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;As you can see on the image, RCM_SRS0 indicates a reset was caused by a watchdog timeout on this particular instance, but the same happens if I did say an external reset pin.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="reset issue.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/24390iC79C3BB31A01C3C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="reset issue.png" alt="reset issue.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 10:01:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-run-after-a-reset/m-p/691016#M42579</guid>
      <dc:creator>scottyevans</dc:creator>
      <dc:date>2017-06-26T10:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: KL02 run after a reset</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-run-after-a-reset/m-p/691017#M42580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Scott Evans,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I understand you now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Actually, this is just the character of debugger, when the reset happens, it will stop after reset.&lt;/P&gt;&lt;P&gt;&amp;nbsp; But, after you download the code to your board, it will work normally after you feed the watchdog in time.&lt;/P&gt;&lt;P&gt;&amp;nbsp; You can download your code to your chip, and test the function without the debug.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please try it without the debugger again, whether your functions works, you can printf some data as the working log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Tue, 27 Jun 2017 07:23:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-run-after-a-reset/m-p/691017#M42580</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-06-27T07:23:43Z</dc:date>
    </item>
  </channel>
</rss>

