<?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 properly but not running onboard.</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/30577/debugging-properly-but-not-running-onboard</link><description> 
Hello, 
I am using Uv4 for LPC2148, my LED blinking program works fine in
debug mode but does not runs on the board. I am using Flash magic to
flash the program. 
Pls help. 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Debugging properly but not running onboard.</title><link>https://community.arm.com/thread/143167?ContentTypeID=1</link><pubDate>Sat, 26 May 2012 01:59:55 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d8fb9fc0-1d81-4d03-8eb4-ba61bd5fe46f</guid><dc:creator>Alexan Eramian</dc:creator><description>&lt;p&gt;&lt;p&gt;
I&amp;#39;m not sure if the debug has been done in a software simulator or
in the actual board but it is the only case to see the result of this
code since there is no delay between the different led states.&lt;/p&gt;

&lt;p&gt;
Unless you uses steps in a debugger to be able to pause and view
each step result you will see nothing because the loop is executed
with a very high speed.&lt;/p&gt;

&lt;p&gt;
Alex&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging properly but not running onboard.</title><link>https://community.arm.com/thread/140251?ContentTypeID=1</link><pubDate>Tue, 22 May 2012 15:44:30 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d7efdc46-100b-4a6f-8207-098eb3f52034</guid><dc:creator>HansBernhard Broeker</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;Can i expect some valid answers which will really help?&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
You couldn&amp;#39;t, but you did get some anyway. It&amp;#39;s not exactly our
fault you failed to recognize them.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging properly but not running onboard.</title><link>https://community.arm.com/thread/140262?ContentTypeID=1</link><pubDate>Sun, 20 May 2012 23:22:26 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9f6f390d-277a-4e20-ace4-7182a6b7d9b7</guid><dc:creator>s shameel</dc:creator><description>&lt;p&gt;&lt;p&gt;
hey sam san.&lt;/p&gt;

&lt;p&gt;
you dont get good answers from some people here. i asked question
once and they all said Please read the manual and your stupid and ask a proper
question. idiots.&lt;/p&gt;

&lt;p&gt;
you code IO1CLR = IO1CLR &amp;lt;&amp;lt; 1; but you cant read IO1CLR.
sure dont know about IO1SET.&lt;/p&gt;

&lt;p&gt;
and when your loop is finished and you start it again IO1SET is
not restarted.&lt;/p&gt;

&lt;p&gt;
why not start this?&lt;/p&gt;

&lt;pre&gt;
while(1)
{
  unsigned long bits;

  bits = 0x00010000;

  for(i=0;i&amp;lt;=6;i++)
  {
    IO1CLR = 0x00FF0000
    IO1SET = bits;
    bits &amp;lt;&amp;lt;= 1;
   }
}
&lt;/pre&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging properly but not running onboard.</title><link>https://community.arm.com/thread/136784?ContentTypeID=1</link><pubDate>Sun, 20 May 2012 19:53:49 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f3b58295-71b7-4fd1-ba16-a0a308b95ecf</guid><dc:creator>sam san</dc:creator><description>&lt;p&gt;&lt;p&gt;
Can i expect some valid answers which will really help?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging properly but not running onboard.</title><link>https://community.arm.com/thread/127525?ContentTypeID=1</link><pubDate>Sun, 20 May 2012 07:35:09 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2fbd2cfe-04a7-40d6-9a4e-e622553618e4</guid><dc:creator>HansBernhard Broeker</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;I missed it thanks to your wonderful formatted posted
code!&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
... and thanks to the fact that he silently smuggled it into the
otherwise identical re-post...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging properly but not running onboard.</title><link>https://community.arm.com/thread/136768?ContentTypeID=1</link><pubDate>Sun, 20 May 2012 06:25:17 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6f53bea0-9579-4f7b-8e69-2fd94f28deb8</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
You are assuming that you can shift the registers left
indefinitely. And you are assuming that your code really consumes
time. And you are totally ignoring the rules for how to post source
code - was it too hard to read the instructions directly above the
message input box?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging properly but not running onboard.</title><link>https://community.arm.com/thread/127536?ContentTypeID=1</link><pubDate>Sun, 20 May 2012 05:14:20 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:dd73a9ae-acd2-4c89-a999-4207bea1e20f</guid><dc:creator>sam san</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hello Michael,&lt;/p&gt;

&lt;p&gt;
Please guide me what wrong have i done?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging properly but not running onboard.</title><link>https://community.arm.com/thread/119702?ContentTypeID=1</link><pubDate>Sun, 20 May 2012 04:43:11 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b73f8b3e-082f-45eb-9a5e-623d9624cbe4</guid><dc:creator>Tamiryan Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
Ho sorry, you actually have one - I missed it thanks to your
wonderful formatted posted code!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging properly but not running onboard.</title><link>https://community.arm.com/thread/106026?ContentTypeID=1</link><pubDate>Sun, 20 May 2012 04:42:30 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6f0eccb2-00d4-4f7f-9c56-1efb27c71740</guid><dc:creator>Tamiryan Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
I&amp;#39;m missing an infinite loop here.&lt;br /&gt;
I&amp;#39;m missing an infinite loop here.&lt;br /&gt;
I&amp;#39;m missing an infinite loop here.&lt;br /&gt;
I&amp;#39;m missing an infinite loop here.&lt;br /&gt;
I&amp;#39;m missing an infinite loop here.&lt;br /&gt;
I&amp;#39;m missing an infinite loop here.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging properly but not running onboard.</title><link>https://community.arm.com/thread/80269?ContentTypeID=1</link><pubDate>Sun, 20 May 2012 04:40:26 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b9109939-dde3-4b95-b890-5ab5ef52136c</guid><dc:creator>sam san</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hello Andrew,&lt;/p&gt;

&lt;p&gt;
Below is my code which gives no error.&lt;/p&gt;

&lt;p&gt;
#include &amp;quot;lpc21xx.h&amp;quot;&lt;br /&gt;
//#include &amp;quot;header_test.h&amp;quot;&lt;/p&gt;

&lt;p&gt;
int main()&lt;br /&gt;
{ register int i; PINSEL2 = 0x00000000; IODIR1 = 0x00FF0000; IOSET1 =
0x00010000; //IO1CLR = 0x00010000; while(1) { for(i=0;i&amp;lt;=6;i++) {
IO1SET = IO1SET &amp;lt;&amp;lt; 1; IO1CLR = IO1CLR &amp;lt;&amp;lt; 1; } }&lt;br /&gt;
}&lt;/p&gt;

&lt;p&gt;
Hardware details can be found at,&lt;br /&gt;
&lt;a href="http://www.oasistechsol.com/voyager_board.aspx"&gt;www.oasistechsol.com/voyager_board.aspx&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
Also please tell me why you wrote, only i can debug it!&lt;br /&gt;
Did i made some mistake?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging properly but not running onboard.</title><link>https://community.arm.com/thread/127526?ContentTypeID=1</link><pubDate>Sun, 20 May 2012 03:13:21 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f26e2eb3-f64f-4b4e-b6c7-c5c8a9329a6a</guid><dc:creator>Tamiryan Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;This is the exact code which works fine without any
problem&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
I&amp;#39;m missing an infinite loop here.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging properly but not running onboard.</title><link>https://community.arm.com/thread/116851?ContentTypeID=1</link><pubDate>Sun, 20 May 2012 02:56:20 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:566fa497-3778-4f76-8cae-43da00d49bd9</guid><dc:creator>sam san</dc:creator><description>&lt;p&gt;&lt;p&gt;
This is the exact code which works fine without any problem.&lt;br /&gt;
On the hardware LED&amp;#39;s are mounted from pin P1.16 to P1.23.&lt;/p&gt;

&lt;p&gt;
#include &amp;quot;lpc21xx.h&amp;quot;&lt;br /&gt;
//#include &amp;quot;header_test.h&amp;quot;&lt;/p&gt;

&lt;p&gt;
int main()&lt;br /&gt;
{ register int i; PINSEL2 = 0x00000000; IODIR1 = 0x00FF0000; IOSET1 =
0x00010000; //IO1CLR = 0x00010000; for(i=0;i&amp;lt;=6;i++) { IOSET1 =
IO1SET &amp;lt;&amp;lt; 1; IOCLR1 = IO1CLR &amp;lt;&amp;lt; 1; }&lt;/p&gt;

&lt;p&gt;
}&lt;/p&gt;

&lt;p&gt;
For the hardware details of board please visit&lt;br /&gt;
&lt;a href="http://www.oasistechsol.com/voyager_board.aspx"&gt;www.oasistechsol.com/voyager_board.aspx&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging properly but not running onboard.</title><link>https://community.arm.com/thread/106024?ContentTypeID=1</link><pubDate>Sat, 19 May 2012 21:58:03 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6d8fde34-2a00-4973-91ef-43ac304b3b82</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
And you have then done what debugging to figure out if you have a
hardware issue, or if any of your assumptions in the code are
incorrect for the actual hardware?&lt;/p&gt;

&lt;p&gt;
We haven&amp;#39;t seen the hardware.&lt;/p&gt;

&lt;p&gt;
We haven&amp;#39;t&amp;#39; seen the source code.&lt;/p&gt;

&lt;p&gt;
Exactly how can we then help?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging properly but not running onboard.</title><link>https://community.arm.com/thread/80270?ContentTypeID=1</link><pubDate>Sat, 19 May 2012 21:00:09 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:db349f80-52bb-4f32-8ca9-1ec076454ca0</guid><dc:creator>sam san</dc:creator><description>&lt;p&gt;&lt;p&gt;
Yes, it works fine on my PC, but not on the board.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging properly but not running onboard.</title><link>https://community.arm.com/thread/67479?ContentTypeID=1</link><pubDate>Sat, 19 May 2012 01:12:43 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:06df194b-12cf-4a2f-9d17-132a4fcf2e5d</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
You mean it runs in the &lt;b&gt;Simulator&lt;/b&gt; (ie, purely on your PC),
but not on your board?&lt;/p&gt;

&lt;p&gt;
This must mean that:&lt;/p&gt;

&lt;p&gt;
&lt;b&gt;1.&lt;/b&gt; Your code makes an incorrect assumption about the
hardware, or&lt;/p&gt;

&lt;p&gt;
&lt;b&gt;2.&lt;/b&gt; Your hardware is faulty, or&lt;/p&gt;

&lt;p&gt;
&lt;b&gt;3.&lt;/b&gt; Both!&lt;/p&gt;

&lt;p&gt;
As only you have the hardware, and you have not given any details
about it or your software, &lt;b&gt;you&lt;/b&gt; are the only one who can
&lt;b&gt;debug&lt;/b&gt; this!&lt;/p&gt;

&lt;p&gt;
Debugging tips:&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.8052.com/faqs/120313"&gt;www.8052.com/.../120313&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
&lt;a target="_blank" href="http://www.eetimes.com/discussion/break-point/4027526/Developing-a-good-bedside-manner?pageNumber=0"&gt;www.eetimes.com/.../Developing-a-good-bedside-manner&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>