<?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>CodeWarrior for MCU中的主题 Re: Generating .S19 file with default EEROM data</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Generating-S19-file-with-default-EEROM-data/m-p/146708#M3377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hm, maybe you added that open-close block inside existing open-close block? I'm getting _EEPROM file with only EEPROM c00-fff data. See attached xdp512 bbl file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is documented in CW online help, also in CW root\Help\PDF\Build_tools_utilities.pdf. See Common 8/16bit Tools -&amp;gt; Batch Burner Language. PDF's can be more recent and complete.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't used XF yet. Standard thing to try is to use P&amp;amp;E's unsecure_12 utility, which supports those new XE, XF, and others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Mar 2012 15:40:51 GMT</pubDate>
    <dc:creator>kef</dc:creator>
    <dc:date>2012-03-17T15:40:51Z</dc:date>
    <item>
      <title>Generating .S19 file with default EEROM data</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Generating-S19-file-with-default-EEROM-data/m-p/146705#M3374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Environment Codewarrier 5.1 for M9S12Xdp512 on WIN 7 64 bit.&amp;nbsp; Programmer was Multilink Universal and .ini file and .prm configured to place 32 bytes into EEROM at 0C00.&amp;nbsp; Tapped F5 and debugger loads .abs file and erases and initializes EEROM with default data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I have a Multilink Universal FX which doesn't work at all with Codewarrier and my non FX unit won't be back for a week or so.&amp;nbsp; I had also bought the P&amp;amp;E PROG12Z which does recognize the Multilink Universal FX so I thought I'd try programming with that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First I have to translate the logical address S records to physical ones using the P&amp;amp;E application LOG2PHYS application.&amp;nbsp; A little bit of digging and I see that there is no set of S records describing my default EEROM values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In one of the files I have declared:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;typedef BYTE TEEPROM_DATA[1000]; #pragma DATA_SEG EEPROM_DATA&amp;nbsp; extern TEEPROM_DATA EEPROM_Storage;#pragma DATA_SEG DEFAULT&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The EEROM is declared in EEROM_cfg.h (attached):&lt;/P&gt;&lt;PRE&gt;#pragma DATA_SEG EEPROM_DATA&amp;nbsp; TEEPROM_DATA EEPROM_Storage = {&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x01,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //! 0&amp;nbsp;&amp;nbsp; MODBUS Module #&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00,0x00,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //! 1,2 Spare for COM1.&amp;nbsp;&amp;nbsp;&amp;nbsp; 65,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //! 3&amp;nbsp;&amp;nbsp; MODBUS Bit Rate 19200 (COM2)&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x01,0x23,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //! 4,5 MODBUS 3.5 character Delay Time.&amp;nbsp;&amp;nbsp;&amp;nbsp; CANRATE_250K,&amp;nbsp;&amp;nbsp; //! 6&amp;nbsp;&amp;nbsp; CAN Channel 0&amp;nbsp;&amp;nbsp;&amp;nbsp; CANRATE_500K,&amp;nbsp;&amp;nbsp; //! 7&amp;nbsp;&amp;nbsp; CAN Channel 1&amp;nbsp;&amp;nbsp;&amp;nbsp; CANRATE_500K,&amp;nbsp;&amp;nbsp; //! 8&amp;nbsp;&amp;nbsp; CAN Channel 2&amp;nbsp;&amp;nbsp;&amp;nbsp; CANRATE_500K,&amp;nbsp;&amp;nbsp; //! 9&amp;nbsp;&amp;nbsp; CAN Channel 3&amp;nbsp;&amp;nbsp;&amp;nbsp; CANRATE_250K,&amp;nbsp;&amp;nbsp; //! 10&amp;nbsp; CAN Channel 4&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00,0x00,0x00,0x00,0x00, //! Spare 11,12, 13, 14, 15&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xE7,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //! 16&amp;nbsp; ELCON Charger ID for Tray #1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xE8,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //! 17&amp;nbsp; ELCON Charger ID for Tray #2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xE9,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //! 18&amp;nbsp; ELCON Charger ID for Tray #3&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xE5,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //! 19&amp;nbsp; ELCON Charger ID for Tray #4&amp;nbsp;&amp;nbsp;&amp;nbsp; 80,80,80,80,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //! 20..23&amp;nbsp; Max Current (Amps) Tray #1..#4&amp;nbsp;&amp;nbsp;&amp;nbsp; 29,29,29,29,&amp;nbsp;&amp;nbsp;&amp;nbsp; //! 24..27&amp;nbsp; Max Voltage (Volts) Tray #1..#4&amp;nbsp;&amp;nbsp;&amp;nbsp; 10,10,10,10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //! 28..31&amp;nbsp; MIN SOC before Automatic Charging Starts&amp;nbsp; };#pragma DATA_SEG DEFAULT&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also attached is the linker.prm file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I tell the linker that I want it do create 19 records for the non-paged EEROM?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:48:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Generating-S19-file-with-default-EEROM-data/m-p/146705#M3374</guid>
      <dc:creator>jcdammeyer</dc:creator>
      <dc:date>2020-10-29T08:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Generating .S19 file with default EEROM data</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Generating-S19-file-with-default-EEROM-data/m-p/146706#M3375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to edit burner file (*.bbl).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;You need to add following lines somewhere between OPENFILE command and CLOSE command.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;len = 0x400&lt;BR /&gt;origin = 0x000C00&lt;BR /&gt;destination = 0x000C00&lt;BR /&gt;SENDBYTE 1 "%ABS_FILE%"&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may add these lines to make GLO, S19 or both files containing addresses origin..origin+len. But I think prog12z requires separate input files for flash and EEPROM. Unless thay changed something.&amp;nbsp;For separate EEPROM file use your own set of open and close like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OPENFILE "%ABS_FILE%_EEPROM.s19"&lt;BR /&gt;format = motorola&lt;BR /&gt;busWidth = 1&lt;BR /&gt;SRECORD=Sx&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;len = 0x400&lt;BR /&gt;origin = 0x000C00&lt;BR /&gt;destination = 0x000C00&lt;BR /&gt;SENDBYTE 1 "%ABS_FILE%"&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CLOSE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Mar 2012 14:17:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Generating-S19-file-with-default-EEROM-data/m-p/146706#M3375</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2012-03-17T14:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Generating .S19 file with default EEROM data</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Generating-S19-file-with-default-EEROM-data/m-p/146707#M3376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Incorporating those statements into the burner file did indeed create a TrayControlUnit.abs_EEPROM.s19 file with not only the EEROM but flash segments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did try to find this information but I think a bit overwhelmed and had trouble even figuring out where to look.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you point me to the document that describes what you suggested?&amp;nbsp; I'd like to learn what I did and why.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now if I could only figure out why the XF won't talk to CodeWarrier 5.1.&amp;nbsp; P&amp;amp;E has been no help so far.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Mar 2012 14:54:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Generating-S19-file-with-default-EEROM-data/m-p/146707#M3376</guid>
      <dc:creator>jcdammeyer</dc:creator>
      <dc:date>2012-03-17T14:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Generating .S19 file with default EEROM data</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Generating-S19-file-with-default-EEROM-data/m-p/146708#M3377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hm, maybe you added that open-close block inside existing open-close block? I'm getting _EEPROM file with only EEPROM c00-fff data. See attached xdp512 bbl file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is documented in CW online help, also in CW root\Help\PDF\Build_tools_utilities.pdf. See Common 8/16bit Tools -&amp;gt; Batch Burner Language. PDF's can be more recent and complete.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't used XF yet. Standard thing to try is to use P&amp;amp;E's unsecure_12 utility, which supports those new XE, XF, and others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Mar 2012 15:40:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Generating-S19-file-with-default-EEROM-data/m-p/146708#M3377</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2012-03-17T15:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Generating .S19 file with default EEROM data</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Generating-S19-file-with-default-EEROM-data/m-p/146709#M3378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the hint.&amp;nbsp; After a bit of thinking about how the bbl file was structured I moved my OPENFILE just like you did in your attachment.&amp;nbsp; I now have a separate S19 file with only EEROM data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I've been able to read EEROM and create an S19 file from it using PROG12 and the FX.&amp;nbsp; As yet programming doesn't work.&amp;nbsp; But it's late.&amp;nbsp; (2AM) so I think I'm not really totally awake anymore.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll try unlocking it although when locked I don't think it should be&amp;nbsp;possible to read the data.&amp;nbsp; Probably one more tiny detail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know with the EEROM I can't program bytes. It has to be done one 32 bit word at a time.&amp;nbsp; Could very well be something like that.&amp;nbsp; My Serial port monitor code I wrote can change EEROM bytes by reading, modifying and then writing the entire 32 bit long.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But clealy I've now created an S19 file with default data so this thread is done and time to start a new one with respect to the P&amp;amp;E FX issues.&amp;nbsp; Thanks again for the links to the documents.&amp;nbsp; I'll study them in the morning.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Mar 2012 16:07:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Generating-S19-file-with-default-EEROM-data/m-p/146709#M3378</guid>
      <dc:creator>jcdammeyer</dc:creator>
      <dc:date>2012-03-17T16:07:14Z</dc:date>
    </item>
  </channel>
</rss>

