Yahoo Groups archive

Lpc2000

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

Message

Re: Timer interrupt when executing from RAM

2005-06-30 by soren_t_hansen

--- In lpc2000@yahoogroups.com, "Dan Beadle" <dan.beadle@i...> wrote:
> You probably want to set MEMMAP=2 BEFORE you download the code to
make sure that the vectors are set.  

I have the MEMMAP = 2 as the first line in my main.

> Try setting a breakpoint in the VIC handler.  

Done that, but the handler newer gets called.
 
> 
> Obviously, if you have the code working from Flash, the VIC
programming is correct.  My guess would be that either you are not
loading up the vectors correctly at program load or you are corrupting
your program when loaded in RAM.

After having looked at the elf file with objdump it seems as if the
VIC interrupt handler points to the an address 3fffffef (or similar
isn't at work just now) - but that's in the flash! So maybe it is my
startup code that's wrong?

I have ldr pc, [pc, #-0x0FF0] (again - it's taken from my memory) as
my VIC handler and it works in flash. Is it the same in RAM?

Best Regards
Søren

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.