Yahoo Groups archive

Lpc2000

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

Thread

is IAP possible using ARM Mode..?

is IAP possible using ARM Mode..?

2005-10-25 by dhp_ec

hello all,
This is abt Flash Programming,,is onchip flash programming BY USING 
IAP, possible in ARM mode.?
i found a flash programming example by using IAP in THUMB Mode in the 
group 
here it is ...
**********************************************************************
static void callIAP(void) __attribute((naked));
static void callIAP(void)
{
  ///// fast way to get the address of flashParams[] directly into r0
  register void *pFP asm("r0") = flashParams;

  asm volatile(" mov r1, r0\n"       // copy &flashParams[] into r1
               " bx  %[iapLocation]" // 'bx' because IAP is Thumb mode
               :
               : "r" (pFP), [iapLocation] "r" (IAP_LOCATION)
               : "r1" );
}

/*********************************************************************

But as IAP is alaways called by a word pointer in register R0 
(pointing to RAM),so is this not possble in ARM MOde Right..?
If so then,how can i make changes so that this piece of code works 
for ARM mode..?

Am I right or missing something..?Pls suggest
regards
dp

Re: [lpc2000] is IAP possible using ARM Mode..?

2005-10-25 by Rob Jansen

Hi DP,

This is about RTFM ;-)

>  This is abt Flash Programming,,is onchip flash programming BY USING
>  IAP, possible in ARM mode.?
>  i found a flash programming example by using IAP in THUMB Mode in the
>  group  here it is ...

There is a Philips app.note on this, explains how to do this from both ARM
and Thumb. Furthermore, ARM/Thumb interworking is also explained in the
ARM7 TDMIS manual on the ARM website.

In general, calling Thumb code from ARM is easy. Just make sure you
specify the ARM/Thumb interworking flag for your C-compiler

Rob

Re: is IAP possible using ARM Mode..?

2005-10-25 by dhp_ec

--- In lpc2000@yahoogroups.com, "dhp_ec" <dhp_ec@y...> wrote:
>
> --- In lpc2000@yahoogroups.com, "Rob Jansen" <rob@m...> wrote:
> >
> > Hi DP,
> > 
> > This is about RTFM ;-)
> > 
> > >  This is abt Flash Programming,,is onchip flash programming BY 
> USING
> > >  IAP, possible in ARM mode.?
> > >  i found a flash programming example by using IAP in THUMB Mode 
> in the
> > >  group  here it is ...
> > 
> > There is a Philips app.note on this, explains how to do this from 
> both ARM
> > and Thumb. Furthermore, ARM/Thumb interworking is also explained 
in 
> the
> > ARM7 TDMIS manual on the ARM website.
> > 
> > In general, calling Thumb code from ARM is easy. Just make sure 
you
> > specify the ARM/Thumb interworking flag for your C-compiler
> > 
> > Rob
> >
> 
> 
> Thank u Rob,
> i am aware of the thumb and arm inter-networking.
> i found the link for the ISP.
> 
> can u pls send the link of the app note from philips that sumraize 
> the ARM and thumb modes for IAP programming.?
> 
> thanks,
> dp
>

thank u Rob,

i found the application note.. by the way what do u mean by RTFM..?
i haven't found any RTFM in the application note.

regards, 
dp

Re: [lpc2000] Re: is IAP possible using ARM Mode..?

2005-10-25 by Rob Jansen

>  i found the application note.. by the way what do u mean by RTFM..?
>  i haven't found any RTFM in the application note.

RTFM is a TLA and means "Read the Manual" (I forgot what the F stands for).

In general this is the kind of answer you may see if questions are asked
that are being answered that can be found in the manual or application
notes.

Anyway, I was wrong about the app.note - it's in the user manual of the
LPC2106 (IAP commands on page 193) - I did not have this one handy while
entering my mail (yes, there are still PCs that do not have Acrobat Reader
installed ...)

Rob

P.s: TLA => http://en.wikipedia.org/wiki/TLA

Re: is IAP possible using ARM Mode..?

2005-10-26 by dhp_ec

--- In lpc2000@yahoogroups.com, "Rob Jansen" <rob@m...> wrote:
>
> 
> >  i found the application note.. by the way what do u mean by 
RTFM..?
> >  i haven't found any RTFM in the application note.
> 
> RTFM is a TLA and means "Read the Manual" (I forgot what the F 
stands for).
> 
> In general this is the kind of answer you may see if questions are 
asked
> that are being answered that can be found in the manual or 
application
> notes.
> 
> Anyway, I was wrong about the app.note - it's in the user manual of 
the
> LPC2106 (IAP commands on page 193) - I did not have this one handy 
while
> entering my mail (yes, there are still PCs that do not have Acrobat 
Reader
> installed ...)
> 
> Rob
> 
> P.s: TLA => http://en.wikipedia.org/wiki/TLA
>

thank u Rob,,

for teaching me new terminlogy...............;-)i will load the 
application notes i found .
cheers,
dp

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.