<?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: I want to divide BootLoader into Boot + Loader in S32K</title>
    <link>https://community.nxp.com/t5/S32K/I-want-to-divide-BootLoader-into-Boot-Loader/m-p/987576#M5758</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I understand it correctly - you like to have one bootloader which can receive Flashing algorithm from UART (for example) and store it in RAM. When done - BL will receive application and will call flashing algorithm from RAM to store app in the PFlash. Am I correct?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately there is no such example. But technically there is nothing special about it. Your BL needs to first receive app for Flashing -&amp;gt; store it in RAM -&amp;gt; receive parts of target app&amp;nbsp; -&amp;gt; call Flashing algorithm from RAM to store received app parts into PFlash.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Nov 2019 08:15:17 GMT</pubDate>
    <dc:creator>jiri_kral</dc:creator>
    <dc:date>2019-11-14T08:15:17Z</dc:date>
    <item>
      <title>I want to divide BootLoader into Boot + Loader</title>
      <link>https://community.nxp.com/t5/S32K/I-want-to-divide-BootLoader-into-Boot-Loader/m-p/987575#M5757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the security reason, I must&amp;nbsp;divide BootLoader into Boot + Loader in S32K144 CPU.&lt;/P&gt;&lt;P&gt;The Boot is stored in PFLASH. If&amp;nbsp; Application is needed to update, First Boot receive the Loader&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then&amp;nbsp;&amp;nbsp;Loader&amp;nbsp; is Running in RAM and receive the Application and Program&amp;nbsp;Application&amp;nbsp; to PFLASH.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can anyone tell me how to do that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can&amp;nbsp;anyone&amp;nbsp;share the project?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2019 07:56:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/I-want-to-divide-BootLoader-into-Boot-Loader/m-p/987575#M5757</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2019-11-14T07:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: I want to divide BootLoader into Boot + Loader</title>
      <link>https://community.nxp.com/t5/S32K/I-want-to-divide-BootLoader-into-Boot-Loader/m-p/987576#M5758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I understand it correctly - you like to have one bootloader which can receive Flashing algorithm from UART (for example) and store it in RAM. When done - BL will receive application and will call flashing algorithm from RAM to store app in the PFlash. Am I correct?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately there is no such example. But technically there is nothing special about it. Your BL needs to first receive app for Flashing -&amp;gt; store it in RAM -&amp;gt; receive parts of target app&amp;nbsp; -&amp;gt; call Flashing algorithm from RAM to store received app parts into PFlash.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2019 08:15:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/I-want-to-divide-BootLoader-into-Boot-Loader/m-p/987576#M5758</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2019-11-14T08:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: I want to divide BootLoader into Boot + Loader</title>
      <link>https://community.nxp.com/t5/S32K/I-want-to-divide-BootLoader-into-Boot-Loader/m-p/987577#M5759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jiri,&lt;/P&gt;&lt;P&gt;Yes, you are right.&lt;/P&gt;&lt;P&gt;My issue is: How to store the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Flashing algorithm in RAM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Pls give me instruction.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Of course, if you can give me a demo, it is much appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2019 08:29:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/I-want-to-divide-BootLoader-into-Boot-Loader/m-p/987577#M5759</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2019-11-14T08:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: I want to divide BootLoader into Boot + Loader</title>
      <link>https://community.nxp.com/t5/S32K/I-want-to-divide-BootLoader-into-Boot-Loader/m-p/987578#M5760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use - for example -&amp;nbsp;&lt;A class="" href="https://www.tutorialspoint.com/c_standard_library/c_function_memcpy.htm" style="color: #2989c5; text-decoration: none;" title="https://www.tutorialspoint.com/c_standard_library/c_function_memcpy.htm"&gt;C library function - memcpy() - Tutorialspoint&lt;/A&gt;&amp;nbsp;&amp;nbsp; . Or you can write data from one address(array) to your target address(array) in&amp;nbsp; loop. In attachment is memcpy example. There is constant data array (in your case you will copy data probably from UART buffer) and pointer into unused RAM (see modified linker file).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you copy your data into RAM - you use pointer to function for calling it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2019 09:22:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/I-want-to-divide-BootLoader-into-Boot-Loader/m-p/987578#M5760</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2019-11-14T09:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: I want to divide BootLoader into Boot + Loader</title>
      <link>https://community.nxp.com/t5/S32K/I-want-to-divide-BootLoader-into-Boot-Loader/m-p/987579#M5761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, your suggestion is well done.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2020 07:11:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/I-want-to-divide-BootLoader-into-Boot-Loader/m-p/987579#M5761</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2020-03-06T07:11:45Z</dc:date>
    </item>
  </channel>
</rss>

