<?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: Reset from RAM vs Reset from ROM</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reset-from-RAM-vs-Reset-from-ROM/m-p/620657#M37136</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;The Kinetis product always boot from internal Flash(ROM).&lt;/P&gt;&lt;P&gt;When the code run in RAM with &lt;STRONG&gt;NVIC_SystemReset();&lt;/STRONG&gt;, which will software reset the K20.&lt;/P&gt;&lt;P&gt;The K20 will reboot to execute the code from internal Flash.&lt;/P&gt;&lt;P&gt;If Flash doesn't with available code/instruction, the K20 internal watchdog will work to reset the chip periodically.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;BR /&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, 06 Mar 2017 06:23:58 GMT</pubDate>
    <dc:creator>Hui_Ma</dc:creator>
    <dc:date>2017-03-06T06:23:58Z</dc:date>
    <item>
      <title>Reset from RAM vs Reset from ROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reset-from-RAM-vs-Reset-from-ROM/m-p/620656#M37135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Test MCU: &amp;nbsp; MK20DN512VLK10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sbloader_finalize() will reset ecm after flashing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;status_t sbloader_finalize()&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;assert(g_bootloaderContext.memoryInterface-&amp;gt;flush);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (s_loaderContext.bootCmd.tag == ROM_JUMP_CMD)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; //jump to applciation&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else if (s_loaderContext.bootCmd.tag == ROM_RESET_CMD)&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; /&lt;STRONG&gt;/ Prepare for shutdown.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; shutdown_cleanup(kShutdownType_Reset);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; NVIC_SystemReset();&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; / / Does not get here.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; assert(0);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;// We should never get here, so return an error if we do&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp;return kStatusRomLdrResetReturned;&lt;/STRONG&gt;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the above code is executed from ROM, target is reset properly.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the same code is executed from RAM, target&amp;nbsp;keeps resetting&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What more cleanup needs to be done when board is reset from RAM?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jim&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 16:32:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reset-from-RAM-vs-Reset-from-ROM/m-p/620656#M37135</guid>
      <dc:creator>imx_proc_user</dc:creator>
      <dc:date>2017-03-03T16:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Reset from RAM vs Reset from ROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reset-from-RAM-vs-Reset-from-ROM/m-p/620657#M37136</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;The Kinetis product always boot from internal Flash(ROM).&lt;/P&gt;&lt;P&gt;When the code run in RAM with &lt;STRONG&gt;NVIC_SystemReset();&lt;/STRONG&gt;, which will software reset the K20.&lt;/P&gt;&lt;P&gt;The K20 will reboot to execute the code from internal Flash.&lt;/P&gt;&lt;P&gt;If Flash doesn't with available code/instruction, the K20 internal watchdog will work to reset the chip periodically.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;BR /&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, 06 Mar 2017 06:23:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reset-from-RAM-vs-Reset-from-ROM/m-p/620657#M37136</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2017-03-06T06:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reset from RAM vs Reset from ROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reset-from-RAM-vs-Reset-from-ROM/m-p/620658#M37137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that was it. In the .bd file, I was loading the flash image to 0xa00. Once I changed to 0x000, it works now.&lt;/P&gt;&lt;P&gt;Thank you very much for the answer!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 18:35:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Reset-from-RAM-vs-Reset-from-ROM/m-p/620658#M37137</guid>
      <dc:creator>imx_proc_user</dc:creator>
      <dc:date>2017-03-16T18:35:09Z</dc:date>
    </item>
  </channel>
</rss>

