<?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: Creating and downloading .S19 files for serial bootloader for S12G240 - GA240 micro's</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-and-downloading-S19-files-for-serial-bootloader-for/m-p/355549#M10591</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I finally seemed to have resolved these issues (not a good solution for solving the S1 records issue but good enough for my application). Below is how I resolved them, if anyone out there is having similar issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems like I got the S1 records in my converted .S19 from the SRecCvt tool when I included the PAGE memory 01 to 07, when I commented these lines out in the .prm file no S1 records were created by the SRecCvt tool. The “S-Record out of range” error was occuring because the interrupt vector table wasn’t being moved properly, this was my fault. Had to go through some more forum posts to figure this one out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Mar 2015 21:47:25 GMT</pubDate>
    <dc:creator>ashkhu</dc:creator>
    <dc:date>2015-03-31T21:47:25Z</dc:date>
    <item>
      <title>Creating and downloading .S19 files for serial bootloader for S12G240 - GA240 micro's</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-and-downloading-S19-files-for-serial-bootloader-for/m-p/355547#M10589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;H&lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt;i. I created a CAN bootloader using AN4258 and the serial bootloader that's implemented in there. I'm having issues when trying to program our test board that uses the S12G240 and S12GA240.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;A little background information... I been struggling to get this to work for some time and I am working with AVNET (who are working with Freescale on this issue) but I wanted to get some thoughts from the forum community. I am able to flash the demo program for S12G128 that comes with the AN4258 but when I try just a simple blinking LED program it doesn't work. When I select the S12GA240 or G240 derivative in CodeWarrior I get a lot of S1 records that are created, using the SRecCvt program. I have tried many different approaches to get it to create S2 records and can't seem to do so. I even tried to use P&amp;amp;E Micro software "log2Phy" to convert the simple program and then use the SRecCvt program to create a software for the bootloader to download. I get an "Error: 5 - Bad hex data" when I try to program using converted the .S19 file, I think this is happening because of the S1 records.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Times New Roman;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt;After many unsuccessful attempts and days trying to figure out how to convert the S1 files to S2 files and trying to understand all of this, I modified the demo program in the AN4258 for the S12G128 and long story short I got the sample program to work. I even got our software to work, which is fairly large almost 32kB of C code according to CW. But in order for to get our software working I had to make the following modifications:&lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt;- Comment out all the paged FLASH except PAGE_08 and PAGE_09&lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;- Not use interrupts&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I made the necessary changes that AN4258 calls for to get the interrupt working but whenever I use interrupts and I try to download converted .S19 file program using the bootloader I get the "Error: 1 - S-Record out of range" error. I have no idea why this is happening.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;&lt;SPAN style="color: #575757; font-family: Arial; font-size: 10pt;"&gt;In&lt;/SPAN&gt; the AN4258 it mentions: "4. Trim the segment ROM_4000 from the original size 0x4000–0x7FFF to 0x4000–0x7F0F. The area 0x7F10–0x7FFF will be used for the relocated interrupt vector table." But if you look at the sample code it says: "See the .prm file - the flash segment ROM_4000 must be cut of to area 0x4000-0x7F7F". I have tried both ranges and still get the "S-Record out of range error."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt;&lt;SPAN&gt;I read in another forum post (&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2017" data-containertype="14" data-objectid="23215" data-objecttype="1" href="https://community.freescale.com/thread/23215"&gt;https://community.freescale.com/thread/23215&lt;/A&gt;&lt;SPAN&gt;) Edward Karpicz talks about extracting the 8000-BFFF S-records using the SRecCvt command line program but I can only get the GUI based one to work, when I open the command line program it closes immediately. I have tried the "Run as administrator", in Windows compatibility mode using XP mode and even an old laptop that runs Windows XP but the SRecCvt program closes immediately after being open.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 8pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I'm fairly new to programming micro's professionally, so I'm sorry if I'm overlooking something very simple. I would greatly appreciate any help on this.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 20:26:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-and-downloading-S19-files-for-serial-bootloader-for/m-p/355547#M10589</guid>
      <dc:creator>ashkhu</dc:creator>
      <dc:date>2015-03-26T20:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Creating and downloading .S19 files for serial bootloader for S12G240 - GA240 micro's</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-and-downloading-S19-files-for-serial-bootloader-for/m-p/355548#M10590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have no problem using lower memory but I would like to use interrupts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 20:27:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-and-downloading-S19-files-for-serial-bootloader-for/m-p/355548#M10590</guid>
      <dc:creator>ashkhu</dc:creator>
      <dc:date>2015-03-26T20:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating and downloading .S19 files for serial bootloader for S12G240 - GA240 micro's</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-and-downloading-S19-files-for-serial-bootloader-for/m-p/355549#M10591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I finally seemed to have resolved these issues (not a good solution for solving the S1 records issue but good enough for my application). Below is how I resolved them, if anyone out there is having similar issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems like I got the S1 records in my converted .S19 from the SRecCvt tool when I included the PAGE memory 01 to 07, when I commented these lines out in the .prm file no S1 records were created by the SRecCvt tool. The “S-Record out of range” error was occuring because the interrupt vector table wasn’t being moved properly, this was my fault. Had to go through some more forum posts to figure this one out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 21:47:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-and-downloading-S19-files-for-serial-bootloader-for/m-p/355549#M10591</guid>
      <dc:creator>ashkhu</dc:creator>
      <dc:date>2015-03-31T21:47:25Z</dc:date>
    </item>
  </channel>
</rss>

