EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

is IAP possible using ARM Mode..?

Started by dhp_ec October 25, 2005
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


An Engineer's Guide to the LPC2100 Series

--- In lpc2000@lpc2..., "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


--- In lpc2000@lpc2..., "dhp_ec" <dhp_ec@y...> wrote:
>
> --- In lpc2000@lpc2..., "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



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



> 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


--- In lpc2000@lpc2..., "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



The 2024 Embedded Online Conference