<?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: SWreset - howto? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWreset-howto/m-p/183045#M1822</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you look into this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;6.2.2.6 Software reset (SW)&lt;BR /&gt;The SYSRESETREQ bit in the NVIC application interrupt and reset control register can&lt;BR /&gt;be set to force a software reset on the device. Setting SYSRESETREQ generates a&lt;BR /&gt;software reset request. This reset forces a system reset of all major components except for&lt;BR /&gt;the debug module. A software reset causes SRSH[SW] bit to set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from the kinetis reference manual?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also write "junk" to the watchdog to force a reset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Nov 2011 08:23:11 GMT</pubDate>
    <dc:creator>emh203</dc:creator>
    <dc:date>2011-11-16T08:23:11Z</dc:date>
    <item>
      <title>SWreset - howto?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWreset-howto/m-p/183043#M1820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The relevant chapter on the SCB is missing from the Kinetis RM, and I want to be able to call a SWreset to force a jump back to a bootloader from an application. (Sections defined in MKxxblah.h but no explanations)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Short of wiring an IO pin back to the reset input the SWreset bit looks like the best option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody done this?&amp;nbsp; Know how?&amp;nbsp; Found any gotchas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 00:19:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWreset-howto/m-p/183043#M1820</guid>
      <dc:creator>OldNick</dc:creator>
      <dc:date>2011-11-16T00:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: SWreset - howto?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWreset-howto/m-p/183044#M1821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SCB is the System Control Block. It's a Core part of the Cortex M3/M4 implementation so the best documentation is on the ARM InfoCenter website which you can find &lt;A href="http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0553a/CIHFDJCA.html" rel="nofollow" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp; That being said, the AIRCR.SYSRESETREQ bit is probably what you are looking for.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Keep in mind that the reset generated by the SYSRESETREQ is asynchronous, so you'll need a while(1) after you alter it, much like as in a watchdog triggered reset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 04:43:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWreset-howto/m-p/183044#M1821</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2011-11-16T04:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: SWreset - howto?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWreset-howto/m-p/183045#M1822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you look into this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;6.2.2.6 Software reset (SW)&lt;BR /&gt;The SYSRESETREQ bit in the NVIC application interrupt and reset control register can&lt;BR /&gt;be set to force a software reset on the device. Setting SYSRESETREQ generates a&lt;BR /&gt;software reset request. This reset forces a system reset of all major components except for&lt;BR /&gt;the debug module. A software reset causes SRSH[SW] bit to set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from the kinetis reference manual?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also write "junk" to the watchdog to force a reset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 08:23:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWreset-howto/m-p/183045#M1822</guid>
      <dc:creator>emh203</dc:creator>
      <dc:date>2011-11-16T08:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: SWreset - howto?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWreset-howto/m-p/183046#M1823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;emh203&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;My copy of the K_blah_RM.pdf has this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;6.2.2.6 Software reset (SW)&lt;BR /&gt;The SYSRESETREQ bit in the NVIC application interrupt and reset control register can&lt;BR /&gt;be set to force a software reset on the device. (See ARM's NVIC documentation for the&lt;BR /&gt;full description of the register fields, especially the VECTKEY field requirements.)&lt;BR /&gt;Setting SYSRESETREQ generates a software reset request. This reset forces a system&lt;BR /&gt;reset of all major components except for the debug module. A software reset causes&lt;BR /&gt;SRSH[SW] bit to set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But what did they mean by "VECTKEY field requirments"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Found nothing else on the subject.&amp;nbsp; Hence the question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I gather from the Segger JLink tech docs that it uses SWreset to reset the Kinetis, but then has to turn the WDOG off immediately because kinetis defaults to WDOG enabled and the Jlink connection breaks if nobody is feeding the dog. (i.e. in a debug session).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Don't know if Freescale are intending to fix that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 16:52:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWreset-howto/m-p/183046#M1823</guid>
      <dc:creator>OldNick</dc:creator>
      <dc:date>2011-11-16T16:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: SWreset - howto?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWreset-howto/m-p/183047#M1824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tkey,&lt;/P&gt;&lt;P&gt;Good link&lt;IMG alt=":robotvery-happy:" class="emoticon emoticon-robotvery-happy" id="robotvery-happy" src="http://freescale.i.lithium.com/i/smilies/16x16_robot-very-happy.gif" title="Robot Very Happy" /&gt;&lt;/P&gt;&lt;P&gt;Had been searching the ARM website for that, but not found it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Relevant page says&lt;/P&gt;&lt;P&gt;4.3.5.&amp;nbsp;Application Interrupt and Reset Control Register&lt;/P&gt;&lt;P&gt;The AIRCR provides priority grouping control for the exception model, endian status for data accesses, and reset control of the system. See the register summary in &lt;A href="http://infocenter.arm.com/help/topic/com.arm.doc.dui0553a/CIHFDJCA.html#CHDCFECB" rel="nofollow" target="_blank" title="Table&amp;nbsp;4.12.&amp;nbsp;Summary of the system control block registers"&gt;Table&amp;nbsp;4.12&lt;/A&gt; and &lt;A href="http://infocenter.arm.com/help/topic/com.arm.doc.dui0553a/Cihehdge.html#Cihfbgig" rel="nofollow" target="_blank" title="Table&amp;nbsp;4.17.&amp;nbsp;AIRCR bit assignments"&gt;Table&amp;nbsp;4.17&lt;/A&gt; for its attributes.&lt;/P&gt;&lt;P&gt;To write to this register, you must write 0x5FA to the VECTKEY field, otherwise the processor ignores the write.&lt;/P&gt;&lt;P&gt;The bit assignments are:&lt;/P&gt;&lt;P class="title"&gt;&lt;STRONG&gt;Table&amp;nbsp;4.17.&amp;nbsp;AIRCR bit assignments&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Bits Name Type Function&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;[31:16]&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Write: VECTKEYSTAT&lt;/P&gt;&lt;P&gt;Read: VECTKEY&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;RW&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Register key:&lt;/P&gt;&lt;P&gt;Reads as 0xFA05&lt;/P&gt;&lt;P&gt;On writes, write 0x5FA to VECTKEY, otherwise the write is ignored.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[15]&lt;/TD&gt;&lt;TD&gt;ENDIANNESS&lt;/TD&gt;&lt;TD&gt;RO&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Data endianness bit is implementation defined:&lt;/P&gt;&lt;P&gt;0 = Little-endian&lt;/P&gt;&lt;P&gt;1 = Big-endian.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[14:11]&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;TD&gt;Reserved.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[10:8]&lt;/TD&gt;&lt;TD&gt;PRIGROUP&lt;/TD&gt;&lt;TD&gt;R/W&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Interrupt priority grouping field is implementation defined. This field determines the split of group priority from subpriority, see &lt;A href="http://infocenter.arm.com/help/topic/com.arm.doc.dui0553a/Cihehdge.html#BABIJABJ" rel="nofollow" target="_blank" title="Binary point"&gt;&lt;EM&gt;Binary point&lt;/EM&gt;&lt;/A&gt;.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[7:3]&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;TD&gt;-&lt;/TD&gt;&lt;TD&gt;Reserved.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[2]&lt;/TD&gt;&lt;TD&gt;SYSRESETREQ&lt;/TD&gt;&lt;TD&gt;WO&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;System reset request bit is implementation defined:&lt;/P&gt;&lt;P&gt;0 = no system reset request&lt;/P&gt;&lt;P&gt;1 = asserts a signal to the outer system that requests a reset.&lt;/P&gt;&lt;P&gt;This is intended to force a large system reset of all major components except for debug.&lt;/P&gt;&lt;P&gt;This bit reads as 0.&lt;/P&gt;&lt;P&gt;See you vendor documentation for more information about the use of this signal in your implementation.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[1]&lt;/TD&gt;&lt;TD&gt;VECTCLRACTIVE&lt;/TD&gt;&lt;TD&gt;WO&lt;/TD&gt;&lt;TD&gt;Reserved for Debug use. This bit reads as 0. When writing to the register you must write 0 to this bit, otherwise behavior is Unpredictable.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[0]&lt;/TD&gt;&lt;TD&gt;VECTRESET&lt;/TD&gt;&lt;TD&gt;WO&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Reserved for Debug use. This bit reads as 0. When writing to the register you must write 0 to this bit, otherwise behavior is Unpredictable.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Love the bit about "see your vendor documentation!"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 18:44:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWreset-howto/m-p/183047#M1824</guid>
      <dc:creator>OldNick</dc:creator>
      <dc:date>2011-11-16T18:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: SWreset - howto?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWreset-howto/m-p/183048#M1825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;FONT face="Calibri"&gt;There is a trick to it.&amp;nbsp; You have to write the key at the same time as the reset request.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Calibri" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;FONT face="Calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* request software reset */&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;FONT face="Calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SCB_AIRCR = SCB_AIRCR_VECTKEY(0x5FA)| SCB_AIRCR_SYSRESETREQ_MASK;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;FONT face="Calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* wait for reset to occur */&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;FONT face="Calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1);&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 22:25:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWreset-howto/m-p/183048#M1825</guid>
      <dc:creator>MikeyB</dc:creator>
      <dc:date>2012-07-02T22:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: SWreset - howto?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWreset-howto/m-p/183049#M1826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I like this so much!!!! :smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks dude!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 08:58:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWreset-howto/m-p/183049#M1826</guid>
      <dc:creator>robertofrechill</dc:creator>
      <dc:date>2013-10-10T08:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: SWreset - howto?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWreset-howto/m-p/183050#M1827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #58595b;"&gt;I am using Cortex m4 processor from freescale K22,&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #58595b;"&gt;In boot loader i download my firmware and after that I do following steps to soft restart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #58595b;"&gt;&amp;nbsp;&amp;nbsp; // Disable - WatchDog and disbled IRQ.&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #58595b;"&gt;&amp;nbsp; WDT_DISABLE();&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #58595b;"&gt;&amp;nbsp; Disable_ALL_IRQ();&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #58595b;"&gt;&amp;nbsp; DisableInterrupts;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #58595b;"&gt;&amp;nbsp; // Small delay is required before Soft RESET.&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #58595b;"&gt;&amp;nbsp; delay1S();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #58595b;"&gt;&amp;nbsp; // SOFT RESET For K20&amp;nbsp; ???? is it right for k22 based mcu?????&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #58595b;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCB_AIRCR = SCB_AIRCR_VECTKEY(0x05FA) | SCB_AIRCR_SYSRESETREQ(1) ;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #58595b;"&gt;while(1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #58595b;"&gt;Now when MCU gets soft restart signal, next time it goes into CORE LOCK UP state&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #58595b;"&gt;Ref:&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #58595b;"&gt;&lt;A class="jive-link-external-small" href="http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0553a/BGBFCHGC.html" rel="nofollow" style="font-style: inherit; font-family: inherit; color: #0481a5;" target="_blank"&gt;ARM Information Center&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #58595b;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #58595b;"&gt;&lt;A href="http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka12545.html" title="http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka12545.html"&gt;ARM Information Center&lt;/A&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #58595b;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #58595b;"&gt;Then it remains in Hard fault mode until i give power on reset then this hard fault state never occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #58595b;"&gt;Can any body tell why this Hard fault state occurs when I soft restart?????? Also above code works well for k20 based MCU but then why not for K22 ?????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #58595b;"&gt;Thanks in advance!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 10:05:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWreset-howto/m-p/183050#M1827</guid>
      <dc:creator>hemant2007</dc:creator>
      <dc:date>2013-11-07T10:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: SWreset - howto?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWreset-howto/m-p/183051#M1828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a KL26z microcontroller and &amp;nbsp;unable to write AIRCR register i tried this bunch of code can't change the value of SCB-&amp;gt;AIRCR. Is there some way i could write to this register. I am using a BSP for FRDM-KL26Z on keil software.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vectkeyVal=0x5fa;&lt;BR /&gt; vectkeyVal=vectkeyVal&amp;lt;&amp;lt;16;&lt;BR /&gt; SCB-&amp;gt;AIRCR &amp;amp;= 0x00001111;&lt;BR /&gt; SCB-&amp;gt;AIRCR |= vectkeyVal;&lt;BR /&gt; SCB-&amp;gt;AIRCR |= 4;&lt;/P&gt;&lt;P&gt;while(1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;above is the code i tried please help me out for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 07:22:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWreset-howto/m-p/183051#M1828</guid>
      <dc:creator>mridulpandey</dc:creator>
      <dc:date>2016-08-29T07:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: SWreset - howto?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWreset-howto/m-p/183052#M1829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mridul,&lt;/P&gt;&lt;P&gt;can you use the code from &lt;A class="link-titled" href="https://mcuoneclipse.com/2015/07/01/how-to-reset-an-arm-cortex-m-with-software/" title="https://mcuoneclipse.com/2015/07/01/how-to-reset-an-arm-cortex-m-with-software/"&gt;https://mcuoneclipse.com/2015/07/01/how-to-reset-an-arm-cortex-m-with-software/&lt;/A&gt; ?&lt;/P&gt;&lt;P&gt;(I have not tried that with Keil, but should work that way).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 07:49:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWreset-howto/m-p/183052#M1829</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2016-08-29T07:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: SWreset - howto?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWreset-howto/m-p/183053#M1830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Erich. Its working now.I learned that while writing the VECTKEY&amp;nbsp;and the SYSRESETREQ there should be no instruction gap. It should be on the same instruction that worked for me. I just wrote..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;SCB-&amp;gt;AIRCR=0x05fA0002;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;this resulted in a reset :smileyhappy:&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 08:19:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWreset-howto/m-p/183053#M1830</guid>
      <dc:creator>mridulpandey</dc:creator>
      <dc:date>2016-08-29T08:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: SWreset - howto?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWreset-howto/m-p/183054#M1831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there. &amp;nbsp;I have a related question. &amp;nbsp;I use the above reset mechanism quite successfully on my LPC1768 but I now want to use it in an interrupt routine. &amp;nbsp;However, when I do that the LPC1768 stops dead: it does not reset. If I let the&amp;nbsp;target run normally and then stop it in the debugger once my interrupt routine has triggered, it seems to be running a loop in the boot code up at 0x1FFF0BA2:&lt;/P&gt;&lt;PRE&gt;0x1FFF0BA2 : LDR r0,[r4,#0x14]
0x1FFF0BA4 : LSLS r0,r0,#28
0x1FFF0BA6 : BMI __StackTop+268340130 ; 0x1FFF0BA2&lt;/PRE&gt;&lt;P&gt;...where R0 is 0xF0000000 and R4&amp;nbsp;is&amp;nbsp;0x2009C000 but it never actually boots.&lt;/P&gt;&lt;P&gt;Any ideas what I'm doing wrong?&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:33:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWreset-howto/m-p/183054#M1831</guid>
      <dc:creator>robmeades</dc:creator>
      <dc:date>2020-10-29T09:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: SWreset - howto?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWreset-howto/m-p/183055#M1832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try:&lt;BR /&gt;NVIC_SystemReset();&lt;BR /&gt;if you're lucky, your headerfiles do everything for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2020 10:49:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SWreset-howto/m-p/183055#M1832</guid>
      <dc:creator>bressan</dc:creator>
      <dc:date>2020-04-17T10:49:43Z</dc:date>
    </item>
  </channel>
</rss>

