<?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>Code only works with Debug adapter</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/24860/code-only-works-with-debug-adapter</link><description> 
Dear All, 

 
I am using Silabs 8051F340 micro controller and USB debug adapter
to download the code to my target CPU. 

 
The problem i am facing is my code works fine when i reset the
system using my debug adapter by keeping adapter connected to target</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Code only works with Debug adapter</title><link>https://community.arm.com/thread/125278?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2009 06:17:09 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:790a55d9-56fe-4165-9708-15c29b0c0ae0</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&amp;quot;SILabs derivatives (f0x-f2x) require a resistor (I use 2k2)
from the reset pin to Vcc to have a reliable power on reset&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;Do you consider that a sufficiently reliable reset, or would
you still recommend an external reset-generator (or &amp;quot;supervisor&amp;quot;)
chip?&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;I&amp;#39;m just asking - I don&amp;#39;t know!&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
I have 1000s of single processor boards where this works without a
glitch.&lt;/p&gt;

&lt;p&gt;
My &amp;#39;theory&amp;#39; about built-in resets is that chips with a lot of
analog have good built-in resets whereas for chips where the reset is
the only analog feature it is usually lousy.&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: Code only works with Debug adapter</title><link>https://community.arm.com/thread/125279?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2009 14:51:57 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:545f73e4-9569-43e1-9631-61b9a0508ab6</guid><dc:creator>Tsuneo Chinzei</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&amp;quot;Code only works with Debug adapter&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
With these key words, I remember these causes and solutions.&lt;/p&gt;

&lt;p&gt;
a) Noise to the reset (C2CK) and/or C2D pins - pull up both
pins.&lt;br /&gt;
b) Slowly-rising power supply - solved by an external supervisor chip
to the reset pin.&lt;br /&gt;
c) Broken GND connection - just the debug adapter gives GND
connection to PC&lt;/p&gt;

&lt;p&gt;
Tsuneo&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code only works with Debug adapter</title><link>https://community.arm.com/thread/114725?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2009 13:41:49 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:234fa973-b7b3-46c7-a9cb-4b2bf03ed0fd</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&amp;quot;SILabs derivatives (f0x-f2x) require a resistor (I use 2k2)
from the reset pin to Vcc to have a reliable power on reset&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Do you consider that a sufficiently reliable reset, or would you
still recommend an external reset-generator (or &amp;quot;supervisor&amp;quot;)
chip?&lt;/p&gt;

&lt;p&gt;
I&amp;#39;m just asking - I don&amp;#39;t know!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code only works with Debug adapter</title><link>https://community.arm.com/thread/102981?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2009 12:36:42 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8e6d089e-1536-4068-be78-4aebd971ed7e</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
but the SILabs derivatives (f0x-f2x) require a resistor (I use
2k2) from the reset pin to Vcc to have a reliable power on reset.&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: Code only works with Debug adapter</title><link>https://community.arm.com/thread/89589?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2009 12:07:08 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:89b382c7-680c-4c90-b39c-9fe6c0ae1a97</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
No, this does not sound like a sw error. This very much sounds
like an incorrectly driven reset line.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code only works with Debug adapter</title><link>https://community.arm.com/thread/55545?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2009 11:06:41 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a9f28e99-7dfb-430d-8681-6844af272185</guid><dc:creator>Thomas Stathes</dc:creator><description>&lt;p&gt;&lt;p&gt;
i had a problem where my code worked fine if there was a
breakpoint. When let run free it would work fine and recieve a
command from the uart once then crash when i send a second command.
Turned out to be with breakpoints set it caused enough of a delay to
skip a byte comming into the uart. Never noticed it because that byte
would be disgarded in processing anyway. It took one extra line of
code to fix after 2 days of hair pulling. When let run free the extra
byte caused the program to crash...&lt;/p&gt;

&lt;p&gt;
So it could be a similar timing issue. But you dont describe the
eratic behaveior. Also if you dont have an rc reset circuit or a
reset chip, i&amp;#39;d add one.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code only works with Debug adapter</title><link>https://community.arm.com/thread/55529?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2009 08:57:17 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:acd8d5b9-d3c7-43d2-be1c-af530feeb285</guid><dc:creator>doubt that my ISP Al Bradford</dc:creator><description>&lt;p&gt;&lt;p&gt;
Why do you feel your target reset is working?&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;Note: My system doesn&amp;#39;t have RESET switch. But i feel power on
RESET is okay..&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Have you looked at the reset pin with a scope while in the power
up mode?&lt;/p&gt;

&lt;p&gt;
How are you providing a reset signal on your target board?&lt;br /&gt;
Bradford&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>