<?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: Creating a S record that will be downloaded to Flash memory HCS12 using TwinPEEKs monitor in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136825#M2453</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Alban- Thanks for the file.&amp;nbsp; Good info on the S-records.&amp;nbsp; I have successfully converted s-records to linear or banked, but I am getting the same error when downloading to flash.&amp;nbsp; I know I can download to flash as I have been able to using a program called IAR.&amp;nbsp; I really dont want to transfer all my code to that editor, so I will continue d-bugging in ram, and keep tryin to figure this out.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Nov 2006 14:39:42 GMT</pubDate>
    <dc:creator>Sarroyo</dc:creator>
    <dc:date>2006-11-21T14:39:42Z</dc:date>
    <item>
      <title>Creating a S record that will be downloaded to Flash memory HCS12 using TwinPEEKs monitor</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136817#M2445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I am using a CardS12 from Elektronik Laden.&amp;nbsp; Onboard it carries a MC9S12DP512.&amp;nbsp; It has a monitor called TwinPEEK's that has been preinstalled in the Microcontroller.&amp;nbsp; I have been able to successfully download s records directly to ram.&amp;nbsp; I am trying to create a s record that can be dowloaded into the internal flash.&amp;nbsp; I am a bit confused about memory paging and the physical addresses of each page.&amp;nbsp; Nevertheless everytime I try The monitor says "invalid s Record".&amp;nbsp; Here is all the information I have from the manual.&amp;nbsp; &lt;P align="left"&gt;&lt;SPAN style="font-family: 'Times New Roman'; font-size: 3;"&gt;Load an S-Record file into memory. Data records of type S1 (16-bit MCU addresses) and S2 (linear 24-bit addresses) can be processed.&amp;nbsp; S0-Records (comment lines) will be skipped. S8- and S9-Records are&amp;nbsp; recognized as end-of-file mark. S2-Records use linear adresses according to Freescale guidelines.&amp;nbsp; The valid address range for the MC9S12D64 starts at 0xF0000 (0x3C * 16KB) and ends at 0xFFFFF (0x40 * 16 KB - 1).&lt;/SPAN&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;SPAN style="font-family: 'Times New Roman'; font-size: 3;"&gt;Keep in mind that I am using the MC9s12DP512.&amp;nbsp; What steps do I need to take to progam to Flash memory?&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 09:34:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136817#M2445</guid>
      <dc:creator>Sarroyo</dc:creator>
      <dc:date>2006-11-15T09:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a S record that will be downloaded to Flash memory HCS12 using TwinPEEKs monitor</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136818#M2446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;OK, it seems you have a question about the HC(S)12's paged memory and the page registers. There's a forum thread &lt;A href="http://forums.freescale.com/freescale/board/message?board.id=16BITCOMM&amp;amp;message.id=160&amp;amp;query.id=4047#M160" target="_blank"&gt;here&lt;/A&gt; that discusses banked memory with a mention of Flash memory programming. Another &lt;A href="http://forums.freescale.com/freescale/board/message?board.id=16BITCOMM&amp;amp;message.id=2605&amp;amp;query.id=4065#M2605" target="_blank"&gt;thread&lt;/A&gt; is a discussion of paging with respect to the GPAGE and PPAGE registers. What type of S records are you generating?&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;&lt;BR /&gt;---Tom&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 23:29:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136818#M2446</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2006-11-15T23:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a S record that will be downloaded to Flash memory HCS12 using TwinPEEKs monitor</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136819#M2447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Wow thats pretty deep.&amp;nbsp; Well I am shooting for a s1 record, or a s2 whichever is easier.&amp;nbsp; I would like to make this as simple as possible, and get more advanced once I have the basics down.&amp;nbsp; Take a look at my prm file.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="1"&gt;NAMES&lt;BR /&gt;END&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="1"&gt;SECTIONS&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;RAM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = READ_WRITE 0x0800 TO 0x1799;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;PSEUDO_ROM = READ_ONLY&amp;nbsp; 0x1800 TO 0x3fff;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;//FLASH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = READ_ONLY&amp;nbsp; 0xC000 TO 0xEFFF;&lt;BR /&gt;END&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;PLACEMENT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;_PRESTART, STARTUP,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;ROM_VAR, STRINGS,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;NON_BANKED,DEFAULT_ROM,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;COPY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO&amp;nbsp;&amp;nbsp; PSEUDO_ROM;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;DEFAULT_RAM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO&amp;nbsp;&amp;nbsp; RAM;&lt;BR /&gt;END&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="1"&gt;STACKSIZE 0x100&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This works like a charm, but it is to Ram only.&amp;nbsp; As you can see i have commented my attempt at a simple flash definition.&amp;nbsp; When I copy into the flash i get "Invalid S record!"&amp;nbsp; After every attempt I take a look at page 3F, and the first two lines (8000-801F) contain fresh data, and the rest is untouched.&amp;nbsp; Heres what my bbl looks like&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="1"&gt;OPENFILE "%ABS_FILE%.s1"&lt;BR /&gt;format=motorola&lt;BR /&gt;busWidth=1&lt;BR /&gt;origin=0&lt;BR /&gt;len=0x10000&lt;BR /&gt;destination=0&lt;BR /&gt;SRECORD=S1&lt;BR /&gt;SENDBYTE 1 "%ABS_FILE%"&lt;BR /&gt;CLOSE&lt;BR /&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;l hope this helps.&amp;nbsp; Also, what non-volitile memory will my processor have while its running?&amp;nbsp; I want to be able to save some data from the GPIO on the HCS12 while its running, and not have to worry about loosing&amp;nbsp;the data&amp;nbsp;if power is lost.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2006 15:50:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136819#M2447</guid>
      <dc:creator>Sarroyo</dc:creator>
      <dc:date>2006-11-16T15:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a S record that will be downloaded to Flash memory HCS12 using TwinPEEKs monitor</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136820#M2448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;OK, referring to your documentation, an S1 record only supports 16 bit addresses. If you're going to use banked memory, that requires larger addresses, as described those forum links I provided you. That requires the use of S2 records, I would think.&lt;BR /&gt;&lt;BR /&gt;Checking your RAM-based linker file, the address ranges you use fall with 16-bit address limit, and so the S1 records you use in your BBL file works.&lt;BR /&gt;&lt;BR /&gt;Is the toolset generating only S1 records? Then check the compiler settings and change them to generate banked memory code (-Mb for Codewarrior in the Compile for HC12 Settings panel). See if S2 records appear. Also, you may want to try to change the BBL file to specify a S2 record.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;&lt;BR /&gt;---Tom&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 00:15:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136820#M2448</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2006-11-17T00:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a S record that will be downloaded to Flash memory HCS12 using TwinPEEKs monitor</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136821#M2449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Not sure I understand the question here.&lt;/DIV&gt;&lt;DIV&gt;You are looking for a way to generate a S record file for a banked application. And you need all addresses in the S record file to be physical addresses.&lt;/DIV&gt;&lt;DIV&gt;Am I right?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If this is the case, this should be supported right out of the box by CodeWarrior wizard projects.&lt;/DIV&gt;&lt;DIV&gt;If you have created your project using the project wizard, after you built your application you get several files generated in the bin sub directory.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; .abs.s19 is a S record file containing logical addresses (non-linear)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; .abs.phy is a S record file containing physical addresses (linear).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If I understand the problem well, you need to use the file &amp;nbsp;with extension .abs.phy.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If this one is not working, check with your Hardware provider what S record format is expected from the monitor for banked code.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I hope this helps.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 19:28:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136821#M2449</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-11-17T19:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a S record that will be downloaded to Flash memory HCS12 using TwinPEEKs monitor</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136822#M2450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;May I dare adding to the excellent explanations from Tom and CrazyCat this small document explaining differences between S1, S2 and all... ?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;OK, I dare.&lt;/DIV&gt;&lt;DIV&gt;See pdf enclosed.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Also, FSL has a tool available on the web called S-Record Converter to go from one to another !&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="https://www.freescale.com/webapp/Download?colCode=SRECCVTSW&amp;amp;appType=license&amp;amp;location=null&amp;amp;srch=1" rel="nofollow" target="_blank"&gt;&lt;SPAN&gt;&lt;STRONG&gt;SRECCVTSW&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/A&gt; &lt;STRONG&gt;| zip&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The zip file contains the .exe file and documentation for SRecCvt; a command line tool for the conversion and reformatting of Freescale S-Record object files. Also included is a GUI interface to the command line tool for Windows and Mac OSX.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Cheers,&lt;/DIV&gt;&lt;DIV&gt;Alban.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 19:47:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136822#M2450</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2006-11-17T19:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a S record that will be downloaded to Flash memory HCS12 using TwinPEEKs monitor</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136823#M2451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;For this BBL configuration it will only generate s1 records, which download directly to ram with ease.&amp;nbsp;I changed it to s2 records, but when I tried to load it, I got the message "invaild S-Record".,&amp;nbsp; The same thing happend when I specified -Mb.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 14:28:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136823#M2451</guid>
      <dc:creator>Sarroyo</dc:creator>
      <dc:date>2006-11-21T14:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a S record that will be downloaded to Flash memory HCS12 using TwinPEEKs monitor</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136824#M2452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;CrasyCat- Thanks for the Tip, I had no Idea what the .phy file were for.&amp;nbsp; I have a bunch of wizards saved from failed attempts at downloading to flash.&amp;nbsp; I tried each one of them to no avail!&amp;nbsp; I checked the flash location to where it was trying to download saw this&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;Press Y to erase FLASH Y&lt;BR /&gt;20&amp;gt;l&lt;BR /&gt;Loading...&lt;BR /&gt;**&lt;BR /&gt;Invalid S-Record!&lt;BR /&gt;20&amp;gt;FEC02914&lt;BR /&gt;Argument missing!&lt;BR /&gt;20&amp;gt;b&lt;BR /&gt;Flash not erased - PPAGE=3F!&lt;BR /&gt;20&amp;gt;p 3f&lt;BR /&gt;PPAGE=3F&lt;BR /&gt;3F&amp;gt;d&lt;BR /&gt;8000 &amp;lt;FE&amp;gt;C0 33 FD C0 31 27 0E 35 ED 31 EC 31 69 70 04&amp;nbsp; &amp;lt;..3..1'.5.1.1ip.&amp;gt;&lt;BR /&gt;8010&amp;nbsp; 34 FB 31 03 26 F2 FE C0 35 EC 31 27 0B ED 31 18&amp;nbsp; &amp;lt;4.1.&amp;amp;...5.1'..1.&amp;gt;&lt;BR /&gt;8020&amp;nbsp; FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF&amp;nbsp; &amp;lt;................&amp;gt;&lt;BR /&gt;8030&amp;nbsp; FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF&amp;nbsp; &amp;lt;................&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;Press Y to erase FLASH Y&lt;BR /&gt;20&amp;gt;l&lt;BR /&gt;Loading...&lt;BR /&gt;**&lt;BR /&gt;Invalid S-Record!&lt;BR /&gt;20&amp;gt;FFC0164A8004204BFB000320EE0080002010FF0000C02AC030000074&lt;BR /&gt;Argument missing!&lt;BR /&gt;20&amp;gt;2C0000C02CFFFF0000000000003A&lt;BR /&gt;Unknown command (H for Help)!&lt;BR /&gt;20&amp;gt;d&lt;BR /&gt;8000 &amp;lt;10&amp;gt;EF 20 FE FE C0 1A FD C0 18 27 0E 35 ED 31 EC&amp;nbsp; &amp;lt;.. .......'.5.1.&amp;gt;&lt;BR /&gt;8010&amp;nbsp; 31 69 70 04 34 FB 31 03 26 F2 FE C0 1C EC 31 27&amp;nbsp; &amp;lt;1ip.4.1.&amp;amp;.....1'&amp;gt;&lt;BR /&gt;8020&amp;nbsp; FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF&amp;nbsp; &amp;lt;................&amp;gt;&lt;BR /&gt;8030&amp;nbsp; FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF&amp;nbsp; &amp;lt;................&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Hmm......&lt;BR /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 14:34:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136824#M2452</guid>
      <dc:creator>Sarroyo</dc:creator>
      <dc:date>2006-11-21T14:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a S record that will be downloaded to Flash memory HCS12 using TwinPEEKs monitor</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136825#M2453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Alban- Thanks for the file.&amp;nbsp; Good info on the S-records.&amp;nbsp; I have successfully converted s-records to linear or banked, but I am getting the same error when downloading to flash.&amp;nbsp; I know I can download to flash as I have been able to using a program called IAR.&amp;nbsp; I really dont want to transfer all my code to that editor, so I will continue d-bugging in ram, and keep tryin to figure this out.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 14:39:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136825#M2453</guid>
      <dc:creator>Sarroyo</dc:creator>
      <dc:date>2006-11-21T14:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a S record that will be downloaded to Flash memory HCS12 using TwinPEEKs monitor</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136826#M2454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Here the question is which format does the TwinPEEKs monitor support?&lt;/DIV&gt;&lt;DIV&gt;How is it expecting banked addresses to be encoded?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;THere seems to be some restriction in the loader. As long as you cannot find a clear description of what is expected we will not be able to help you more.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Sorry.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 20:28:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136826#M2454</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-11-21T20:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a S record that will be downloaded to Flash memory HCS12 using TwinPEEKs monitor</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136827#M2455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I posted all the information available about the TwinPEEKs monitor in the initial comment I made.&amp;nbsp; &amp;nbsp; I ommited the following informatino because I am not getting a "write error".&amp;nbsp; Let me know if you have any ideas!&amp;nbsp; Thanks&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Times New Roman" size="3"&gt;&lt;/FONT&gt;&lt;P align="left"&gt;&lt;FONT face="Times New Roman" size="3"&gt;&lt;FONT size="2"&gt;The CPU can read every single byte of the microcontroller's resources&lt;/FONT&gt; &lt;FONT size="2"&gt;- the type of memory does not matter. However, for write accesses,&lt;/FONT&gt; &lt;FONT size="2"&gt;some rules have to be followed: Flash and EEPROM have to be erased&lt;/FONT&gt; &lt;FONT size="2"&gt;before any write attempt. Programming is done by writing words (two&lt;/FONT&gt; &lt;FONT size="2"&gt;bytes at a time) to aligned addresses.&amp;nbsp;&lt;/FONT&gt; &lt;FONT size="2"&gt;To form such aligned words, two subsequent bytes have to be&lt;/FONT&gt; &lt;FONT size="2"&gt;combined. TwinPEEKs is aware of this, but the following problem can&lt;/FONT&gt; &lt;FONT size="2"&gt;not be avoided by the monitor:&lt;/FONT&gt; &lt;FONT size="2"&gt;The monitor is processing each S-Record line seperately. If the last&lt;/FONT&gt; &lt;FONT size="2"&gt;address of such an S-Record is even, the 2nd byte to form a complete&lt;/FONT&gt; &lt;FONT size="2"&gt;word is missing. TwinPEEKs will append an $FF byte in this case, so it&lt;/FONT&gt; &lt;FONT size="2"&gt;is able to perform the word write.&lt;/FONT&gt; &lt;FONT size="2"&gt;The problem occurs, if the byte stream continues with the following&lt;/FONT&gt; &lt;FONT size="2"&gt;S-Record line. The byte, that was missing in the first attempt,&lt;/FONT&gt; &lt;FONT size="2"&gt;CardS12&lt;/FONT&gt; &lt;FONT size="2"&gt;28&lt;/FONT&gt; &lt;FONT size="2"&gt;would require a second write access to the same (word) address - which&lt;/FONT&gt; &lt;FONT size="2"&gt;is not allowed. As a consequence, a write error ("not erased") will be&lt;/FONT&gt; &lt;FONT size="2"&gt;issued.&lt;/FONT&gt; &lt;FONT size="2"&gt;To avoid this problem, it is necessary to align all S-Record data&lt;/FONT&gt; &lt;FONT size="2"&gt;before programming. This can be done using the freely available&lt;/FONT&gt; &lt;FONT size="2"&gt;Freescale Tool SRECCVT:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;B&gt;&lt;FONT face="Courier"&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;P align="left"&gt;&lt;B&gt;&lt;FONT face="Courier"&gt;&lt;FONT size="2"&gt;SRECCVT -m 0x00000 0xfffff 32 -o &amp;lt;outfile&amp;gt; &amp;lt;infile&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;&lt;FONT face="Times New Roman" size="3"&gt;&lt;/FONT&gt;&lt;P align="left"&gt;&lt;FONT face="Times New Roman" size="3"&gt;&lt;FONT size="2"&gt;A detailed description of this tool is contained in the SRECCVT&lt;/FONT&gt; &lt;FONT size="2"&gt;Reference Guide (PDF).&lt;/FONT&gt; &lt;FONT size="2"&gt;Please note, that it is not possible to program or erase the part of&lt;/FONT&gt; &lt;FONT size="2"&gt;Flash memory that contains the monitor code. Also, the last 16 bytes of&lt;/FONT&gt; &lt;FONT size="2"&gt;the EEPROM block are reserved for system use.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Times New Roman" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 12:01:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136827#M2455</guid>
      <dc:creator>Sarroyo</dc:creator>
      <dc:date>2006-11-22T12:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a S record that will be downloaded to Flash memory HCS12 using TwinPEEKs monitor</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136828#M2456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Unfortunately this does not explain what the TwinPEEKs monitor expect as S record file.&lt;/DIV&gt;&lt;DIV&gt;Apparently it supports only a sub-set of the S record format.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Can you please contact the provider of this monitor and get a clear picture of what the monitor is expecting.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Basically I need answer to following questions:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Does the monitor support programming of banked flash?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Does the monitor support S1, S2 and S3 records or only S2?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Does the monitor support S0 records&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Which address is the monitor expecting for code located at address 0x4000?&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Which address is the monitor expecting for code located at address 0xC000?&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; - Which address is the monitor expecting for code located at address on bank 0x20 at address 0x8000?&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp; - Which address is the monitor expecting for code located at address on bank 0x30 at address 0x8000?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Knowing that I can surely adjust the .bbl file to generate something the monitor can handle.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 16:46:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136828#M2456</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-11-22T16:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a S record that will be downloaded to Flash memory HCS12 using TwinPEEKs monitor</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136829#M2457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;All that was included in the manual is shown below.&amp;nbsp; I will email where i purchased the item to get some more info.&amp;nbsp; Thanks!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Data records of type S1 (16-bit MCU addresses) and S2 (linear 24-bit addresses) can be processed.&amp;nbsp; S0-Records (comment lines) will be skipped. S8- and S9-Records are&amp;nbsp; recognized as end-of-file mark. S2-Records use linear adresses according to Freescale guidelines.&amp;nbsp; The valid address range for the MC9S12D64 starts at 0xF0000 (0x3C * 16KB) and ends at 0xFFFFF (0x40 * 16 KB - 1).&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="AvantGarde-Demi" size="3"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="AvantGarde-Demi" size="3"&gt;CardS12.DP512&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="AvantGarde-Demi" size="3"&gt;Begin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resource&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="AvantGarde-Demi" size="3"&gt;$0000&amp;nbsp;&amp;nbsp; $03FF&amp;nbsp; Control Registers&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="AvantGarde-Demi" size="3"&gt;$0400&amp;nbsp;&amp;nbsp; $07FF&amp;nbsp; 1KB (of total 4KB) EEPROM, (the area below $0400 is hidden&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="AvantGarde-Demi" size="3"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;by control registers the top 2048 bytes by the RAM!)&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="AvantGarde-Demi" size="3"&gt;$0800&amp;nbsp;&amp;nbsp; $3FFF&amp;nbsp; 14KB RAM - TwinPEEKs uses the top 512 bytes&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="AvantGarde-Demi" size="3"&gt;$4000&amp;nbsp;&amp;nbsp;&amp;nbsp;$7FFF&amp;nbsp; 16KB Flash (equals Page &amp;amp;3E)&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="AvantGarde-Demi" size="3"&gt;$8000&amp;nbsp;&amp;nbsp;&amp;nbsp;$BFFF&amp;nbsp; 16KB Flash page $20 (any Page $20...$3F, selectable)&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="AvantGarde-Demi" size="3"&gt;$C000&amp;nbsp;&amp;nbsp; $FFFF&amp;nbsp; 16KB Flash ( equals Page $3F)&amp;nbsp;TwinPEEKs uses the top 4KB&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P align="left"&gt;Note:&lt;/P&gt;&lt;FONT face="Times New Roman" size="3"&gt;&lt;/FONT&gt;&lt;P align="left"&gt;&lt;FONT face="Times New Roman" size="3"&gt;Due to a mask set erratum of the MC9S12DP512 Mask Set 4L00M (and earlier) not only the monitor code in page $3F is write protected, but also an additional area starting at $B000 up to $BFFF in page $3B. Consequently, the monitor can not download user code to this region.&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2006 08:12:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136829#M2457</guid>
      <dc:creator>Sarroyo</dc:creator>
      <dc:date>2006-11-24T08:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a S record that will be downloaded to Flash memory HCS12 using TwinPEEKs monitor</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136830#M2458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I FIGURED IT OUT!!!!!&amp;nbsp;&amp;nbsp; WHOo hoo, geeze&amp;nbsp;It turns out that I needed to specify 16 for the s-record size, when using SRecCvt.&amp;nbsp; I looked at the s-record that the program IAR was producing, and compared it to the Codewarrior s-record.&amp;nbsp; That was the major difference!&amp;nbsp; And Now it works like a charm.&amp;nbsp; Oh I spent way to much time on that.&amp;nbsp; Thanks for the tip on the .phy files, cuz that is the file i converted with SRecCvt.&amp;nbsp; Rock on!!&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Nov 2006 09:23:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136830#M2458</guid>
      <dc:creator>Sarroyo</dc:creator>
      <dc:date>2006-11-25T09:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a S record that will be downloaded to Flash memory HCS12 using TwinPEEKs monitor</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136831#M2459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;OK in that case the limitation was in the length of a S record line.&lt;/DIV&gt;&lt;DIV&gt;You can also adjust that directly in the project .bbl file.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Just add following line to the .bbl file&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SLINELEN = 16&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This line should be added after the comment&lt;/DIV&gt;&lt;DIV&gt;/* physical s-record file */&lt;BR /&gt;on line 12.&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Times-Roman" size="1"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 18:27:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Creating-a-S-record-that-will-be-downloaded-to-Flash-memory/m-p/136831#M2459</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-11-27T18:27:07Z</dc:date>
    </item>
  </channel>
</rss>

