<?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>Debugging code in Ext ROM</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/14237/debugging-code-in-ext-rom</link><description> We are having trouble producing code that will run out of external code memory in an ADuC812. 
It seems that when we use a printf the program hangs, although a puts seems to work. 
It is my understanding that the Keil tools will not allow for debugging</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Debugging code in Ext ROM</title><link>https://community.arm.com/thread/37557?ContentTypeID=1</link><pubDate>Wed, 06 Jun 2001 09:01:40 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c9c36fd2-3dbb-4cb6-bc5e-f94dbc0cb4e5</guid><dc:creator>Andrew Neil</dc:creator><description>&lt;p&gt;&lt;i&gt;&amp;quot;Keil tools will not allow for debugging code residing in external ROM&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
It&amp;#39;s not Keil that doesn&amp;#39;t &amp;quot;allow&amp;quot; it - it depends on what kit you have:&lt;br /&gt;
Without the aid of an ICE, breakpoints work by replacing your code with a special instruction - which is obviously impossible if the code&amp;#39;s in ROM!&lt;br /&gt;
&lt;br /&gt;
To disassemble printf, just look up its address in the mapfile and use the UNASSEMBLE command!&lt;br /&gt;
&lt;br /&gt;
Could it be that your printf is trying to write something (eg, locals) to ROM?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>