<?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: position of code in memory in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/position-of-code-in-memory/m-p/129800#M1219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;(sorry for the previous message)&lt;BR /&gt;&lt;BR /&gt;Well i look carefully... and it doesnt work.&lt;BR /&gt;&lt;BR /&gt;I do :&lt;BR /&gt;&lt;BR /&gt;in PRM file:&lt;BR /&gt;SEGMENTS&lt;BR /&gt;RAM = READ_WRITE 0x1000 TO 0x3FFF;&lt;BR /&gt;/* unbanked FLASH ROM */&lt;BR /&gt;ROM_4000 = READ_ONLY 0x4000 TO 0x7FFF;&lt;BR /&gt;ROM_C000 = READ_ONLY 0xC000 TO 0xFEFF;&lt;BR /&gt;/* banked FLASH ROM */&lt;BR /&gt;PAGE_30 = READ_ONLY 0x308000 TO 0x30BFFF;&lt;BR /&gt;...&lt;BR /&gt;PAGE_38 = READ_ONLY 0x388000 TO 0x38BFFF;&lt;BR /&gt;PAGE_39 = READ_ONLY 0x398000 TO 0x39BFFF;&lt;BR /&gt;...&lt;BR /&gt;END&lt;BR /&gt;&lt;BR /&gt;PLACEMENT&lt;BR /&gt;_PRESTART, /* Used in HIWARE format:&lt;BR /&gt;...&lt;BR /&gt;PROG_USER INTO PAGE_38,PAGE_39;&lt;BR /&gt;END&lt;BR /&gt;&lt;BR /&gt;in header:&lt;BR /&gt;&lt;BR /&gt;#pragma DATA_SEG PROG_USER&lt;BR /&gt;extern const char* MessageDef [];&lt;BR /&gt;#pragma DATA_SEG DEFAULT&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;in source:&lt;BR /&gt;#pragma DATA_SEG PROG_USER&lt;BR /&gt;&lt;BR /&gt;const char* MessageDef [tailleMessageDefaut]=&lt;BR /&gt;{&lt;BR /&gt;"", ....&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;#pragma DATA_SEG DEFAULT&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;in Compiler option :&lt;BR /&gt;&lt;BR /&gt;-CpPPAGE=RUNTIME -D_HCS12&lt;BR /&gt;&lt;BR /&gt;I use a S12DG256 with code warrior HC12 3.1 and a softec inDART&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;i have link error like this :&lt;BR /&gt;&lt;BR /&gt;Link Error : L1112: The PROG_USER section has segment type READ_WRITE (illegal)&lt;BR /&gt;&lt;BR /&gt;Link Error : L1934: ELF: Section 'PROG_USER' located in a segment with invalid qualifier.&lt;BR /&gt;&lt;BR /&gt;can you help me ? .&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 May 2007 18:59:15 GMT</pubDate>
    <dc:creator>hdan</dc:creator>
    <dc:date>2007-05-10T18:59:15Z</dc:date>
    <item>
      <title>position of code in memory</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/position-of-code-in-memory/m-p/129797#M1216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I use a DG256 with banked memory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to place a special part of my program in a 2 banks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(I need to save them after)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How to impose the memory position of a program part?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;hdan.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 20:11:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/position-of-code-in-memory/m-p/129797#M1216</guid>
      <dc:creator>hdan</dc:creator>
      <dc:date>2006-09-08T20:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: position of code in memory</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/position-of-code-in-memory/m-p/129798#M1217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;This question occurs from time to time here. You can use the search facility (at the bottom left of this page) and try searching on "SEGMENT". Just to expedite things for you, here's a &lt;A href="http://forums.freescale.com/freescale/board/message?board.id=16BITCOMM&amp;amp;message.id=1922&amp;amp;query.id=1285#M1922" target="_blank"&gt;forum link&lt;/A&gt; with a discussion on the topic that's a wealth of information.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 21:13:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/position-of-code-in-memory/m-p/129798#M1217</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2006-09-08T21:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: position of code in memory</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/position-of-code-in-memory/m-p/129799#M1218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Thanks &lt;BR /&gt;i'll look carefully the result of the "SEGMENT" search &lt;BR /&gt;&lt;BR /&gt;hdan,&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 22:09:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/position-of-code-in-memory/m-p/129799#M1218</guid>
      <dc:creator>hdan</dc:creator>
      <dc:date>2006-09-08T22:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: position of code in memory</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/position-of-code-in-memory/m-p/129800#M1219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;(sorry for the previous message)&lt;BR /&gt;&lt;BR /&gt;Well i look carefully... and it doesnt work.&lt;BR /&gt;&lt;BR /&gt;I do :&lt;BR /&gt;&lt;BR /&gt;in PRM file:&lt;BR /&gt;SEGMENTS&lt;BR /&gt;RAM = READ_WRITE 0x1000 TO 0x3FFF;&lt;BR /&gt;/* unbanked FLASH ROM */&lt;BR /&gt;ROM_4000 = READ_ONLY 0x4000 TO 0x7FFF;&lt;BR /&gt;ROM_C000 = READ_ONLY 0xC000 TO 0xFEFF;&lt;BR /&gt;/* banked FLASH ROM */&lt;BR /&gt;PAGE_30 = READ_ONLY 0x308000 TO 0x30BFFF;&lt;BR /&gt;...&lt;BR /&gt;PAGE_38 = READ_ONLY 0x388000 TO 0x38BFFF;&lt;BR /&gt;PAGE_39 = READ_ONLY 0x398000 TO 0x39BFFF;&lt;BR /&gt;...&lt;BR /&gt;END&lt;BR /&gt;&lt;BR /&gt;PLACEMENT&lt;BR /&gt;_PRESTART, /* Used in HIWARE format:&lt;BR /&gt;...&lt;BR /&gt;PROG_USER INTO PAGE_38,PAGE_39;&lt;BR /&gt;END&lt;BR /&gt;&lt;BR /&gt;in header:&lt;BR /&gt;&lt;BR /&gt;#pragma DATA_SEG PROG_USER&lt;BR /&gt;extern const char* MessageDef [];&lt;BR /&gt;#pragma DATA_SEG DEFAULT&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;in source:&lt;BR /&gt;#pragma DATA_SEG PROG_USER&lt;BR /&gt;&lt;BR /&gt;const char* MessageDef [tailleMessageDefaut]=&lt;BR /&gt;{&lt;BR /&gt;"", ....&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;#pragma DATA_SEG DEFAULT&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;in Compiler option :&lt;BR /&gt;&lt;BR /&gt;-CpPPAGE=RUNTIME -D_HCS12&lt;BR /&gt;&lt;BR /&gt;I use a S12DG256 with code warrior HC12 3.1 and a softec inDART&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;i have link error like this :&lt;BR /&gt;&lt;BR /&gt;Link Error : L1112: The PROG_USER section has segment type READ_WRITE (illegal)&lt;BR /&gt;&lt;BR /&gt;Link Error : L1934: ELF: Section 'PROG_USER' located in a segment with invalid qualifier.&lt;BR /&gt;&lt;BR /&gt;can you help me ? .&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 18:59:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/position-of-code-in-memory/m-p/129800#M1219</guid>
      <dc:creator>hdan</dc:creator>
      <dc:date>2007-05-10T18:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: position of code in memory</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/position-of-code-in-memory/m-p/129801#M1220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi, I'm really near the solution, I use: #pragma CONST_SEG PPAGE CONS_USER my const #pragma CONST_SEG DEFAULT and it works but the compiler make an warning : Warning C3802&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;egment pragma incorrect ( if i write #pragma CONST_SEG CONS_USER no warning but doesn't work) if someone can help me to clear this warning ...&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2007 21:09:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/position-of-code-in-memory/m-p/129801#M1220</guid>
      <dc:creator>hdan</dc:creator>
      <dc:date>2007-05-11T21:09:35Z</dc:date>
    </item>
  </channel>
</rss>

