<?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>execute from RAM problem</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/38094/execute-from-ram-problem</link><description> 
Hi, 

 
I try to execute program from RAM, but compiler show me error: 

 
.\RAM\Blinky.axf: Error: L6221E: Execution region ER_IROM2
overlaps with Execution region RW_IRAM2. 

 
It is blinky example for keil board. Can anybody help me? 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: execute from RAM problem</title><link>https://community.arm.com/thread/125068?ContentTypeID=1</link><pubDate>Sun, 16 Nov 2008 07:25:59 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4da4a15d-3357-4049-aba2-3067c67dea56</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
I don&amp;#39;t know what memory there is in your chip, but some strange
things:&lt;/p&gt;

&lt;p&gt;
IROM1: 0x20000000 0x3000&lt;br /&gt;
-- what is located in this gap? 0x20003000 0x1000?&lt;br /&gt;
IRAM2: 0x20004000 0x1000&lt;br /&gt;
Linker tab:&lt;br /&gt;
R/O Base: 0x20000000&lt;br /&gt;
R/W Base: 0x20003000 &amp;lt;= you haven&amp;#39;t shown what mem you have
here&lt;/p&gt;

&lt;p&gt;
And you originally claimed a problem with IROM2, but only post
info about IMROM1. And you do not mention the value of IRAM1.&lt;/p&gt;

&lt;p&gt;
Never &amp;quot;filter&amp;quot; information when you are asking questions on a
forum. If _you_ know what information is relevant, then you normally
already have the knowledge to fix the problem yourself. In other
worlds: If you do not know how to fix the problem, then it isn&amp;#39;t
likely that you will know what information to post and not to post -
so make sure that you post _much_ information. In this case, post
info for _all_ memory regions. And post exactly how much memory your
chip has (and where it has it). Can&amp;#39;t we check that in the datasheet?
Well, I can&amp;#39;t see that you have mentioned the exact chip name...&lt;/p&gt;

&lt;p&gt;
&amp;quot;Where I can find some information about execute program from ram
(Cortex M3)&amp;quot;&lt;/p&gt;

&lt;p&gt;
All information relevant to the compiler, linker and project
settings are available on this site. All relevant information about
your chip should be available from the manufacturer of the chip. And
most probably, Keil has a copy of the datasheet too.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: execute from RAM problem</title><link>https://community.arm.com/thread/114429?ContentTypeID=1</link><pubDate>Sun, 16 Nov 2008 07:01:28 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5c32d86d-d88e-405f-97d7-69672d97c6dc</guid><dc:creator>ka pa</dc:creator><description>&lt;p&gt;&lt;p&gt;
It&amp;#39;s working, but my settings is:&lt;br /&gt;
Target tab:&lt;br /&gt;
IROM1: 0x20000000 0x3000&lt;/p&gt;

&lt;p&gt;
IRAM2: 0x20004000 0x1000&lt;br /&gt;
Linker tab:&lt;br /&gt;
R/O Base: 0x20000000&lt;br /&gt;
R/W Base: 0x20003000&lt;/p&gt;

&lt;p&gt;
and sometimes the compiler shows me error 57: illegal adress
0x20005000&lt;/p&gt;

&lt;p&gt;
Where I can find some information about execute program from ram
(Cortex M3)&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: execute from RAM problem</title><link>https://community.arm.com/thread/101315?ContentTypeID=1</link><pubDate>Sat, 15 Nov 2008 08:07:41 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b32e18fd-9e66-412a-9798-a8b047275a48</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Have you opened the settings, and checked the values for the
memory regions? Or where you planning on posting remote-desktop
access information to this list, to have other people visit your
computer and take a look?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: execute from RAM problem</title><link>https://community.arm.com/thread/76887?ContentTypeID=1</link><pubDate>Sat, 15 Nov 2008 08:03:02 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ce71c203-9b3b-47a9-a4af-2f750a913620</guid><dc:creator>ka pa</dc:creator><description>&lt;p&gt;&lt;p&gt;
I didn&amp;#39;t change... It is done in project settings. It is
project:&lt;/p&gt;

&lt;p&gt;
c:\Keil\ARM\Boards\Keil\MCBSTM32\STLIB_Blinky&lt;/p&gt;

&lt;p&gt;
Any idea, what can be wrong?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: execute from RAM problem</title><link>https://community.arm.com/thread/52856?ContentTypeID=1</link><pubDate>Sat, 15 Nov 2008 07:12:07 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6eafd21f-2612-43ae-9a50-833fc673485f</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
The message says the two memory areas are overlapping.&lt;/p&gt;

&lt;p&gt;
So, if you have changed the ER_IROM2 area to point into RAM, the
question is: Have you also changed the RW_IRAM2 area to not
overlap?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>