Yahoo Groups archive

Lpc2000

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

Message

Re: Handling interrupts on RAM (debug) version

2006-05-31 by stefano_m_a

It's incredible, i found an error on the code i wrote (and i posted) 
and the code should be not running, but i saw it running !!

> ...
> 	ldr   pc, _irq		/* .18 IRQ - _irq		*/
> ...
> 
> _irq:
> 	b timer0ISR
> ...

_irq label should define an address and not an instruction ...
I corrected the code as following:

	ldr   pc, _irq		/* .18 IRQ - _irq		*/
...
 
_irq:
	.word __irq

...
__irq:
	b timer0ISR

But now the running is bad.....

When the IRQ is fired the PC is pointing 0x18 or 0x4000.0018 ?????

Regards !
--
SM

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.