<?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>lpc2378 crash</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/21990/lpc2378-crash</link><description> 
hello, 
I&amp;#39;m using Keil Realview compiler with the MCB2300 board (lpc2378).
I&amp;#39;ve a simple program that toggles a pin every 1 msec using a timer 0
interrupt. 
In the main loop a array is being filled and another pin is
toggled. 
When I run the program</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: lpc2378 crash</title><link>https://community.arm.com/thread/99366?ContentTypeID=1</link><pubDate>Tue, 03 Jul 2007 04:27:11 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:55ef6db7-b2ee-4ca2-a0c0-9383a49be85c</guid><dc:creator>Patrick Noonan</dc:creator><description>&lt;p&gt;&lt;p&gt;
You did a great job in describing the problem and providing enough
information in one post. You obviously even read the forum rules!&lt;/p&gt;

&lt;p&gt;
Not like this poster!&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.keil.com/forum/docs/thread10155.asp"&gt;http://www.keil.com/forum/docs/thread10155.asp&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: lpc2378 crash</title><link>https://community.arm.com/thread/75228?ContentTypeID=1</link><pubDate>Tue, 03 Jul 2007 03:17:39 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:0ec2c31f-d5ac-4393-8a2f-2b8ae9d455cf</guid><dc:creator>Sander Wiggrs</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thanks Patrick.&lt;/p&gt;

&lt;p&gt;
I indeed forgot to put R1 onto the stack. now it works ok.&lt;/p&gt;

&lt;p&gt;
Kind regards,&lt;br /&gt;
Sander Wiggers&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: lpc2378 crash</title><link>https://community.arm.com/thread/48273?ContentTypeID=1</link><pubDate>Mon, 02 Jul 2007 10:14:17 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:efa57fce-d84b-4e3d-9730-d3a2a4553af2</guid><dc:creator>Patrick Noonan</dc:creator><description>&lt;p&gt;&lt;p&gt;
Your interrupt handler is not preserving R1.&lt;/p&gt;

&lt;pre&gt;
        LDR     R1, =0xFFFFFF00         ; load VICVectAddr into R1
        STR     R0, [R1]                ; acknowledge irq by writing something to VICVectAddr
        LDMFD   SP!, {R12, PC}^         ; pop R12 and LR_irq from stack
&lt;/pre&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>