<?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>monitor..!!</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/42358/monitor</link><description> hello ... 
 i specific application needs 
 -- monitor program to be installed at 
 0x2000 -- 
 --application program to be installed at 
 0x0000. 
 But, by default on hardware reset 
program counter is directed to 0x0000. 
On reset i need,Program counter</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: monitor..!!</title><link>https://community.arm.com/thread/42303?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2004 12:42:57 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:bf3e1f63-4b97-4473-98ce-ce8ed298cf8a</guid><dc:creator>Jon Ward</dc:creator><description>&lt;p&gt;&lt;i&gt;i specific application needs&lt;br /&gt;
-- monitor program to be installed at&lt;br /&gt;
0x2000 --&lt;br /&gt;
--application program to be installed at&lt;br /&gt;
0x0000.&lt;br /&gt;
But, by default on hardware reset&lt;br /&gt;
program counter is directed to 0x0000.&lt;br /&gt;
On reset i need,Program counter to start at 0x2000 (to keil monitor program).&lt;br /&gt;
could you tell me how do you solve the problem ?&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Here&amp;#39;s how we solve this problem.&lt;br /&gt;
&lt;br /&gt;
1. Your hardware must be designed so that the address decode logic includes a flip-flop that resets so that the ROM with the monitor begins at address 0x0000 after reset and the RAM begins at 0x2000 (or whatever).  When the flip-flop flips, the ROM will be decoded starting at address 0x2000.&lt;br /&gt;
&lt;br /&gt;
2. Configure the monitor so that it starts at address 0x2000.  This means that the first instruction in the monitor will be a LJMP 0x2???.  This is very important.&lt;br /&gt;
&lt;br /&gt;
3. You address decode hardware will watch A13 and when it is set  the first time, the flip-flop will flip (and now the ROM is at 0x2000 and the RAM is at 0x0000).&lt;br /&gt;
&lt;br /&gt;
The actual solution we use is based on 0x8000.  But, I think you can get the general idea of how to do this.&lt;br /&gt;
&lt;br /&gt;
For an idea of the schematic to accomplish this, take a look at the second page of the MCB520 evaluation board schematics (&lt;a href="http://www.keil.com/manuals/mcb520.pdf"&gt;http://www.keil.com/manuals/mcb520.pdf&lt;/a&gt;).&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Jon&lt;/b&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: monitor..!!</title><link>https://community.arm.com/thread/50264?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2004 12:17:04 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:bc765bc2-a39b-49f1-8d0d-8f00d9b9d7cf</guid><dc:creator>HansBernhard Broeker</dc:creator><description>&lt;p&gt;Whoever defined those &amp;quot;application needs&amp;quot; didn&amp;#39;t know what they were talking about.  Get back to them and tell them that they&amp;#39;re sending you on an impossible mission.&lt;br /&gt;
&lt;br /&gt;
The monitor program &lt;b&gt;must&lt;/b&gt; be the one located at the chip&amp;#39;s pre-defined reset location, by the very nature of its job.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: monitor..!!</title><link>https://community.arm.com/thread/42301?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2004 11:53:08 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f1455545-224f-44ad-85a4-ce068a7c8dd1</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;i&gt;On reset i need,Program counter to start at 0x2000 (to keil monitor program).&lt;br /&gt;
could you tell me how do you solve the problem ?&lt;/i&gt;&lt;br /&gt;
Open up the chip and change a few internal connections.&lt;br /&gt;
&lt;br /&gt;
The location of the reset vector is &lt;b&gt;hardware&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Erik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>