<?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: Variable at Absolute Address &amp; NO:INIT</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Variable-at-Absolute-Address-NO-INIT/m-p/239869#M9529</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sadly... it just the same....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Mar 2013 11:27:09 GMT</pubDate>
    <dc:creator>sebasira</dc:creator>
    <dc:date>2013-03-26T11:27:09Z</dc:date>
    <item>
      <title>Variable at Absolute Address &amp; NO:INIT</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Variable-at-Absolute-Address-NO-INIT/m-p/239867#M9527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all of you!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working with CW4.6 and HCS12. I decide to place some EEPROM variables at absoulte addresses using &lt;STRONG&gt;@&lt;/STRONG&gt;. Before that they were at a segment with NO_INIT.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, even if I have the variable within this segment (with pragma) it is initialized with 0x00 and I want it to be 0xFF. Is there anyway I can do that?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If possisble I don't what to do this:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;const dword EEPROM_VAR @0x2000 = 0xFFFFFFFF&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 19:12:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Variable-at-Absolute-Address-NO-INIT/m-p/239867#M9527</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-03-25T19:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Variable at Absolute Address &amp; NO:INIT</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Variable-at-Absolute-Address-NO-INIT/m-p/239868#M9528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Removing &lt;STRONG&gt;const&lt;/STRONG&gt; should help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 08:45:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Variable-at-Absolute-Address-NO-INIT/m-p/239868#M9528</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2013-03-26T08:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Variable at Absolute Address &amp; NO:INIT</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Variable-at-Absolute-Address-NO-INIT/m-p/239869#M9529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sadly... it just the same....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 11:27:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Variable-at-Absolute-Address-NO-INIT/m-p/239869#M9529</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-03-26T11:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Variable at Absolute Address &amp; NO:INIT</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Variable-at-Absolute-Address-NO-INIT/m-p/239870#M9530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like it is improved in newer versions of CW. I'm looking into generated S19 file, CW5.1.&amp;nbsp; Using const and @, but no =initializer, I see zeros at @-address in S19 file. Without const 1) no data in S19 file, and 2) starup routine doesn't initialize @-variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 13:06:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Variable-at-Absolute-Address-NO-INIT/m-p/239870#M9530</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2013-03-26T13:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Variable at Absolute Address &amp; NO:INIT</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Variable-at-Absolute-Address-NO-INIT/m-p/239871#M9531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I guess I would have to manually initialize each of them or maybe create another file whit all the EEPROM variables together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: If you figure out another solution, please tell me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 14:25:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Variable-at-Absolute-Address-NO-INIT/m-p/239871#M9531</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-03-26T14:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Variable at Absolute Address &amp; NO:INIT</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Variable-at-Absolute-Address-NO-INIT/m-p/239872#M9532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you just don't want EEPROM data to be overwritten by uploading new code using bootloader, then you may edit BBL file to make EEPROM data not included in generated S19 file. In fact you may make BBL producing several S19 files, for example one with EEPROM data, another one without, 3rd one without bootloader S-lines etc. All S19 files will be produced in one build project click.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 07:06:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Variable-at-Absolute-Address-NO-INIT/m-p/239872#M9532</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2013-03-27T07:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Variable at Absolute Address &amp; NO:INIT</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Variable-at-Absolute-Address-NO-INIT/m-p/239873#M9533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow! That's new to me! Moreover, I always need to make 2 builds just to get a release with and without bootloader. And we also have about 10 different compilation parameters so I needed 20 different builds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure about what I'm going to say, but if I put the NO_INIT attribute to the segment (PAGE_EEPROM) no s19 lines are generated for that memory sector. I guess if this is not right then, the bootloader will overwrite my EEPROM data and that's not happenning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain me how to do that? I think you're talking about the "&lt;STRONG&gt;burner.bbl&lt;/STRONG&gt;" file, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you! Thank you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SebaS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 12:09:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Variable-at-Absolute-Address-NO-INIT/m-p/239873#M9533</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-03-27T12:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Variable at Absolute Address &amp; NO:INIT</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Variable-at-Absolute-Address-NO-INIT/m-p/239874#M9534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't remember how do default CW4.6 bbl files look like and if they are as complicated as CW5 files. BTW I looked into CW5 S12XD bbl file and noticed that everything from addresses below 0x4000 is not included in generated S19 files. See attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4 bold lines below will take code at 0x2000..0x20FF from project.abs file and put it to project.abs.s19 file with S-records addresses 0x3000..0x30FF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPENFILE "%ABS_FILE%.s19"&lt;/P&gt;&lt;P&gt;format = motorola&lt;/P&gt;&lt;P&gt;busWidth = 1&lt;/P&gt;&lt;P&gt;SRECORD=Sx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;len = 0x100&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;origin = 0x2000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;destination = 0x3000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SENDBYTE 1 "%ABS_FILE%"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So just try to find the origin= and len= that correspond to to EEPROM addresses, reduce len and increase origin and destination to make EEPROM addresses not included in S19 file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To have more files generated just copy everything from line&amp;nbsp; OPENFILE xxx&amp;nbsp; to line CLOSE&amp;nbsp; and paste it at the end of bbl file:&lt;/P&gt;&lt;P&gt;OPENFILE "%ABS_FILE%.s19"&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;CLOSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPENFILE "%ABS_FILE%&lt;STRONG&gt;2&lt;/STRONG&gt;.s19"&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;CLOSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;SPAN class="mce_paste_marker"&gt;This will produce two identical s19 files. Modify bbl lines in one of OPENFILE-CLOSE block to make the different. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 18:38:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Variable-at-Absolute-Address-NO-INIT/m-p/239874#M9534</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2013-03-27T18:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Variable at Absolute Address &amp; NO:INIT</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Variable-at-Absolute-Address-NO-INIT/m-p/239875#M9535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kef!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm thinking that this won't help me. My project has some conditionals on the .prm which depends on the compilation and if it has or not bootloader. So I think I can't use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I'll take it in account for the next time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now, I'll stick with the previous plan of having a separate file with EEPROM variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As always, thank you very much!&lt;/P&gt;&lt;P&gt;Best Regards!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SebaS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 15:27:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Variable-at-Absolute-Address-NO-INIT/m-p/239875#M9535</guid>
      <dc:creator>sebasira</dc:creator>
      <dc:date>2013-03-28T15:27:42Z</dc:date>
    </item>
  </channel>
</rss>

