<?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のトピックCAN Bootloader</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CAN-Bootloader/m-p/125316#M298</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Arial;"&gt;&lt;FONT color="#ff0000" size="2"&gt;This message contains an entire topic ported from a separate forum. The original message and all replies are in this single message. We have seeded this new forum with selected information that we expect will be of value to you as you search for answers to your questions.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Arial;"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Arial;"&gt;&lt;FONT color="#ff0000"&gt;&lt;NAMESPACE ns="http://www.lithium.com/unique/URI" prefix="o"&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/NAMESPACE&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Date: Tue Feb 15, 2005 11:29am&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;Subject: CAN Bootloader&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am currently implementing a CAN Bootloader, I am using the Bootloader saved in the file store of this group and the Bootloader documented in &lt;A href="http://www.freescale.com/files/microcontrollers/doc/app_note/AN1828.pdf" rel="nofollow" target="_blank"&gt;AN1828/D&lt;/A&gt; as reference. &lt;BR /&gt;I have a question regarding running the Bootloader from RAM, we currently use the serial Bootloader from the freescale site, this copies itself into RAM and moves RAM to the upper 4k of flash to overlay the Bootloader allowing all other flash locations to be programmed. I cannot see in either of the CAN Bootloaders RAM being moved to the upper 4k of flash. &lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Does anyone know if I am missing something here, should the RAM be moved as with the serial version as I believe it should be?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Thanks in advance&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Date: Tue Feb 15, 2005 4:00pm&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Which mcu are we talking about? I don't know of any where the RAM would be overlaping the Flash. In fact, I thought moving RAM to upper 4K would in fact cover part of Flash. Or what upper 4K are we talking about?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Date: Wed Feb 16, 2005 2:13am&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;The main reason to copy and execute from RAM is to allow to erase/reprogram the flash page where bootloader is stored, excepting the bootloader itself.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Date: Wed Feb 16, 2005 2:53am &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Yes I understand this, the problem I have is that the serial Bootloader I use at the minute writes to the INITRM register to move the RAM to the top 16k address location, so the rest of the flash can be programmed except the Bootloader. The two CAN Bootloaders I am using as reference get copied into RAM via a LRAE but do not appear to write to this register thus leaving the RAM in its default location, I am trying to ascertain if there is a reason for the RAM being left in its default location.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Date: Wed Feb 16, 2005 4:53am&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;The main reason to move the RAM to the top of the memory, is if you want to process interrupts while executing the Flash programming algorithms from the internal RAM (since the high Flash page is available to supply the interrupt vector when this Flash block is being updated).&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;If you are sure there will be no interrupt requests, moving the RAM is not necessary - you can execute from the RAM in its default Reset location.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hope this helps,&lt;/FONT&gt;&lt;/DIV&gt;&lt;P&gt;Message Edited by Dietrich on &lt;SPAN class="date_text"&gt;01-29-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;11:36 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Message Edited by Alban on &lt;SPAN class="date_text"&gt;01-30-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;10:33 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jan 2006 01:35:42 GMT</pubDate>
    <dc:creator>Dietrich</dc:creator>
    <dc:date>2006-01-30T01:35:42Z</dc:date>
    <item>
      <title>CAN Bootloader</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CAN-Bootloader/m-p/125316#M298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Arial;"&gt;&lt;FONT color="#ff0000" size="2"&gt;This message contains an entire topic ported from a separate forum. The original message and all replies are in this single message. We have seeded this new forum with selected information that we expect will be of value to you as you search for answers to your questions.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Arial;"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P class="MsoNormal" style="MARGIN: 0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE: 9pt; FONT-FAMILY: Arial;"&gt;&lt;FONT color="#ff0000"&gt;&lt;NAMESPACE ns="http://www.lithium.com/unique/URI" prefix="o"&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/NAMESPACE&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Date: Tue Feb 15, 2005 11:29am&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;Subject: CAN Bootloader&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am currently implementing a CAN Bootloader, I am using the Bootloader saved in the file store of this group and the Bootloader documented in &lt;A href="http://www.freescale.com/files/microcontrollers/doc/app_note/AN1828.pdf" rel="nofollow" target="_blank"&gt;AN1828/D&lt;/A&gt; as reference. &lt;BR /&gt;I have a question regarding running the Bootloader from RAM, we currently use the serial Bootloader from the freescale site, this copies itself into RAM and moves RAM to the upper 4k of flash to overlay the Bootloader allowing all other flash locations to be programmed. I cannot see in either of the CAN Bootloaders RAM being moved to the upper 4k of flash. &lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Does anyone know if I am missing something here, should the RAM be moved as with the serial version as I believe it should be?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Thanks in advance&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Date: Tue Feb 15, 2005 4:00pm&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Which mcu are we talking about? I don't know of any where the RAM would be overlaping the Flash. In fact, I thought moving RAM to upper 4K would in fact cover part of Flash. Or what upper 4K are we talking about?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Date: Wed Feb 16, 2005 2:13am&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;The main reason to copy and execute from RAM is to allow to erase/reprogram the flash page where bootloader is stored, excepting the bootloader itself.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Date: Wed Feb 16, 2005 2:53am &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Yes I understand this, the problem I have is that the serial Bootloader I use at the minute writes to the INITRM register to move the RAM to the top 16k address location, so the rest of the flash can be programmed except the Bootloader. The two CAN Bootloaders I am using as reference get copied into RAM via a LRAE but do not appear to write to this register thus leaving the RAM in its default location, I am trying to ascertain if there is a reason for the RAM being left in its default location.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Date: Wed Feb 16, 2005 4:53am&lt;/STRONG&gt; &lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;The main reason to move the RAM to the top of the memory, is if you want to process interrupts while executing the Flash programming algorithms from the internal RAM (since the high Flash page is available to supply the interrupt vector when this Flash block is being updated).&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;If you are sure there will be no interrupt requests, moving the RAM is not necessary - you can execute from the RAM in its default Reset location.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hope this helps,&lt;/FONT&gt;&lt;/DIV&gt;&lt;P&gt;Message Edited by Dietrich on &lt;SPAN class="date_text"&gt;01-29-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;11:36 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Message Edited by Alban on &lt;SPAN class="date_text"&gt;01-30-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;10:33 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2006 01:35:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/CAN-Bootloader/m-p/125316#M298</guid>
      <dc:creator>Dietrich</dc:creator>
      <dc:date>2006-01-30T01:35:42Z</dc:date>
    </item>
  </channel>
</rss>

