<?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>S12 / MagniV Microcontrollers中的主题 Re: Standard Software Flash Driver For S12G</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Standard-Software-Flash-Driver-For-S12G/m-p/1212300#M17673</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to merge srecord files the first thing you should consider is whether the address in both srecords is not overlapped.&lt;/P&gt;
&lt;P&gt;After that, there are a few methods of how you can merge the files, please, refer to this link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S12-MagniV-Microcontrollers/merge-Bootloader-and-application/m-p/957543" target="_blank"&gt;https://community.nxp.com/t5/S12-MagniV-Microcontrollers/merge-Bootloader-and-application/m-p/957543&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;From your description is not clear which addresses are included in your .sx files. So, please, keep in mind that when you will load the file into the flash by your project use the address space which empty/ not used by your project&amp;nbsp;to avoid overwriting the flash addresses of a project and your srecord.&lt;/P&gt;
&lt;P&gt;Note: The attached file can help you to easily recalculate checksum in a specific record. just copy your record to input and change, for example, the address if it is needed and the checksum will be recalculated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;About the run in RAM question.&lt;/P&gt;
&lt;P&gt;I suggest looking at the &lt;A href="http://www.nxp.com/files/microcontrollers/doc/app_note/AN4258SW.zip" rel="nofollow noopener noreferrer" target="_blank"&gt;&lt;SPAN&gt;SW&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;of&amp;nbsp; &lt;A href="http://www.nxp.com/files/microcontrollers/doc/app_note/AN4258.pdf" rel="nofollow noopener noreferrer" target="_blank"&gt;&lt;SPAN&gt;AN4258&lt;/SPAN&gt;&lt;/A&gt;. In this example, a segment in RAM&amp;nbsp;is created. This segment is used for functions that must be executed from RAM memory. These functions are stored in flash memory in RAM_CODE_SEG and are copied to RAM memory after startup.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please, refer to .prm file located here: AN4258SW\Bootloader_S12\prm&lt;/P&gt;
&lt;P&gt;Also, you can find this function "static void CopyCodeToRAM(void)" in the AN4258SW\Bootloader_S12\Sources\main.c&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After that, when the code is loaded at the required address you can jump at that address. The AN4258 is a bootloader example code and uses jump at a certain address (address of an application) after the reset in the StartS12.s file. You can use it as a reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope it helps.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Diana&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jan 2021 09:48:20 GMT</pubDate>
    <dc:creator>dianabatrlova</dc:creator>
    <dc:date>2021-01-15T09:48:20Z</dc:date>
    <item>
      <title>Standard Software Flash Driver For S12G</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Standard-Software-Flash-Driver-For-S12G/m-p/1210204#M17668</link>
      <description>&lt;P&gt;&lt;SPAN class="transSent"&gt;I get firmware S12G_VR_NVM_SSD.&lt;/SPAN&gt;&lt;SPAN class="transSent highlight"&gt;After compiling the project, I generate a series of arrays and&amp;nbsp; .sx files, such as FlashInit_C, FlashProgram_C, or flashinit.sx, etc.&lt;/SPAN&gt;&lt;SPAN class="transSent"&gt;How do I merge these .sx files or arrays into an S19 file?&lt;/SPAN&gt;&lt;SPAN class="transSent"&gt;Since I want to run in RAM, I need to locate the address to the RAM of S12G128, and the boot RAM address is 0x3000. For Help&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 08:22:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Standard-Software-Flash-Driver-For-S12G/m-p/1210204#M17668</guid>
      <dc:creator>Derrick_Bean_Lee_33</dc:creator>
      <dc:date>2021-01-12T08:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Standard Software Flash Driver For S12G</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Standard-Software-Flash-Driver-For-S12G/m-p/1212300#M17673</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to merge srecord files the first thing you should consider is whether the address in both srecords is not overlapped.&lt;/P&gt;
&lt;P&gt;After that, there are a few methods of how you can merge the files, please, refer to this link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S12-MagniV-Microcontrollers/merge-Bootloader-and-application/m-p/957543" target="_blank"&gt;https://community.nxp.com/t5/S12-MagniV-Microcontrollers/merge-Bootloader-and-application/m-p/957543&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;From your description is not clear which addresses are included in your .sx files. So, please, keep in mind that when you will load the file into the flash by your project use the address space which empty/ not used by your project&amp;nbsp;to avoid overwriting the flash addresses of a project and your srecord.&lt;/P&gt;
&lt;P&gt;Note: The attached file can help you to easily recalculate checksum in a specific record. just copy your record to input and change, for example, the address if it is needed and the checksum will be recalculated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;About the run in RAM question.&lt;/P&gt;
&lt;P&gt;I suggest looking at the &lt;A href="http://www.nxp.com/files/microcontrollers/doc/app_note/AN4258SW.zip" rel="nofollow noopener noreferrer" target="_blank"&gt;&lt;SPAN&gt;SW&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;of&amp;nbsp; &lt;A href="http://www.nxp.com/files/microcontrollers/doc/app_note/AN4258.pdf" rel="nofollow noopener noreferrer" target="_blank"&gt;&lt;SPAN&gt;AN4258&lt;/SPAN&gt;&lt;/A&gt;. In this example, a segment in RAM&amp;nbsp;is created. This segment is used for functions that must be executed from RAM memory. These functions are stored in flash memory in RAM_CODE_SEG and are copied to RAM memory after startup.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please, refer to .prm file located here: AN4258SW\Bootloader_S12\prm&lt;/P&gt;
&lt;P&gt;Also, you can find this function "static void CopyCodeToRAM(void)" in the AN4258SW\Bootloader_S12\Sources\main.c&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After that, when the code is loaded at the required address you can jump at that address. The AN4258 is a bootloader example code and uses jump at a certain address (address of an application) after the reset in the StartS12.s file. You can use it as a reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope it helps.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Diana&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 09:48:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Standard-Software-Flash-Driver-For-S12G/m-p/1212300#M17673</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2021-01-15T09:48:20Z</dc:date>
    </item>
  </channel>
</rss>

