<?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のトピックRe: K22 MCU goes into CORE LOCK UP state when try to SOFT RESET</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-MCU-goes-into-CORE-LOCK-UP-state-when-try-to-SOFT-RESET/m-p/271601#M9249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks all ...&lt;/P&gt;&lt;P&gt;problem is solved now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jul 2014 04:34:29 GMT</pubDate>
    <dc:creator>hemant2007</dc:creator>
    <dc:date>2014-07-17T04:34:29Z</dc:date>
    <item>
      <title>K22 MCU goes into CORE LOCK UP state when try to SOFT RESET</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-MCU-goes-into-CORE-LOCK-UP-state-when-try-to-SOFT-RESET/m-p/271596#M9244</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&gt;I am using Cortex m4 processor from freescale K22,&lt;/P&gt;&lt;P&gt;In boot loader i download my firmware and after that I do following steps to soft restart the k22.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; // Disable - WatchDog and disbled IRQ.&lt;/P&gt;&lt;P&gt;&amp;nbsp; WDT_DISABLE();&lt;/P&gt;&lt;P&gt;&amp;nbsp; Disable_ALL_IRQ();&lt;/P&gt;&lt;P&gt;&amp;nbsp; DisableInterrupts;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Small delay is required before Soft RESET.&lt;/P&gt;&lt;P&gt;&amp;nbsp; delay1S();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // SOFT RESET For K20&amp;nbsp; ???? is it right for k22 based mcu?????&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCB_AIRCR = SCB_AIRCR_VECTKEY(0x05FA) | SCB_AIRCR_SYSRESETREQ(1) ;&lt;/P&gt;&lt;P&gt;while(1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when MCU gets soft restart signal, next time it goes into CORE LOCK UP state&lt;/P&gt;&lt;P&gt;Ref:&lt;/P&gt;&lt;P&gt;ARM Information Center&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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&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&gt;I have created same thread on ARM.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.arm.com/message/14623#14623"&gt;http://community.arm.com/message/14623#14623&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks in advance!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 08:53:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-MCU-goes-into-CORE-LOCK-UP-state-when-try-to-SOFT-RESET/m-p/271596#M9244</guid>
      <dc:creator>hemant2007</dc:creator>
      <dc:date>2013-11-12T08:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: K22 MCU goes into CORE LOCK UP state when try to SOFT RESET</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-MCU-goes-into-CORE-LOCK-UP-state-when-try-to-SOFT-RESET/m-p/271597#M9245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked into your thread on ARM community, and found you said"&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #58595b;"&gt;I tried using 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #58595b;"&gt;SCB_AIRCR = SCB_AIRCR_VECTKEY(0x05FA) | SCB_AIRCR_SYSRESETREQ(4) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #58595b;"&gt;but NO improvements, still same results.&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;but in above case, 0 written to SYSRESETREQ bit, no system reset should occur, did the MCU still reset and hard fault exception happened anyway? Please kindly help to confirm. Thanks for your patience!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B.R&lt;/P&gt;&lt;P&gt;Kan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 09:06:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-MCU-goes-into-CORE-LOCK-UP-state-when-try-to-SOFT-RESET/m-p/271597#M9245</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2013-11-20T09:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: K22 MCU goes into CORE LOCK UP state when try to SOFT RESET</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-MCU-goes-into-CORE-LOCK-UP-state-when-try-to-SOFT-RESET/m-p/271598#M9246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes MCU still reset&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 13:04:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-MCU-goes-into-CORE-LOCK-UP-state-when-try-to-SOFT-RESET/m-p/271598#M9246</guid>
      <dc:creator>hemant2007</dc:creator>
      <dc:date>2013-11-25T13:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: K22 MCU goes into CORE LOCK UP state when try to SOFT RESET</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-MCU-goes-into-CORE-LOCK-UP-state-when-try-to-SOFT-RESET/m-p/271599#M9247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ，&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our AE team has tried your code, everything is ok. but we didn't use the same code, because we don't have the macro definition, so we use the following code instead:&lt;/P&gt;&lt;P&gt;SCB_AIRCR = 0x05FA0004;&lt;/P&gt;&lt;P&gt;it works well as expected.&lt;/P&gt;&lt;P&gt;so we suspected if your application code also contains other codes for peripheral initialization. as I know , the above instruction is just used to reset the core, not all the peripherals. so if there is code used to init the peripherals that not reset after this instruction execution, that might cause problem like you met. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please only try the above instruction to see if the problem is still there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your patience!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B.R&lt;/P&gt;&lt;P&gt;Kan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 09:53:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-MCU-goes-into-CORE-LOCK-UP-state-when-try-to-SOFT-RESET/m-p/271599#M9247</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2013-11-26T09:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: K22 MCU goes into CORE LOCK UP state when try to SOFT RESET</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-MCU-goes-into-CORE-LOCK-UP-state-when-try-to-SOFT-RESET/m-p/271600#M9248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kan_Li !!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try your suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2013 04:06:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-MCU-goes-into-CORE-LOCK-UP-state-when-try-to-SOFT-RESET/m-p/271600#M9248</guid>
      <dc:creator>hemant2007</dc:creator>
      <dc:date>2013-11-29T04:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: K22 MCU goes into CORE LOCK UP state when try to SOFT RESET</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-MCU-goes-into-CORE-LOCK-UP-state-when-try-to-SOFT-RESET/m-p/271601#M9249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks all ...&lt;/P&gt;&lt;P&gt;problem is solved now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 04:34:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-MCU-goes-into-CORE-LOCK-UP-state-when-try-to-SOFT-RESET/m-p/271601#M9249</guid>
      <dc:creator>hemant2007</dc:creator>
      <dc:date>2014-07-17T04:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: K22 MCU goes into CORE LOCK UP state when try to SOFT RESET</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-MCU-goes-into-CORE-LOCK-UP-state-when-try-to-SOFT-RESET/m-p/271602#M9250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/hemant2007"&gt;hemant2007&lt;/A&gt;- thanks for posting this. I'm&amp;nbsp;up against a similar problem by the looks of things; works fine with K21 but bad with K22. Can you please post the details of what you found?&amp;nbsp; I'm really scratching my head over this.&lt;/P&gt;&lt;P&gt;I know it's been a long time and this is really digging deep into the memory archives.&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;P&gt;RD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2020 05:39:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-MCU-goes-into-CORE-LOCK-UP-state-when-try-to-SOFT-RESET/m-p/271602#M9250</guid>
      <dc:creator>rhysdrummond</dc:creator>
      <dc:date>2020-05-07T05:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: K22 MCU goes into CORE LOCK UP state when try to SOFT RESET</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-MCU-goes-into-CORE-LOCK-UP-state-when-try-to-SOFT-RESET/m-p/271603#M9251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have resolved the issue in my case. It was quite a challenge to find!&lt;/P&gt;&lt;P&gt;In our system we use FlexNVM for "Eeprom".&amp;nbsp; It works fine on power-up, and when starting the application.&lt;/P&gt;&lt;P&gt;But for some reason, when jumping to the bootloader from&amp;nbsp;a SW reset call (as per the above&amp;nbsp;SCB_AIRCR = 0x05FA0004; line) it would&amp;nbsp;BusFault; the Precise error was an address in&amp;nbsp;EE of the first access - a EE read.&lt;/P&gt;&lt;P&gt;It turns out that the EEE state machine starts by copying data from flash to RAM, and for some reason this wasn't happening&amp;nbsp;before the first access was invoked, hence the requested address was not available (therefore Bus Fault).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;The actual fix&lt;/SPAN&gt; was to add a EE Ready Check before every EE write AND read function:&lt;/P&gt;&lt;P&gt;while(!(FTFE_FCNFG &amp;amp; FTFE_FCNFG_EEERDY_MASK));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(This check was formerly done &lt;EM&gt;after&amp;nbsp;&lt;/EM&gt;each EE write only, so left&amp;nbsp;things open to a race condition).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helpful information found here:&amp;nbsp;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN4282.pdf" title="https://www.nxp.com/docs/en/application-note/AN4282.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN4282.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps someone. Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2020 03:19:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-MCU-goes-into-CORE-LOCK-UP-state-when-try-to-SOFT-RESET/m-p/271603#M9251</guid>
      <dc:creator>rhysdrummond</dc:creator>
      <dc:date>2020-05-08T03:19:46Z</dc:date>
    </item>
  </channel>
</rss>

