<?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: Serial Bootloader and S-Record Files - Questions</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Serial-Bootloader-and-S-Record-Files-Questions/m-p/126658#M558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Alban, thanks for the reply - it def. cleared a few things up.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am now in the process of trying to compile the assembly bootloader given in AN2153.&amp;nbsp; However, it does compile nicley in CodeWarrior.&amp;nbsp; I'm currently using CodeWarrior 5.7 with the S12XDP512.&amp;nbsp; It gets hung up with the 'opt lis' line (2nd line of code), with the error: Not a hc12 instruction or directive.&amp;nbsp; I'm not quite sure what this does, as this is my first time looking at HCS12 assembly.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Also, it does not like the fact that the macro switch and offset are being redefined (is this because the bootloader code is old and the new assembler already has these macros defined, so therefore I should&amp;nbsp;leave out the&amp;nbsp;definition from the code?).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I would really like to get this to work, so if anyone has used this on a hcs12, please let me know what you had to do to get it working.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks again!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;- Michael&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Feb 2006 20:27:28 GMT</pubDate>
    <dc:creator>MichaelA</dc:creator>
    <dc:date>2006-02-21T20:27:28Z</dc:date>
    <item>
      <title>Serial Bootloader and S-Record Files - Questions</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Serial-Bootloader-and-S-Record-Files-Questions/m-p/126656#M556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hey,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I need to implement a serial flash programming feature on the HCS12XDP512 to allow in-field software updates with basic PC utilities (ie just hyper terminal).&amp;nbsp; I have read AN2153 (A Serial Bootloader for Reprogramming FLASH Memory), and think that it should work for what I am after; however, I have a few questions that I would like to get clarified, since I have never worked with FLASH directly nor S-Records.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;From what&amp;nbsp;I understand, the bootloader is uploaded onto the target MCU; then after that a project that is compiled in CodeWarrior produces a *.s19 file, that should be transmitted to the MCU using a serial connection (ie, through HyperTerminal).&amp;nbsp; What bugs me, though, is that the *.s19 file for my application is only 23kB!&amp;nbsp; I find it hard to believe that all the code I've written has been bogged down into just 23kB of s-records.&amp;nbsp; There also are other files in the /bin directory, such as a *.abs (which is 389kB), *.phy, and&amp;nbsp;*.map.&amp;nbsp; Do these have anything to do with programming the FLASH through a serial connection?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I also think I&amp;nbsp;understand that I have to create a secondary vector table in my actual application, since the bootloader uses the main vector table.&amp;nbsp; Is there also any extra precautions that need to be taken with the XGATE?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for any input on the subject.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;- Michael&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2006 19:03:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Serial-Bootloader-and-S-Record-Files-Questions/m-p/126656#M556</guid>
      <dc:creator>MichaelA</dc:creator>
      <dc:date>2006-02-20T19:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Bootloader and S-Record Files - Questions</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Serial-Bootloader-and-S-Record-Files-Questions/m-p/126657#M557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;Hi Michael,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;You can consider the &lt;STRONG&gt;S-Record&lt;/STRONG&gt; as being a &lt;STRONG&gt;snapshot&lt;/STRONG&gt; or &lt;STRONG&gt;exact image&lt;/STRONG&gt;&amp;nbsp;of the memory to be programmed. As there is added checksum and address information, it means your code will be smaller than 30KB. Maybe some of your code was not compiled/linked.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;The ABS file contains debugging info for HiWave debugger, that's why it is much bigger.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;The MAP file indicated memory used, it's a good place to start to see if all your functions are implemented. It only gives info and is not required/helpfull for the programmer. I enclosed a file which includes description of the S-Record constitution.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;&lt;EM&gt;The S-Record is the only file you need to program your soft into the S12X.&lt;/EM&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;Oups, need to edit the post, only replied to half the questions &lt;IMG alt=":smileyvery-happy:" class="emoticon emoticon-smileyvery-happy" id="smileyvery-happy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-very-happy.gif" title="Smiley Very Happy" /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;The XGate is like a second core, therfore it does need its own vector table. Extra precautions are multiple because it's another core. For instance it is general practise to execute the XGate code from RAM to use it at its full potential. For this effect, the code is stored in Flash and copied to RAM during initialization.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;Cheers,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Comic Sans MS"&gt;Alban.&lt;/FONT&gt;&lt;/DIV&gt;&lt;P&gt;Message Edited by Alban on &lt;SPAN class="date_text"&gt;02-20-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;12:12 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/community_files/16BITCOMM/263_SRecordInfo_mmevs0508om.pdf" rel="nofollow" target="_self"&gt;SRecordInfo_mmevs0508om.pdf&lt;/A&gt;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by t.dowe on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-10-20&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;11:51 PM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2006 20:08:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Serial-Bootloader-and-S-Record-Files-Questions/m-p/126657#M557</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2006-02-20T20:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Bootloader and S-Record Files - Questions</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Serial-Bootloader-and-S-Record-Files-Questions/m-p/126658#M558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Alban, thanks for the reply - it def. cleared a few things up.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am now in the process of trying to compile the assembly bootloader given in AN2153.&amp;nbsp; However, it does compile nicley in CodeWarrior.&amp;nbsp; I'm currently using CodeWarrior 5.7 with the S12XDP512.&amp;nbsp; It gets hung up with the 'opt lis' line (2nd line of code), with the error: Not a hc12 instruction or directive.&amp;nbsp; I'm not quite sure what this does, as this is my first time looking at HCS12 assembly.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Also, it does not like the fact that the macro switch and offset are being redefined (is this because the bootloader code is old and the new assembler already has these macros defined, so therefore I should&amp;nbsp;leave out the&amp;nbsp;definition from the code?).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I would really like to get this to work, so if anyone has used this on a hcs12, please let me know what you had to do to get it working.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks again!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;- Michael&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2006 20:27:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Serial-Bootloader-and-S-Record-Files-Questions/m-p/126658#M558</guid>
      <dc:creator>MichaelA</dc:creator>
      <dc:date>2006-02-21T20:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Bootloader and S-Record Files - Questions</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Serial-Bootloader-and-S-Record-Files-Questions/m-p/126659#M559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;Hello Michael/Alban,&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;Im am currently going through exactly the same process and am finding CodeWarrior Is moaning like hell about the source supplied with AN2153 an as my knowledge of assembler is rubbish Im a bit stuck. Conveniently with the S08 some considerate person at Freescale built bootloader project for CodeWarrior. Does such a thing exists already for the S12?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any help would be greatly &lt;SPAN&gt;appreciated&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Stuart&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 19:29:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Serial-Bootloader-and-S-Record-Files-Questions/m-p/126659#M559</guid>
      <dc:creator>Stu</dc:creator>
      <dc:date>2006-02-23T19:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Bootloader and S-Record Files - Questions</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Serial-Bootloader-and-S-Record-Files-Questions/m-p/126660#M560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;FONT face="Comic Sans MS"&gt;Stuart,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Comic Sans MS"&gt;A&amp;nbsp;good friend advised me the&lt;/FONT&gt; &lt;A href="http://www.freescale.com/files/microcontrollers/doc/app_note/AN2546.pdf" rel="nofollow" target="_blank"&gt;&lt;FONT face="Comic Sans MS"&gt;AN2546 - HCS12 Load RAM and Execute Bootloader User Guide&lt;/FONT&gt;&lt;/A&gt; &lt;FONT face="Comic Sans MS"&gt;with its software AN2546SW.zip for your S12.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Comic Sans MS"&gt;Alban.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Message Edited by Alban on &lt;SPAN class="date_text"&gt;02-23-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;11:57 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 19:56:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Serial-Bootloader-and-S-Record-Files-Questions/m-p/126660#M560</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2006-02-23T19:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Bootloader and S-Record Files - Questions</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Serial-Bootloader-and-S-Record-Files-Questions/m-p/126661#M561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Stu/Alban,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Not a bad idea to use AN2546 as a base and write&amp;nbsp;your own routines for reading in the S-Records through an SCI.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for the suggestions!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;- Michael&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2006 23:17:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Serial-Bootloader-and-S-Record-Files-Questions/m-p/126661#M561</guid>
      <dc:creator>MichaelA</dc:creator>
      <dc:date>2006-02-23T23:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Serial Bootloader and S-Record Files - Questions</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Serial-Bootloader-and-S-Record-Files-Questions/m-p/126662#M562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Cheers Alban,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'll give it a blast.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;PS sunnys rock!&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2006 18:59:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Serial-Bootloader-and-S-Record-Files-Questions/m-p/126662#M562</guid>
      <dc:creator>Stu</dc:creator>
      <dc:date>2006-02-24T18:59:22Z</dc:date>
    </item>
  </channel>
</rss>

