<?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 Warm M4 firmware replace in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Warm-M4-firmware-replace/m-p/450678#M69880</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;is it possible to change the firmware on M4 core of imx6 SoloX without rebooting the whole platform ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that under u-boot I can start M4 core via "bootaux" command,&amp;nbsp; &lt;/P&gt;&lt;P&gt;and also I can stop it via a simple write on SRC_SCR register:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; mw.l&amp;nbsp; 0x020d8000 0xA0480520&lt;/P&gt;&lt;P&gt;and start the core again with the same firmware using "bootaux".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I change the firmware loading a new working one in the same location, the core hang. The new firmware works only after a restart of the platform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tryed to cleanup RDC registers too, but I can't find any procedure to restart the M4 with a new firmware without a power down/on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover I didn't find any documentation on how to use M4 reset functionality to start a new firmware, Is it a not supported operation ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Giuseppe&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Aug 2015 18:25:02 GMT</pubDate>
    <dc:creator>giuseppepagano1</dc:creator>
    <dc:date>2015-08-19T18:25:02Z</dc:date>
    <item>
      <title>Warm M4 firmware replace</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Warm-M4-firmware-replace/m-p/450678#M69880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;is it possible to change the firmware on M4 core of imx6 SoloX without rebooting the whole platform ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that under u-boot I can start M4 core via "bootaux" command,&amp;nbsp; &lt;/P&gt;&lt;P&gt;and also I can stop it via a simple write on SRC_SCR register:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; mw.l&amp;nbsp; 0x020d8000 0xA0480520&lt;/P&gt;&lt;P&gt;and start the core again with the same firmware using "bootaux".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I change the firmware loading a new working one in the same location, the core hang. The new firmware works only after a restart of the platform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tryed to cleanup RDC registers too, but I can't find any procedure to restart the M4 with a new firmware without a power down/on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover I didn't find any documentation on how to use M4 reset functionality to start a new firmware, Is it a not supported operation ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Giuseppe&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 18:25:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Warm-M4-firmware-replace/m-p/450678#M69880</guid>
      <dc:creator>giuseppepagano1</dc:creator>
      <dc:date>2015-08-19T18:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Warm M4 firmware replace</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Warm-M4-firmware-replace/m-p/450679#M69881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Strongly suggest do not try to do that, it will introduce lots of unexpected issues later on.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you disable the RDC, it can. &lt;/P&gt;&lt;P&gt;Also you need to load the image to the memory&amp;nbsp; correct address. &lt;/P&gt;&lt;P&gt;And also re-write the M4 vector as boot aux does. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;stackp 0x007F8004&lt;/P&gt;&lt;P&gt;pc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x007F8000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SRC Control Register (SRC_SCR) bit 22 m4_enable&lt;/P&gt;&lt;P&gt;SRC Control Register (SRC_SCR) bit 4&amp;nbsp; m4c_non_sclr_rst&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 00:48:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Warm-M4-firmware-replace/m-p/450679#M69881</guid>
      <dc:creator>BiyongSUN</dc:creator>
      <dc:date>2015-08-20T00:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Warm M4 firmware replace</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Warm-M4-firmware-replace/m-p/450680#M69882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; Giuseppe, hello !&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In addition to Biyong Sun - please take a look at&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="font-size: 12.0pt; font-family: 'Verdana','sans-serif';"&gt;MX6 SoloX bare metal startup&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline; font-size: 12.0pt; font-family: 'Verdana','sans-serif';"&gt;&lt;A class="jive-link-wiki-small" data-containerid="2004" data-containertype="14" data-objectid="106253" data-objecttype="102" href="https://community.freescale.com/docs/DOC-106253"&gt;https://community.freescale.com/docs/DOC-106253&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Yuri&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>Thu, 20 Aug 2015 02:05:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Warm-M4-firmware-replace/m-p/450680#M69882</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2015-08-20T02:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Warm M4 firmware replace</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Warm-M4-firmware-replace/m-p/450681#M69883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for your comments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've read (very interesting) Yuri post about "SoloX bare metal startup", and I based on it lots of my tests.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand right, the only way to change the firmware once M4 has started is to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; - stop M4;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; - reset permission on RDC registers;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; - replace the firmware;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; - update stack and pc addresses;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; - reset and start M4;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I do not reset permission on RDC I can't updare new firmware from A9 (in DDR or ocram area).&lt;/P&gt;&lt;P&gt;But once RDC register have been alterated, system becames unstable (crash after few seconds...).&lt;/P&gt;&lt;P&gt;So I think I can't do that ....&lt;/P&gt;&lt;P&gt;Is it right ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N.B. I need a "warm upgrade procedure" just for development phase of new firmware, not for production. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 10:03:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Warm-M4-firmware-replace/m-p/450681#M69883</guid>
      <dc:creator>giuseppepagano1</dc:creator>
      <dc:date>2015-08-21T10:03:29Z</dc:date>
    </item>
  </channel>
</rss>

