EmbeddedRelated.com
Forums

Startup code working with lpc214x and not with lpc2468

Started by urjust2oocool October 27, 2008
Dear Ray,
I got it working in my Keil simulater by just changing the PLLLOCK bit from 10th bit to 26th bit and my problem was solved. But i cannot get it working on my Board. Gues the PLL didnt get configured the way it has to be...CAn you help me.

Raj

--- On Mon, 10/27/08, Ray Molenkamp wrote:
From: Ray Molenkamp
Subject: Re: [lpc2000] Startup code working with lpc214x and not with lpc2468
To: l...
Date: Monday, October 27, 2008, 6:49 PM


Are you using lpc214x startup code on an lpc2468? Thats not gonna work.

it needs a slightly different method of setting up the clock.

--Ray

urjust2oocool wrote:

>

> Hello everyone,

> I 'm able to work the GNU compiler provided with keil on LPC 214x.

> I used the staup code provided with the gnu examples of keil. There

> was no issues.

> I tried running a small application on LPC 2468. After compiling when

> i try to debug it in debug mode it ends up in an infinite loop within

> this 3 lines shown below.

>

> 0x0000007C E5903008 LDR R3,[R0,#0x0008]

> 0x00000080 E2133B01 ANDS R3,R3,#0x00000400

> 0x00000084 0AFFFFFC BEQ 0x0000007C

>

> This doesn't happen with the other lpc 214x series. Can anyone please

> tell me why this happens.

>

>















An Engineer's Guide to the LPC2100 Series

hello Martin,
You were rite. I was able to rectify the problem. (R0_0x08) pointed to PLLSTAT register. It was supposed to point to the PLLLOCK bit which would get set after the PLL gets stable. In LPC214x PLLLOCK bit is the 10bit but in LPC2468 is the 26th bit. Did changes accordingly and it started working on the simulater. Thanks for that. But now the problem is that i cannot get it working in my board. Guess there are some more configurations to be made.
Raj

--- On Mon, 10/27/08, mjames_doveridge wrote:
From: mjames_doveridge
Subject: [lpc2000] Re: Startup code working with lpc214x and not with lpc2468
To: l...
Date: Monday, October 27, 2008, 1:36 PM


>

> Read the above again. Then get the register values, esp. R0. Compare

> the R0 value against the register map of both processors in the user

> manuals. You might want to start with the section on the PLL.

>

Oh, and look at your startup code *source listing*, (not the

disassembly) , where the purpose of the loop should be commented.

Rgds,

Martin
















You cannot use the header files you are using for the 214x for the 24xx
although
most registers have the same name they are sometimes located at a
different address.

NXP has a bundle of sample code for the 23xx/24xx i suggest you download
that
from their site and work from there.

--Ray

Cool Dude wrote:
>
> hello Martin,
> You were rite. I was able to rectify the problem. (R0_0x08) pointed to
> PLLSTAT register. It was supposed to point to the PLLLOCK bit which
> would get set after the PLL gets stable. In LPC214x PLLLOCK bit is
> the 10bit but in LPC2468 is the 26th bit. Did changes accordingly and
> it started working on the simulater. Thanks for that. But now the
> problem is that i cannot get it working in my board. Guess there are
> some more configurations to be made.
> Raj
>
> --- On Mon, 10/27/08, mjames_doveridge > > wrote:
> From: mjames_doveridge >
> Subject: [lpc2000] Re: Startup code working with lpc214x and not with
> lpc2468
> To: l...
> Date: Monday, October 27, 2008, 1:36 PM
>
> > > Read the above again. Then get the register values, esp. R0. Compare
>
> > the R0 value against the register map of both processors in the user
>
> > manuals. You might want to start with the section on the PLL.
>
> > Oh, and look at your startup code *source listing*, (not the
>
> disassembly) , where the purpose of the loop should be commented.
>
> Rgds,
>
> Martin
>
>
>
>

Hey i got that board working using GNU compiler of Keil. Had to do more of changes with the startup code. The PLL configuration of LPC2468 is slightly different from the LPC214x series. Thanks to everyone who helped me.

Raj

--- On Mon, 10/27/08, Ray Molenkamp wrote:
From: Ray Molenkamp
Subject: Re: [lpc2000] Re: Startup code working with lpc214x and not with lpc2468
To: l...
Date: Monday, October 27, 2008, 8:03 PM


You cannot use the header files you are using for the 214x for the 24xx

although

most registers have the same name they are sometimes located at a

different address.

NXP has a bundle of sample code for the 23xx/24xx i suggest you download

that

from their site and work from there.

--Ray

Cool Dude wrote:

>

> hello Martin,

> You were rite. I was able to rectify the problem. (R0_0x08) pointed to

> PLLSTAT register. It was supposed to point to the PLLLOCK bit which

> would get set after the PLL gets stable. In LPC214x PLLLOCK bit is

> the 10bit but in LPC2468 is the 26th bit. Did changes accordingly and

> it started working on the simulater. Thanks for that. But now the

> problem is that i cannot get it working in my board. Guess there are

> some more configurations to be made.

> Raj

>

> --- On Mon, 10/27/08, mjames_doveridge
> > wrote:

> From: mjames_doveridge >

> Subject: [lpc2000] Re: Startup code working with lpc214x and not with

> lpc2468

> To: lpc2000@yahoogroups .com

> Date: Monday, October 27, 2008, 1:36 PM

>

> >

>

> > Read the above again. Then get the register values, esp. R0. Compare

>

> > the R0 value against the register map of both processors in the user

>

> > manuals. You might want to start with the section on the PLL.

>

> >

>

> Oh, and look at your startup code *source listing*, (not the

>

> disassembly) , where the purpose of the loop should be commented.

>

> Rgds,

>

> Martin

>

>

>

>

>

>

>

>

>

>

>

>

>

>















Hello Ray,Martin,
I tried using interrupt to blink an LED using a timer but the interrupt service routine is not getting serviced. The code is working perfectly with Keil arm compiler.
So it has to work perfectly if the startup for interrupt is configured correctly. Can you help me by giving some checklist that i 've to check in the startup code to get the interrupt serviced.
As of now immediately after after the interrupt is generated(due to timer) the control goes to the begining to the begining of startup code i think because i can see the PLLFEED all getting executed. Why is that.

Raj

--- On Mon, 10/27/08, Ray Molenkamp wrote:
From: Ray Molenkamp
Subject: Re: [lpc2000] Re: Startup code working with lpc214x and not with lpc2468
To: l...
Date: Monday, October 27, 2008, 8:03 PM

You cannot use the header files you are using for the 214x for the 24xx

although

most registers have the same name they are sometimes located at a

different address.

NXP has a bundle of sample code for the 23xx/24xx i suggest you download

that

from their site and work from there.

--Ray

Cool Dude wrote:

>

> hello Martin,

> You were rite. I was able to rectify the problem. (R0_0x08) pointed to

> PLLSTAT register. It was supposed to point to the PLLLOCK bit which

> would get set after the PLL gets stable. In LPC214x PLLLOCK bit is

> the 10bit but in LPC2468 is the 26th bit. Did changes accordingly and

> it started working on the simulater. Thanks for that. But now the

> problem is that i cannot get it working in my board. Guess there are

> some more configurations to be made.

> Raj

>

> --- On Mon, 10/27/08, mjames_doveridge
> > wrote:

> From: mjames_doveridge >

> Subject: [lpc2000] Re: Startup code working with lpc214x and not with

> lpc2468

> To: lpc2000@yahoogroups .com

> Date: Monday, October 27, 2008, 1:36 PM

>

> >

>

> > Read the above again. Then get the register values, esp. R0. Compare

>

> > the R0 value against the register map of both processors in the user

>

> > manuals. You might want to start with the section on the PLL.

>

> >

>

> Oh, and look at your startup code *source listing*, (not the

>

> disassembly) , where the purpose of the loop should be commented.

>

> Rgds,

>

> Martin

>

>

>

>

>

>

>

>

>

>

>

>

>

>


Have you sorted out your startup code issues and compensated
that vicvectaddr is at a different address for the 24xx ?

--Ray

Cool Dude wrote:
>
> Hello Ray,Martin,
> I tried using interrupt to blink an LED using a timer but the
> interrupt service routine is not getting serviced. The code is working
> perfectly with Keil arm compiler.
> So it has to work perfectly if the startup for interrupt is configured
> correctly. Can you help me by giving some checklist that i 've to
> check in the startup code to get the interrupt serviced.
> As of now immediately after after the interrupt is generated(due to
> timer) the control goes to the begining to the begining of startup
> code i think because i can see the PLLFEED all getting executed. Why
> is that.
>
> Raj
>
> --- On Mon, 10/27/08, Ray Molenkamp > > wrote:
> From: Ray Molenkamp > >
> Subject: Re: [lpc2000] Re: Startup code working with lpc214x and not
> with lpc2468
> To: l...
> Date: Monday, October 27, 2008, 8:03 PM
>
> You cannot use the header files you are using for the 214x for the 24xx
>
> although
>
> most registers have the same name they are sometimes located at a
>
> different address.
>
> NXP has a bundle of sample code for the 23xx/24xx i suggest you download
>
> that
>
> from their site and work from there.
>
> --Ray
>
> Cool Dude wrote:
>
> > > hello Martin,
>
> > You were rite. I was able to rectify the problem. (R0_0x08) pointed to
>
> > PLLSTAT register. It was supposed to point to the PLLLOCK bit which
>
> > would get set after the PLL gets stable. In LPC214x PLLLOCK bit is
>
> > the 10bit but in LPC2468 is the 26th bit. Did changes accordingly and
>
> > it started working on the simulater. Thanks for that. But now the
>
> > problem is that i cannot get it working in my board. Guess there are
>
> > some more configurations to be made.
>
> > Raj
>
> > > --- On Mon, 10/27/08, mjames_doveridge >
> > > wrote:
>
> > From: mjames_doveridge > 40tuthill. com>> > Subject: [lpc2000] Re: Startup code working with lpc214x and not with
>
> > lpc2468
>
> > To: lpc2000@yahoogroups .com > Date: Monday, October 27, 2008, 1:36 PM
>
> > > > > > > Read the above again. Then get the register values, esp. R0. Compare
>
> > > > the R0 value against the register map of both processors in the user
>
> > > > manuals. You might want to start with the section on the PLL.
>
> > > > > > Oh, and look at your startup code *source listing*, (not the
>
> > > disassembly) , where the purpose of the loop should be commented.
>
> > > Rgds,
>
> > > Martin
>
> > > > > > > > > > > > >
>
> > >
>
>

Hey Ray,
Thanx.. ISR issue also got solved.:)

Raj

--- On Tue, 10/28/08, Ray Molenkamp wrote:
From: Ray Molenkamp
Subject: Re: [lpc2000] Re: Startup code working with lpc214x and not with lpc2468
To: l...
Date: Tuesday, October 28, 2008, 6:12 PM

Have you sorted out your startup code issues and compensated

that vicvectaddr is at a different address for the 24xx ?

--Ray

Cool Dude wrote:

>

> Hello Ray,Martin,

> I tried using interrupt to blink an LED using a timer but the

> interrupt service routine is not getting serviced. The code is working

> perfectly with Keil arm compiler.

> So it has to work perfectly if the startup for interrupt is configured

> correctly. Can you help me by giving some checklist that i 've to

> check in the startup code to get the interrupt serviced.

> As of now immediately after after the interrupt is generated(due to

> timer) the control goes to the begining to the begining of startup

> code i think because i can see the PLLFEED all getting executed. Why

> is that.

>

> Raj

>

> --- On Mon, 10/27/08, Ray Molenkamp
> > wrote:

> From: Ray Molenkamp
> >

> Subject: Re: [lpc2000] Re: Startup code working with lpc214x and not

> with lpc2468

> To: lpc2000@yahoogroups .com

> Date: Monday, October 27, 2008, 8:03 PM

>

> You cannot use the header files you are using for the 214x for the 24xx

>

> although

>

> most registers have the same name they are sometimes located at a

>

> different address.

>

> NXP has a bundle of sample code for the 23xx/24xx i suggest you download

>

> that

>

> from their site and work from there.

>

> --Ray

>

> Cool Dude wrote:

>

> >

>

> > hello Martin,

>

> > You were rite. I was able to rectify the problem. (R0_0x08) pointed to

>

> > PLLSTAT register. It was supposed to point to the PLLLOCK bit which

>

> > would get set after the PLL gets stable. In LPC214x PLLLOCK bit is

>

> > the 10bit but in LPC2468 is the 26th bit. Did changes accordingly and

>

> > it started working on the simulater. Thanks for that. But now the

>

> > problem is that i cannot get it working in my board. Guess there are

>

> > some more configurations to be made.

>

> > Raj

>

> >

>

> > --- On Mon, 10/27/08, mjames_doveridge
>

> > > wrote:

>

> > From: mjames_doveridge
> 40tuthill. com>>

>

> > Subject: [lpc2000] Re: Startup code working with lpc214x and not with

>

> > lpc2468

>

> > To: lpc2000@yahoogroups .com

>

> > Date: Monday, October 27, 2008, 1:36 PM

>

> >

>

> > >

>

> >

>

> > > Read the above again. Then get the register values, esp. R0. Compare

>

> >

>

> > > the R0 value against the register map of both processors in the user

>

> >

>

> > > manuals. You might want to start with the section on the PLL.

>

> >

>

> > >

>

> >

>

> > Oh, and look at your startup code *source listing*, (not the

>

> >

>

> > disassembly) , where the purpose of the loop should be commented.

>

> >

>

> > Rgds,

>

> >

>

> > Martin

>

> >

>

> >

>

> >

>

> >

>

> >

>

> >

>

> >

>

> >

>

> >

>

> >

>

> >

>

> >

>

> >

>

> >

>

>

>

>

>

>

>

>

>

>

>

>

>

>


Oops sad neews. After changing the value from
LDR PC, [PC, #-0x0FF0] /* Vector from VicVectAddr */
to
LDR PC, [PC, #-0x0120] /* Vector from VicVectAddr */
I got it working in my simulater. but it aint working with my hardware.

Raj

--- On Tue, 10/28/08, Ray Molenkamp wrote:
From: Ray Molenkamp
Subject: Re: [lpc2000] Re: Startup code working with lpc214x and not with lpc2468
To: l...
Date: Tuesday, October 28, 2008, 6:12 PM


Have you sorted out your startup code issues and compensated

that vicvectaddr is at a different address for the 24xx ?

--Ray

Cool Dude wrote:

>

> Hello Ray,Martin,

> I tried using interrupt to blink an LED using a timer but the

> interrupt service routine is not getting serviced. The code is working

> perfectly with Keil arm compiler.

> So it has to work perfectly if the startup for interrupt is configured

> correctly. Can you help me by giving some checklist that i 've to

> check in the startup code to get the interrupt serviced.

> As of now immediately after after the interrupt is generated(due to

> timer) the control goes to the begining to the begining of startup

> code i think because i can see the PLLFEED all getting executed. Why

> is that.

>

> Raj

>

> --- On Mon, 10/27/08, Ray Molenkamp
> > wrote:

> From: Ray Molenkamp
> >

> Subject: Re: [lpc2000] Re: Startup code working with lpc214x and not

> with lpc2468

> To: lpc2000@yahoogroups .com

> Date: Monday, October 27, 2008, 8:03 PM

>

> You cannot use the header files you are using for the 214x for the 24xx

>

> although

>

> most registers have the same name they are sometimes located at a

>

> different address.

>

> NXP has a bundle of sample code for the 23xx/24xx i suggest you download

>

> that

>

> from their site and work from there.

>

> --Ray

>

> Cool Dude wrote:

>

> >

>

> > hello Martin,

>

> > You were rite. I was able to rectify the problem. (R0_0x08) pointed to

>

> > PLLSTAT register. It was supposed to point to the PLLLOCK bit which

>

> > would get set after the PLL gets stable. In LPC214x PLLLOCK bit is

>

> > the 10bit but in LPC2468 is the 26th bit. Did changes accordingly and

>

> > it started working on the simulater. Thanks for that. But now the

>

> > problem is that i cannot get it working in my board. Guess there are

>

> > some more configurations to be made.

>

> > Raj

>

> >

>

> > --- On Mon, 10/27/08, mjames_doveridge
>

> > > wrote:

>

> > From: mjames_doveridge
> 40tuthill. com>>

>

> > Subject: [lpc2000] Re: Startup code working with lpc214x and not with

>

> > lpc2468

>

> > To: lpc2000@yahoogroups .com

>

> > Date: Monday, October 27, 2008, 1:36 PM

>

> >

>

> > >

>

> >

>

> > > Read the above again. Then get the register values, esp. R0. Compare

>

> >

>

> > > the R0 value against the register map of both processors in the user

>

> >

>

> > > manuals. You might want to start with the section on the PLL.

>

> >

>

> > >

>

> >

>

> > Oh, and look at your startup code *source listing*, (not the

>

> >

>

> > disassembly) , where the purpose of the loop should be commented.

>

> >

>

> > Rgds,

>

> >

>

> > Martin

>

> >

>

> >

>

> >

>

> >

>

> >

>

> >

>

> >

>

> >

>

> >

>

> >

>

> >

>

> >

>

> >

>

> >

>

>

>

>

>

>

>

>

>

>

>

>

>

>















That should be -#0x120

--jc

On Tue, Oct 28, 2008 at 10:27 AM, Cool Dude wrote:
> Oops sad neews. After changing the value from
> LDR PC, [PC, #-0x0FF0] /* Vector from VicVectAddr */
> to
> LDR PC, [PC, #-0x0120] /* Vector from VicVectAddr */
> I got it working in my simulater. but it aint working with my hardware.
>
> Raj
>
> --- On Tue, 10/28/08, Ray Molenkamp wrote:
> From: Ray Molenkamp
> Subject: Re: [lpc2000] Re: Startup code working with lpc214x and not with
> lpc2468
> To: l...
> Date: Tuesday, October 28, 2008, 6:12 PM
>
> Have you sorted out your startup code issues and compensated
>
> that vicvectaddr is at a different address for the 24xx ?
>
> --Ray
>
> Cool Dude wrote:
>
>>> Hello Ray,Martin,
>
>> I tried using interrupt to blink an LED using a timer but the
>
>> interrupt service routine is not getting serviced. The code is working
>
>> perfectly with Keil arm compiler.
>
>> So it has to work perfectly if the startup for interrupt is configured
>
>> correctly. Can you help me by giving some checklist that i 've to
>
>> check in the startup code to get the interrupt serviced.
>
>> As of now immediately after after the interrupt is generated(due to
>
>> timer) the control goes to the begining to the begining of startup
>
>> code i think because i can see the PLLFEED all getting executed. Why
>
>> is that.
>
>>> Raj
>
>>> --- On Mon, 10/27/08, Ray Molenkamp >
>> > wrote:
>
>> From: Ray Molenkamp >
>> >> Subject: Re: [lpc2000] Re: Startup code working with lpc214x and not
>
>> with lpc2468
>
>> To: lpc2000@yahoogroups .com > Date: Monday, October 27, 2008, 8:03 PM
>
>>> You cannot use the header files you are using for the 214x for the 24xx
>
>>> although
>
>>> most registers have the same name they are sometimes located at a
>
>>> different address.
>
>>> NXP has a bundle of sample code for the 23xx/24xx i suggest you download
>
>>> that
>
>>> from their site and work from there.
>
>>> --Ray
>
>>> Cool Dude wrote:
>
>>> >>> > hello Martin,
>
>>> > You were rite. I was able to rectify the problem. (R0_0x08) pointed to
>
>>> > PLLSTAT register. It was supposed to point to the PLLLOCK bit which
>
>>> > would get set after the PLL gets stable. In LPC214x PLLLOCK bit is
>
>>> > the 10bit but in LPC2468 is the 26th bit. Did changes accordingly and
>
>>> > it started working on the simulater. Thanks for that. But now the
>
>>> > problem is that i cannot get it working in my board. Guess there are
>
>>> > some more configurations to be made.
>
>>> > Raj
>
>>> >>> > --- On Mon, 10/27/08, mjames_doveridge >
>>> > > wrote:
>
>>> > From: mjames_doveridge >
>> 40tuthill. com>>>> > Subject: [lpc2000] Re: Startup code working with lpc214x and not with
>
>>> > lpc2468
>
>>> > To: lpc2000@yahoogroups .com >> > Date: Monday, October 27, 2008, 1:36 PM
>
>>> >>> > >>> >>> > > Read the above again. Then get the register values, esp. R0. Compare
>
>>> >>> > > the R0 value against the register map of both processors in the user
>
>>> >>> > > manuals. You might want to start with the section on the PLL.
>
>>> >>> > >>> >>> > Oh, and look at your startup code *source listing*, (not the
>
>>> >>> > disassembly) , where the purpose of the loop should be commented.
>
>>> >>> > Rgds,
>
>>> >>> > Martin
>
>>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >
>
>>> >>> >>>>>>>>>>>>>
>
>>>

Dear Jc,
THats exactly what i did. But its working witht he simulator on the PC. But in it is not working with the hardware.

Raj

--- On Tue, 10/28/08, J.C. Wren wrote:
From: J.C. Wren
Subject: Re: [lpc2000] Re: Startup code working with lpc214x and not with lpc2468
To: l...
Date: Tuesday, October 28, 2008, 8:16 PM

That should be -#0x120

--jc

On Tue, Oct 28, 2008 at 10:27 AM, Cool Dude wrote:

> Oops sad neews. After changing the value from

> LDR PC, [PC, #-0x0FF0] /* Vector from VicVectAddr */

> to

> LDR PC, [PC, #-0x0120] /* Vector from VicVectAddr */

> I got it working in my simulater. but it aint working with my hardware.

>

> Raj

>

> --- On Tue, 10/28/08, Ray Molenkamp wrote:

> From: Ray Molenkamp

> Subject: Re: [lpc2000] Re: Startup code working with lpc214x and not with

> lpc2468

> To: lpc2000@yahoogroups .com

> Date: Tuesday, October 28, 2008, 6:12 PM

>

> Have you sorted out your startup code issues and compensated

>

> that vicvectaddr is at a different address for the 24xx ?

>

> --Ray

>

> Cool Dude wrote:

>

>>

>

>> Hello Ray,Martin,

>

>> I tried using interrupt to blink an LED using a timer but the

>

>> interrupt service routine is not getting serviced. The code is working

>

>> perfectly with Keil arm compiler.

>

>> So it has to work perfectly if the startup for interrupt is configured

>

>> correctly. Can you help me by giving some checklist that i 've to

>

>> check in the startup code to get the interrupt serviced.

>

>> As of now immediately after after the interrupt is generated(due to

>

>> timer) the control goes to the begining to the begining of startup

>

>> code i think because i can see the PLLFEED all getting executed. Why

>

>> is that.

>

>>

>

>> Raj

>

>>

>

>> --- On Mon, 10/27/08, Ray Molenkamp
>

>> > wrote:

>

>> From: Ray Molenkamp
>

>> >

>

>> Subject: Re: [lpc2000] Re: Startup code working with lpc214x and not

>

>> with lpc2468

>

>> To: lpc2000@yahoogroups .com

>

>> Date: Monday, October 27, 2008, 8:03 PM

>

>>

>

>> You cannot use the header files you are using for the 214x for the 24xx

>

>>

>

>> although

>

>>

>

>> most registers have the same name they are sometimes located at a

>

>>

>

>> different address.

>

>>

>

>> NXP has a bundle of sample code for the 23xx/24xx i suggest you download

>

>>

>

>> that

>

>>

>

>> from their site and work from there.

>

>>

>

>> --Ray

>

>>

>

>> Cool Dude wrote:

>

>>

>

>> >

>

>>

>

>> > hello Martin,

>

>>

>

>> > You were rite. I was able to rectify the problem. (R0_0x08) pointed to

>

>>

>

>> > PLLSTAT register. It was supposed to point to the PLLLOCK bit which

>

>>

>

>> > would get set after the PLL gets stable. In LPC214x PLLLOCK bit is

>

>>

>

>> > the 10bit but in LPC2468 is the 26th bit. Did changes accordingly and

>

>>

>

>> > it started working on the simulater. Thanks for that. But now the

>

>>

>

>> > problem is that i cannot get it working in my board. Guess there are

>

>>

>

>> > some more configurations to be made.

>

>>

>

>> > Raj

>

>>

>

>> >

>

>>

>

>> > --- On Mon, 10/27/08, mjames_doveridge
>

>>

>

>> > > wrote:

>

>>

>

>> > From: mjames_doveridge
>

>> 40tuthill. com>>

>

>>

>

>> > Subject: [lpc2000] Re: Startup code working with lpc214x and not with

>

>>

>

>> > lpc2468

>

>>

>

>> > To: lpc2000@yahoogroups .com

>

>>

>

>> > Date: Monday, October 27, 2008, 1:36 PM

>

>>

>

>> >

>

>>

>

>> > >

>

>>

>

>> >

>

>>

>

>> > > Read the above again. Then get the register values, esp. R0. Compare

>

>>

>

>> >

>

>>

>

>> > > the R0 value against the register map of both processors in the user

>

>>

>

>> >

>

>>

>

>> > > manuals. You might want to start with the section on the PLL.

>

>>

>

>> >

>

>>

>

>> > >

>

>>

>

>> >

>

>>

>

>> > Oh, and look at your startup code *source listing*, (not the

>

>>

>

>> >

>

>>

>

>> > disassembly) , where the purpose of the loop should be commented.

>

>>

>

>> >

>

>>

>

>> > Rgds,

>

>>

>

>> >

>

>>

>

>> > Martin

>

>>

>

>> >

>

>>

>

>> >

>

>>

>

>> >

>

>>

>

>> >

>

>>

>

>> >

>

>>

>

>> >

>

>>

>

>> >

>

>>

>

>> >

>

>>

>

>> >

>

>>

>

>> >

>

>>

>

>> >

>

>>

>

>> >

>

>>

>

>> >

>

>>

>

>> >

>

>>

>

>>

>

>>

>

>>

>

>>

>

>>

>

>>

>

>>

>

>>

>

>>

>

>>

>

>>

>

>>

>

>>

>

>

>

>

>

>

>

>

>

>

>

>

>

>