<?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 Development Tools中的主题 Access linker symbols in S12Z tool chain (eclipse)</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Access-linker-symbols-in-S12Z-tool-chain-eclipse/m-p/368490#M1949</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm compiling using CW10.6 eclipse plugin. I tried to retreive linker defined symbols referencing to memory segments. I used macros taken from MCU_Build_Tools_Utilities, Revised: June 10, 2014, page 100. They are:&lt;/P&gt;&lt;P&gt;#define __SEG_START_REF(a) __SEG_START_ ## a&lt;/P&gt;&lt;P&gt;#define __SEG_END_REF(a) __SEG_END_ ## a&lt;/P&gt;&lt;P&gt;#define __SEG_SIZE_REF(a) __SEG_SIZE_ ## a&lt;/P&gt;&lt;P&gt;#define __SEG_START_DEF(a) extern char __SEG_START_REF(a) []&lt;/P&gt;&lt;P&gt;#define __SEG_END_DEF(a) extern char __SEG_END_REF( a) []&lt;/P&gt;&lt;P&gt;#define __SEG_SIZE_DEF(a) extern char __SEG_SIZE_REF( a) []&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have defined the symbol SHADOW_ROM_S in prm file covering a memory area from 0xFFEE00 to 0xFFEFFF. In my code I define a variable ptTest and I tried the following assigment &lt;/P&gt;&lt;P&gt;char* const ptTest = __SEG_START_REF(SHADOW_ROM_S);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way, before previous assigment i used macro&amp;nbsp; __SEG_START_DEF(SHADOW_ROM_S) to declare a variable __SEG_START_SHADOW_ROM_S.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I expected to have ptTest egual to 0xFFEE00&amp;nbsp; but i got a pointer to 0 instead.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What should I do to get the correct value?&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;P&gt;Alessandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Nov 2014 09:46:29 GMT</pubDate>
    <dc:creator>alessandromommo</dc:creator>
    <dc:date>2014-11-25T09:46:29Z</dc:date>
    <item>
      <title>Access linker symbols in S12Z tool chain (eclipse)</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Access-linker-symbols-in-S12Z-tool-chain-eclipse/m-p/368490#M1949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm compiling using CW10.6 eclipse plugin. I tried to retreive linker defined symbols referencing to memory segments. I used macros taken from MCU_Build_Tools_Utilities, Revised: June 10, 2014, page 100. They are:&lt;/P&gt;&lt;P&gt;#define __SEG_START_REF(a) __SEG_START_ ## a&lt;/P&gt;&lt;P&gt;#define __SEG_END_REF(a) __SEG_END_ ## a&lt;/P&gt;&lt;P&gt;#define __SEG_SIZE_REF(a) __SEG_SIZE_ ## a&lt;/P&gt;&lt;P&gt;#define __SEG_START_DEF(a) extern char __SEG_START_REF(a) []&lt;/P&gt;&lt;P&gt;#define __SEG_END_DEF(a) extern char __SEG_END_REF( a) []&lt;/P&gt;&lt;P&gt;#define __SEG_SIZE_DEF(a) extern char __SEG_SIZE_REF( a) []&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have defined the symbol SHADOW_ROM_S in prm file covering a memory area from 0xFFEE00 to 0xFFEFFF. In my code I define a variable ptTest and I tried the following assigment &lt;/P&gt;&lt;P&gt;char* const ptTest = __SEG_START_REF(SHADOW_ROM_S);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way, before previous assigment i used macro&amp;nbsp; __SEG_START_DEF(SHADOW_ROM_S) to declare a variable __SEG_START_SHADOW_ROM_S.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I expected to have ptTest egual to 0xFFEE00&amp;nbsp; but i got a pointer to 0 instead.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What should I do to get the correct value?&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;P&gt;Alessandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 09:46:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Access-linker-symbols-in-S12Z-tool-chain-eclipse/m-p/368490#M1949</guid>
      <dc:creator>alessandromommo</dc:creator>
      <dc:date>2014-11-25T09:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Access linker symbols in S12Z tool chain (eclipse)</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Access-linker-symbols-in-S12Z-tool-chain-eclipse/m-p/368491#M1950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alessandro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have a S12Z device so I can not test it.&lt;/P&gt;&lt;P&gt;I've created an example for S12Z and tried it on S12 simulator.&lt;/P&gt;&lt;P&gt;It seems to be running so I think it should work on S12Z too.&lt;/P&gt;&lt;P&gt;I think the problem is may be linked to the initialization of your variable pTest which should be defined as far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please have a look to the example attached.&lt;/P&gt;&lt;P&gt;It should work.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pascal Irrle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 09:58:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Access-linker-symbols-in-S12Z-tool-chain-eclipse/m-p/368491#M1950</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2014-11-27T09:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Access linker symbols in S12Z tool chain (eclipse)</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Access-linker-symbols-in-S12Z-tool-chain-eclipse/m-p/368492#M1951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much for help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alessandro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2014-11-27 10:59 GMT+01:00 Pascal Irrle &amp;lt;admin@community.freescale.com&amp;gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;P&gt;       &amp;lt;https://community.freescale.com/&amp;gt;&lt;/P&gt;&lt;P&gt;Access linker symbols in S12Z tool chain (eclipse)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Pascal Irrle&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.freescale.com/people/trytohelp?et=watches.email.thread&amp;gt;&lt;/P&gt;&lt;P&gt;in &lt;STRONG&gt;CodeWarrior Development Tools&lt;/STRONG&gt; - View the full discussion&lt;/P&gt;&lt;P&gt;&amp;lt;https://community.freescale.com/message/457770?et=watches.email.thread#457770&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 11:01:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Access-linker-symbols-in-S12Z-tool-chain-eclipse/m-p/368492#M1951</guid>
      <dc:creator>alessandromommo</dc:creator>
      <dc:date>2014-12-01T11:01:32Z</dc:date>
    </item>
  </channel>
</rss>

