<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SEGMENT RELOCATION</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/28521/segment-relocation</link><description> 
Hi all: 
I need to relocate a segment to a specific address. Say I have 4
&amp;#39;.obj&amp;#39; SEG1.OBJ, SEG2.OBJ, SEG3.OBJ and SEG4.OBJ segments and want to
locate SEG2 to the specific address 1A00. 
Thanks in advance. 
J 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: SEGMENT RELOCATION</title><link>https://community.arm.com/thread/116552?ContentTypeID=1</link><pubDate>Fri, 21 Oct 2011 12:02:48 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c0de5342-84f3-476f-8df5-eda2871a1fa4</guid><dc:creator>Juan Velasquez</dc:creator><description>&lt;p&gt;&lt;p&gt;
The 8051F352 does not have scratch pad area, and the lock byte
can&amp;#39;t be erased if other pages are locked (code protection).&lt;br /&gt;
Got the info about the SEGMENT in linker.&lt;br /&gt;
Thanks&lt;br /&gt;
J&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SEGMENT RELOCATION</title><link>https://community.arm.com/thread/105397?ContentTypeID=1</link><pubDate>Fri, 21 Oct 2011 09:06:56 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:dd35a65d-ad49-434c-96ac-85dca9f19ce1</guid><dc:creator>erik malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
I have no idea how to do it in the IDE, but with commandline
operation you use the SEGMENT statement in the linker command.&lt;/p&gt;

&lt;p&gt;
Erik&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SEGMENT RELOCATION</title><link>https://community.arm.com/thread/105399?ContentTypeID=1</link><pubDate>Fri, 21 Oct 2011 08:50:23 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f57c3c3a-9a99-45cc-8bb7-06650dbbb2aa</guid><dc:creator>erik malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;I need a page in flash to store parameters&lt;/i&gt;&lt;br /&gt;
don&amp;#39;t the 352 have a scratchpad like to ones I know?&lt;br /&gt;
&lt;i&gt;As you should now the last page can not be erased as it has the
protection byte&lt;/i&gt;&lt;br /&gt;
sure it can, just save the &amp;quot;restricted area&amp;quot; contents and write them
back&lt;/p&gt;

&lt;p&gt;
Erik&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SEGMENT RELOCATION</title><link>https://community.arm.com/thread/79685?ContentTypeID=1</link><pubDate>Fri, 21 Oct 2011 08:29:12 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ea8a5d77-b50f-4966-a141-0c7627a22c81</guid><dc:creator>Juan Velasquez</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi Erik:&lt;br /&gt;
I am using a 8051F352 from Silabs and I need a page in flash to store
parameters, and I am running out of flash space. As you should now
the last page can not be erased as it has the protection byte, and is
a waste of a full page!. Having code in that page I can use what is
left for my parameters.&lt;br /&gt;
Thanks&lt;br /&gt;
J&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SEGMENT RELOCATION</title><link>https://community.arm.com/thread/59974?ContentTypeID=1</link><pubDate>Fri, 21 Oct 2011 07:15:00 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3843c814-dd2a-4784-a972-8bc2a1b0585a</guid><dc:creator>erik malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
while it is possible it is a)crummy, b) prone to cause errors, c)
making debug difficult, d) ....&lt;/p&gt;

&lt;p&gt;
if you have a valid reason, the reason will dictate the
method.&lt;/p&gt;

&lt;p&gt;
Erik&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>