<?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: Does AN3275SW downloads the program via RAM? in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Does-AN3275SW-downloads-the-program-via-RAM/m-p/888920#M16375</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then do you know where is this function's implementation?&lt;/P&gt;&lt;P&gt;//vfnCopyFunctionToRAM((void (*near)(void))&amp;amp;vfnFlash_Burst);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a bootloader that programs the flash via RAM?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2019 11:11:50 GMT</pubDate>
    <dc:creator>roxy2131</dc:creator>
    <dc:date>2019-02-07T11:11:50Z</dc:date>
    <item>
      <title>Does AN3275SW downloads the program via RAM?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Does-AN3275SW-downloads-the-program-via-RAM/m-p/888918#M16373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. I am looking&amp;nbsp;in&amp;nbsp;the AN3275SW bootloader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this bootloader download the program directly to the flash without passing the RAM or it download the program via RAM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also in vfnFlashProgramCmd function in main.c file, There is a comment:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="vfnCopyFunctionToRAM.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/71368i8A0F77D2A8BE4232/image-size/large?v=v2&amp;amp;px=999" role="button" title="vfnCopyFunctionToRAM.PNG" alt="vfnCopyFunctionToRAM.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If I track this function up, I see no implementation.&lt;/P&gt;&lt;P&gt;What is the intention of this function? and where is the implementation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2019 07:08:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Does-AN3275SW-downloads-the-program-via-RAM/m-p/888918#M16373</guid>
      <dc:creator>roxy2131</dc:creator>
      <dc:date>2019-02-07T07:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Does AN3275SW downloads the program via RAM?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Does-AN3275SW-downloads-the-program-via-RAM/m-p/888919#M16374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The Bootloader is using the the vfnFlash_Cmd() function to program the flash in main.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/71594iC6227E0FE634AC9E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The implementation of the function is in S12Flash.c file.&lt;/P&gt;&lt;P&gt;As you can see, the function is in RAM:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/71643iF42C4CA6DC3382A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2019 09:47:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Does-AN3275SW-downloads-the-program-via-RAM/m-p/888919#M16374</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2019-02-07T09:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Does AN3275SW downloads the program via RAM?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Does-AN3275SW-downloads-the-program-via-RAM/m-p/888920#M16375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then do you know where is this function's implementation?&lt;/P&gt;&lt;P&gt;//vfnCopyFunctionToRAM((void (*near)(void))&amp;amp;vfnFlash_Burst);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a bootloader that programs the flash via RAM?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2019 11:11:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Does-AN3275SW-downloads-the-program-via-RAM/m-p/888920#M16375</guid>
      <dc:creator>roxy2131</dc:creator>
      <dc:date>2019-02-07T11:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Does AN3275SW downloads the program via RAM?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Does-AN3275SW-downloads-the-program-via-RAM/m-p/888921#M16376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The Bootloader programs the FLASH from RAM.&lt;/P&gt;&lt;P&gt;As you can see above, the function is placed in ROUTINESINRAM section.&lt;/P&gt;&lt;P&gt;Please see the linker file (.prm) for more datails about the section.&lt;/P&gt;&lt;P&gt;There are additional functions in RamExec.h / RamExec.c that can be used to copy and run any funtion in RAM.&lt;/P&gt;&lt;P&gt;I'm not the owner of the bootloader, but as far as I can see, this is only an example how to use the RamExec functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2019 11:31:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Does-AN3275SW-downloads-the-program-via-RAM/m-p/888921#M16376</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2019-02-07T11:31:31Z</dc:date>
    </item>
  </channel>
</rss>

