Yahoo Groups archive

Lpc2000

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

Thread

Doubt on IAP in LPC2138

Doubt on IAP in LPC2138

2005-05-10 by balakumar chinuswamy

When i try to do the IAP in LPC2138.
I am getting a prefetch abort .
please let me know if any solutions.

regards

Bala

[Non-text portions of this message have been removed]

Re: [lpc2000] Doubt on IAP in LPC2138

2005-05-11 by Rod Moffitt

I would guess that you tried to enter the IAP from ARM mode. IAP runs in 
thumb mode, so you need to either change modes or compile your code to 
support automagic switching.

There are some examples in the downloads section of the the yahoo group. 
The easiest method is to pass "-mthumb -mthumb-interwork" to both GCC and 
LD. Note that this will bork your interrupt handlers and other routines 
that need the 'full' ARM register set (just use "-mthumb-interwork" for 
those files). It's wise to do some research before proceeding.

- Rod

--
                          ___  ____  ___    _      ___
  Rod Moffitt            / _ \/ __ \/ _ \  (_)__  / _/__
  http://rod.info       / , _/ /_/ / // / / / _ \/ _/ _ \
  rodANTISPAM@... /_/|_|\____/____(*)_/_//_/_/ \___/
  =======================================================
  ~ Where loved ones are remembered http://memoriam.org ~

On Tue, 10 May 2005, balakumar  chinuswamy wrote:

>  
> When i try to do the IAP in LPC2138.
> I am getting a prefetch abort .
> please let me know if any solutions.
>
> regards
>
> Bala
>
> [Non-text portions of this message have been removed]
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>

[Non-text portions of this message have been removed]

Re: [lpc2000] Doubt on IAP in LPC2138

2005-05-11 by Charles Manning

On Wednesday 11 May 2005 15:01, Rod Moffitt wrote:
> I would guess that you tried to enter the IAP from ARM mode. IAP runs in
> thumb mode, so you need to either change modes or compile your code to
> support automagic switching.
>
> There are some examples in the downloads section of the the yahoo group.
> The easiest method is to pass "-mthumb -mthumb-interwork" to both GCC and
> LD. Note that this will bork your interrupt handlers and other routines
> that need the 'full' ARM register set (just use "-mthumb-interwork" for
> those files). It's wise to do some research before proceeding.
>
> - Rod

IMHO  if the rest of your app is in ARM mode then it is easiest to do all 
this in assembly. You then don't need to fiddle with interworking in the C 
compiler, libraries etc.

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.