Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] which boot.s correct for lpc2129

2004-11-04 by Robert Adsett

At 04:03 PM 11/4/04 -0500, you wrote:

>At 08:46 PM 11/4/04 +0000, you wrote:
> >interruptions to move forward with my project. Will be possible to see
> >the code that is in the link below to know what is wrong??
> >
> >      http://www.lsa.isep.ipp.pt/~dbento/program/
>
>What do you mean by 'can't work'?  What is or is not happening?
>
>I'll take a look but it will probably be a while until I can get back to
>you (others might get back more quickly).  In the meantime there are
>examples of working interrupt code both in the newlib-lpc code and in the
>files forum.

I've only done a quick scan but I see an immediate potential trouble 
spot.  You have no actual interrupt function.
You placed a macro of inline assembly at the beginning of what you expect 
to be your interrupt function.

That might work, although I certainly wouldn't place any great expectations 
that it would without inspecting the actually output assembly code.  Even 
if it did work I wouldn't place any great faith in it continuing to work as 
either the compiler or other code is changed.

My first advice build a proper interrupt wrapper (and yes do it in 
assembly),  It's not difficult and that way you will know that it is 
correct.  I'm sounding a bit like a broken record but there is an example 
of such a wrapper in the newlib-lpc code.

The other option would be to upgrade the compiler to get a working 
interrupt keyword (me I don't trust compilers to get this 'right', but 
that's just me).

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,
be they legal, genetic, or physical.  If you don't believe me, try to
chew a radio signal. "

                         Kelvin Throop, III

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.