Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: Problem with entering ISR

2006-05-29 by federr65

--- In lpc2000@yahoogroups.com, "bobtransformer" <bgudgel@...> wrote:
>
> 
> > static void timer0ISR(void)
> > {
> > if (IO0PIN=0)
> >   {
> >   IO0SET=LED;
> >   }
> >   else
> 
> 
> Also, did you mean to have the single equals sign in the if
> statement instead of == ?   ...  if (IO0PIN=0)

I deleted the "=" mark accidentally while formatting the text for posting.
Some more info that I didn't included in my first post:
1. I'm using Crossworks 1.5
2. After Timer match registers are in following states:
VICIrqStatus: 0x00000010
VICRawIntr: 0x00002018

It looks like VICVectorAddr0 is not pointing to the ISR. I tried
adding #define VECTORED_IRQ_INTERRUPTS ; and replacing code in startup.s:

#ifdef VECTORED_IRQ_INTERRUPTS
  .word 0xB9205F84                              /* boot loader checksum */
  ldr pc, [pc, #-0xFF0]                         /* irq handler */
#else
  .word 0xB8A06F60                              /* boot loader checksum */
  ldr pc, [pc, #irq_handler_address - . - 8]    /* irq handler */
to:
#ifdef VECTORED_IRQ_INTERRUPTS
  .word 0xB9205F84                              /* boot loader checksum */
  ldr pc, [pc, #-0xFF0]                         /* irq handler */
#else
  .word 0xB8A06F60                              /* boot loader checksum */
  ldr pc, [pc, #-0xFF0]   /* irq handler */

But it didn't work either.
Thanks for your attention.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.