The vic address is up in high memory FFFF.... The trick of #-0xff0 lets the PC wrap to that address. So 3fff ffef sure sounds like the wrong location to me. Is it the same when you are running from Flash? I have seen and reported a problem to IAR with single stepping through indirect addresses. They have not replied in about a month. I just don't step through the vectors. _____ From: lpc2000@yahoogroups.com [mailto:lpc2000@yahoogroups.com] On Behalf Of soren_t_hansen Sent: Thursday, June 30, 2005 1:45 PM To: lpc2000@yahoogroups.com Subject: [lpc2000] Re: Timer interrupt when executing from RAM --- 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 _____ YAHOO! GROUPS LINKS * Visit your group "lpc2000 <http://groups.yahoo.com/group/lpc2000> " on the web. * To unsubscribe from this group, send an email to: lpc2000-unsubscribe@yahoogroups.com <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> . _____ [Non-text portions of this message have been removed]
Message
RE: [lpc2000] Re: Timer interrupt when executing from RAM
2005-06-30 by Dan Beadle
Attachments
- No local attachments were found for this message.