Yahoo Groups archive

Lpc2000

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

Message

Re: Struggling with LPC2138 IAP.

2005-11-16 by r_bottleneck

> Actually the IAP is Thumb code, not ARM.  Take a look at the code I
posted
> in the files section on Yahoo.  'LPC-FlashRoutines-18Feb05.zip' may
be of

Thanks to all who answered to my question. 
Now it works!!

The reason for the exception I got was that the compiler I'm using
converted the HLL line 

              iap_entry(command,result);

in finally
                ...
              MOV PC,r3 
                ...
That caused the mentioned exception.

After I inserted a piece of ASM code containing finally

    ....
    BX r3
    ....

it works as expected.

Thanks again for your help, I appreciate it.

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.