<?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: define objects to segments in PRM file</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/define-objects-to-segments-in-PRM-file/m-p/177455#M6281</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;What's the difference in this issue compared to&lt;BR /&gt;&lt;A href="http://forums.freescale.com/freescale/board/message?board.id=16BITCOMM&amp;amp;message.id=6209" target="_blank"&gt;http://forums.freescale.com/freescale/board/message?board.id=16BITCOMM&amp;amp;message.id=6209&lt;/A&gt;&lt;BR /&gt;?&lt;BR /&gt;&lt;BR /&gt;In that issue you did not actually place anything in those sections, and therefore the linker did not allocate it and therefore you got 0. Did you now allocate something?&lt;BR /&gt;&lt;BR /&gt;Anyway, please provide much more details, otherwise I don't think it is possible to help much, we just would guess what your problem is, and we probably guess incorrectly.&lt;BR /&gt;&lt;BR /&gt;Also have a look at the startup code, there the end address of the stack is taken with this method, there it does work. So you can check what you do differently.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Aug 2008 08:42:55 GMT</pubDate>
    <dc:creator>CompilerGuru</dc:creator>
    <dc:date>2008-08-06T08:42:55Z</dc:date>
    <item>
      <title>define objects to segments in PRM file</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/define-objects-to-segments-in-PRM-file/m-p/177452#M6278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;how can we temporarily assigned an object to segments in PRM file so that we could retrieve the starting and end addresses of a segment in PRM using __SEG_START and __SEG_END&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;tnx&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2008 11:19:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/define-objects-to-segments-in-PRM-file/m-p/177452#M6278</guid>
      <dc:creator>mikoran</dc:creator>
      <dc:date>2008-07-31T11:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: define objects to segments in PRM file</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/define-objects-to-segments-in-PRM-file/m-p/177453#M6279</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;It depends on the type of the object you wish to place there.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If it is a variable, variable definition should be done as follows:&lt;/DIV&gt;&lt;DIV&gt;#pragma DATA_SEG MyDataSegment&lt;/DIV&gt;&lt;DIV&gt;int myVar;&lt;/DIV&gt;&lt;DIV&gt;#pragma DATA&lt;IMG alt=":smileyfrustrated:" class="emoticon emoticon-smileyfrustrated" id="smileyfrustrated" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-frustrated.gif" title="Smiley Frustrated" /&gt;EG DEFAULT.&lt;/DIV&gt;&lt;DIV&gt;You can then retrieve the segment start &amp;amp; end address using __SEG_START_MyDataSegment and __SEG_END_MyDataSegment .&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;If it is a constant, constant definition should be done as follows:&lt;/DIV&gt;&lt;DIV&gt;#pragma CONST_SEG MyConstSegment&lt;/DIV&gt;&lt;DIV&gt;conts int myVar= 10;&lt;/DIV&gt;&lt;DIV&gt;#pragma CONST_SEG DEFAULT.&lt;/DIV&gt;&lt;DIV&gt;You can then retrieve the segment start &amp;amp; end address using __SEG_START_MyConstSegment and __SEG_END_MyConstSegment.&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If it is a function, function implementation should be done as follows:&lt;/DIV&gt;&lt;DIV&gt;#pragma CODE_SEG MyCodeSegment&lt;/DIV&gt;&lt;DIV&gt;void foo(void) {&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt;#pragma CODE_SEG DEFAULT.&lt;/DIV&gt;&lt;DIV&gt;You can then retrieve the segment start &amp;amp; end address using __SEG_START_MyCodeSegment and __SEG_END_MyCodeSegment.&lt;/DIV&gt;&amp;nbsp;.&lt;/DIV&gt;&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>Mon, 04 Aug 2008 20:11:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/define-objects-to-segments-in-PRM-file/m-p/177453#M6279</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2008-08-04T20:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: define objects to segments in PRM file</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/define-objects-to-segments-in-PRM-file/m-p/177454#M6280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I tried it but it doesnt work. Still I got zero as the value for start and end address..&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 07:07:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/define-objects-to-segments-in-PRM-file/m-p/177454#M6280</guid>
      <dc:creator>mikoran</dc:creator>
      <dc:date>2008-08-06T07:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: define objects to segments in PRM file</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/define-objects-to-segments-in-PRM-file/m-p/177455#M6281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;What's the difference in this issue compared to&lt;BR /&gt;&lt;A href="http://forums.freescale.com/freescale/board/message?board.id=16BITCOMM&amp;amp;message.id=6209" target="_blank"&gt;http://forums.freescale.com/freescale/board/message?board.id=16BITCOMM&amp;amp;message.id=6209&lt;/A&gt;&lt;BR /&gt;?&lt;BR /&gt;&lt;BR /&gt;In that issue you did not actually place anything in those sections, and therefore the linker did not allocate it and therefore you got 0. Did you now allocate something?&lt;BR /&gt;&lt;BR /&gt;Anyway, please provide much more details, otherwise I don't think it is possible to help much, we just would guess what your problem is, and we probably guess incorrectly.&lt;BR /&gt;&lt;BR /&gt;Also have a look at the startup code, there the end address of the stack is taken with this method, there it does work. So you can check what you do differently.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 08:42:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/define-objects-to-segments-in-PRM-file/m-p/177455#M6281</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2008-08-06T08:42:55Z</dc:date>
    </item>
  </channel>
</rss>

