<?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: How to put the function at a absolute address? in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-put-the-function-at-a-absolute-address-s12xdt256/m-p/183660#M6851</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only way to get a function at an absolute address is to allocate it in a user defined section and place that section at that particular address.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a guideline I would recommend putting&amp;nbsp;a function which needs to be allocated at a specific address at the beginning of a memory area. Otherwise&amp;nbsp;you will have some&amp;nbsp;memory areas which cannot be used an more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not understand what you mean with &amp;nbsp;"how to make the length of the content of the *.s19 file equal".&lt;/P&gt;&lt;P&gt;If you rebuild the application after applying some changes (or using a new compiler version), code size will change. But I do not see how this could create a problem loading the application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 May 2009 10:08:39 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2009-05-22T10:08:39Z</dc:date>
    <item>
      <title>How to put the function at a absolute address? - s12xdt256</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-put-the-function-at-a-absolute-address-s12xdt256/m-p/183659#M6850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I use s12xdt256 chip and I need to put the function at a absolute address for compatible reason.&lt;/P&gt;&lt;P&gt;For example: I want to put A() at&amp;nbsp;ppage address 0xe4bf8a, How can I do?&lt;/P&gt;&lt;P&gt;I try to use .prm file to allocate a fix address for the function, it works but it would arise another problem =&amp;gt;&amp;nbsp;the length of the content of the *.s19 file is not equal, it would make the code downloading fail.&lt;/P&gt;&lt;P&gt;So my question is if any easy way to put the function at an absolute address or how to make the length of the content of the *.s19 file equal?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;slade&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Added p/n to subject.&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by NLFSJ on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-05-28&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;08:16 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2009 09:20:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-put-the-function-at-a-absolute-address-s12xdt256/m-p/183659#M6850</guid>
      <dc:creator>slade</dc:creator>
      <dc:date>2009-05-22T09:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to put the function at a absolute address?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-put-the-function-at-a-absolute-address-s12xdt256/m-p/183660#M6851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only way to get a function at an absolute address is to allocate it in a user defined section and place that section at that particular address.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a guideline I would recommend putting&amp;nbsp;a function which needs to be allocated at a specific address at the beginning of a memory area. Otherwise&amp;nbsp;you will have some&amp;nbsp;memory areas which cannot be used an more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not understand what you mean with &amp;nbsp;"how to make the length of the content of the *.s19 file equal".&lt;/P&gt;&lt;P&gt;If you rebuild the application after applying some changes (or using a new compiler version), code size will change. But I do not see how this could create a problem loading the application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2009 10:08:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-put-the-function-at-a-absolute-address-s12xdt256/m-p/183660#M6851</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2009-05-22T10:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to put the function at a absolute address?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-put-the-function-at-a-absolute-address-s12xdt256/m-p/183661#M6852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Crazycat,&lt;/P&gt;&lt;P&gt;The *.prm setting is as following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SEGMENTS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLASH_F9_SECTOR0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;= READ_ONLY&amp;nbsp;&amp;nbsp; &amp;nbsp;0xF98000 TO 0xF9ADAE;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLASH_F9_SECTOR1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;= READ_ONLY&amp;nbsp;&amp;nbsp; &amp;nbsp;0xF9ADAF TO 0xF9BFFF;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLASH_FA_SECTOR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;= READ_ONLY&amp;nbsp;&amp;nbsp; &amp;nbsp;0xFA8000 TO 0xFABFFF;&lt;/P&gt;&lt;P&gt;PLACEMENT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DEFAULT_ROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;INTO&amp;nbsp; &amp;nbsp;FLASH_FB_SECTOR, FLASH_FA_SECTOR, FLASH_F9_SECTOR0,&amp;nbsp;&amp;nbsp;FLASH_F8_SECTOR,&lt;BR /&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;FLASH_E7_SECTOR, FLASH_E6_SECTOR, FLASH_E5_SECTOR, FLASH_E4_SECTOR,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FLASH_E0_0_SECTOR, FLASH_FE_SECTOR1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FUN_ADD_FIX_ROM&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO FLASH_F9_SECTOR1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The part of *.s19 file is as following&lt;/P&gt;&lt;P&gt;S224F9AD80032025EC82260BEC808C7F802604C6022016EC80C480847FCE000034CD7F8035F9&lt;BR /&gt;S20FF9ADA0B7C516D49A2601521B840A88&lt;BR /&gt;S224F9ADAF6CAACCFFFF6C821869842025EE8918AB84E683E8008759180B7F0010B74518E6D3&lt;/P&gt;&lt;P&gt;The length of the 2nd line is different from others, it would result to the downloading function fail.&lt;/P&gt;&lt;P&gt;If any way to deal with the length, I am new to the file format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;slade&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2009 10:50:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-put-the-function-at-a-absolute-address-s12xdt256/m-p/183661#M6852</guid>
      <dc:creator>slade</dc:creator>
      <dc:date>2009-05-22T10:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to put the function at a absolute address?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-put-the-function-at-a-absolute-address-s12xdt256/m-p/183662#M6853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can speak to the S-record format. The first two characters (S2) describe the record type (there's S0, S1, S2, S3... and so on). The third and fourth characters describe the number of character *pairs* remaining in the record. For that second, short record, the value is fifteen decimal, and sure enough there are 15 character pairs remaining in that record. Whatever's doing the parsing of the S-records ought to be able to read that length value and handle reading the rest of the record correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached a short description of the S-record format to help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 19:22:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-put-the-function-at-a-absolute-address-s12xdt256/m-p/183662#M6853</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2009-05-26T19:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to put the function at a absolute address?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-put-the-function-at-a-absolute-address-s12xdt256/m-p/183663#M6854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thans J2ME,&lt;/P&gt;&lt;P&gt;I think the fault is I write flash in a misaligned word, it is not allowed in the flash operation.&lt;/P&gt;&lt;P&gt;So now I just compile carefully to makw sure the function is in the exactly position that I want, it is a little stupid thing but the problem solve&lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;slade&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 10:58:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-put-the-function-at-a-absolute-address-s12xdt256/m-p/183663#M6854</guid>
      <dc:creator>slade</dc:creator>
      <dc:date>2009-05-27T10:58:58Z</dc:date>
    </item>
  </channel>
</rss>

