Discussion group dedicated to the Philips LPC2000 family of ARM MCUs
ARM LPC2388 - Ethernet - ansarizafar - Jun 6 7:26:36 2008
Hi All,
I have LPC2388 board with design same as Keil's MCB2300. I am using
PHY DP83848C for ethernet & Keil IDE. I am using the sample ethernet
driver code provided by Keil (LPC23_EMAC.h & LPC23_EMAC.c).
I am able to run code in my processor, it initializes Ethernet & Link
LED activates, but after sometime (approx 15-20 sec) system starts
rebooting periodically & Link LED goes off.
I am not calling any Ethernet related function in my super loop (while
(1)), except init_ethernet() called once.
can anybody suggets me why system is rebooting.
Thanks
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )
Re: ARM LPC2388 - Ethernet - Foltos - Jun 6 7:30:11 2008
Hi,
watchdog?
Foltos
ansarizafar wrote:
> Hi All,
>
> I have LPC2388 board with design same as Keil's MCB2300. I am using
> PHY DP83848C for ethernet & Keil IDE. I am using the sample ethernet
> driver code provided by Keil (LPC23_EMAC.h & LPC23_EMAC.c).
>
> I am able to run code in my processor, it initializes Ethernet & Link
> LED activates, but after sometime (approx 15-20 sec) system starts
> rebooting periodically & Link LED goes off.
>
> I am not calling any Ethernet related function in my super loop (while
> (1)), except init_ethernet() called once.
> can anybody suggets me why system is rebooting.
>
> Thanks
> ------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )
Re: ARM LPC2388 - Ethernet - ansarizafar - Jun 6 8:12:18 2008
Watch dog is currently disabled.
--- In l...@yahoogroups.com, Foltos
wrote:
>
> Hi,
>
> watchdog?
>
> Foltos
>
> ansarizafar wrote:
> > Hi All,
> >
> > I have LPC2388 board with design same as Keil's MCB2300. I am
using
> > PHY DP83848C for ethernet & Keil IDE. I am using the sample
ethernet
> > driver code provided by Keil (LPC23_EMAC.h & LPC23_EMAC.c).
> >
> > I am able to run code in my processor, it initializes Ethernet &
Link
> > LED activates, but after sometime (approx 15-20 sec) system
starts
> > rebooting periodically & Link LED goes off.
> >
> > I am not calling any Ethernet related function in my super loop
(while
> > (1)), except init_ethernet() called once.
> >
> >
> > can anybody suggets me why system is rebooting.
> >
> > Thanks
> >
> >
> > ------------------------------------
> >
> >

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: ARM LPC2388 - Ethernet - Markus Zingg - Jun 6 8:45:11 2008
Could it be that the init function enables some (in your code)
unexisting irq routine that gets called whenever a packet arrives which
then leads to the reboot? A bug in said IRQ routine (provided you have one)?
My 2¢ of course
Markus
ansarizafar schrieb:
>
> Hi All,
>
> I have LPC2388 board with design same as Keil's MCB2300. I am using
> PHY DP83848C for ethernet & Keil IDE. I am using the sample ethernet
> driver code provided by Keil (LPC23_EMAC.h & LPC23_EMAC.c).
>
> I am able to run code in my processor, it initializes Ethernet & Link
> LED activates, but after sometime (approx 15-20 sec) system starts
> rebooting periodically & Link LED goes off.
>
> I am not calling any Ethernet related function in my super loop (while
> (1)), except init_ethernet() called once.
>
> can anybody suggets me why system is rebooting.
>
> Thanks
>
>
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )
Re: ARM LPC2388 - Ethernet - Jorge - Jun 6 15:21:59 2008
Hi Markus,=0D
=0D
First you need to check what is the source of the reset. You can do this=0D
by adding some code at the beginning of your main function. =0D
Then you'll be able to tell if it's a external reset, watchdog reset, or=0D
any other reason. =0D
=0D
Rebooting - which is related (mainly but not only) to restarting CPU - =0D
shouldn't be affected by any problems in the ethernet controller domain, =
=0D
unless of course due to the memory exception conditions (reading or =0D
writing non-existent registers of the MAC controller). However this would=
=0D
lead you to an abort vector, and not to the reset vector (verify if they
point=0D
to the same reset routine..)=0D
=0D
So it must be related to some bug in your code, watchdog, or even=0D
power bouncing due to phy activity. Although because you mentioned =0D
that this is systematic (15~20 secs), I more likely to think that this coul=
d
=0D
be a bug in the firmware.=0D
=0D
Regards,=0D
Jorge.=0D
=0D
-------Original Message-------=0D
=0D
From: Markus Zingg=0D
Date: 6/6/2008 7:45=0D
To: l...@yahoogroups.com=0D
Subject: Re: [lpc2000] ARM LPC2388 - Ethernet=0D
=0D
Could it be that the init function enables some (in your code) =0D
unexisting irq routine that gets called whenever a packet arrives which =0D
then leads to the reboot? A bug in said IRQ routine (provided you have one)=
?=0D
=0D
My 2=A2 of course=0D
=0D
Markus=0D
=0D
ansarizafar schrieb:=0D
>=0D
> Hi All,=0D
>=0D
> I have LPC2388 board with design same as Keil's MCB2300. I am using=0D
> PHY DP83848C for ethernet & Keil IDE. I am using the sample ethernet=0D
> driver code provided by Keil (LPC23_EMAC.h & LPC23_EMAC.c).=0D
>=0D
> I am able to run code in my processor, it initializes Ethernet & Link=0D
> LED activates, but after sometime (approx 15-20 sec) system starts=0D
> rebooting periodically & Link LED goes off.=0D
>=0D
> I am not calling any Ethernet related function in my super loop (while=0D
> (1)), except init_ethernet() called once.=0D
>=0D
> can anybody suggets me why system is rebooting.=0D
>=0D
> Thanks=0D
>=0D
> =0D
=0D
=0D
=0D
=20
[Non-text portions of this message have been removed]
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )
Re: ARM LPC2388 - Ethernet - gussabina - Jun 7 13:42:03 2008
Hi:
Can you disable the Ethernet receiver? After that, if you still=20
having the reset, it would be a different thing...
I thing as soon as you initialize the ethernet interface, you could=20
start receiving packets and if the code is not handling this, you=20
could be finishing in some kind of problem...
Regards;
Gus
--- In l...@yahoogroups.com, "Jorge"
wrote:
>
> Hi Markus,
>=20
> First you need to check what is the source of the reset. You can=20
do this
> by adding some code at the beginning of your main function.=20
> Then you'll be able to tell if it's a external reset, watchdog=20
reset, or
> any other reason.=20
>=20
> Rebooting - which is related (mainly but not only) to restarting=20
CPU -=20
> shouldn't be affected by any problems in the ethernet controller=20
domain,=20
> unless of course due to the memory exception conditions (reading=20
or=20
> writing non-existent registers of the MAC controller). However=20
this would
> lead you to an abort vector, and not to the reset vector (verify=20
if they
> point
> to the same reset routine..)
>=20
> So it must be related to some bug in your code, watchdog, or even
> power bouncing due to phy activity. Although because you mentioned=20
> that this is systematic (15~20 secs), I more likely to think that=20
this could
>=20
> be a bug in the firmware.
>=20
> Regards,
> Jorge.
>=20=20
> -------Original Message-------
>=20=20
> From: Markus Zingg
> Date: 6/6/2008 7:45
> To: l...@yahoogroups.com
> Subject: Re: [lpc2000] ARM LPC2388 - Ethernet
>=20=20
> Could it be that the init function enables some (in your code)=20
> unexisting irq routine that gets called whenever a packet arrives=20
which=20
> then leads to the reboot? A bug in said IRQ routine (provided you=20
have one)?
>=20
> My 2=A2 of course
>=20
> Markus
>=20
> ansarizafar schrieb:
> >
> > Hi All,
> >
> > I have LPC2388 board with design same as Keil's MCB2300. I am=20
using
> > PHY DP83848C for ethernet & Keil IDE. I am using the sample=20
ethernet
> > driver code provided by Keil (LPC23_EMAC.h & LPC23_EMAC.c).
> >
> > I am able to run code in my processor, it initializes Ethernet &=20
Link
> > LED activates, but after sometime (approx 15-20 sec) system=20
starts
> > rebooting periodically & Link LED goes off.
> >
> > I am not calling any Ethernet related function in my super loop=20
(while
> > (1)), except init_ethernet() called once.
> >
> > can anybody suggets me why system is rebooting.
> >
> > Thanks
> >
> >=20
>=20
>=20
>=20=20
>=20=20
>=20
> [Non-text portions of this message have been removed]
>
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: Re: ARM LPC2388 - Ethernet - Mike Harrison - Jun 7 14:17:41 2008
>> > Hi All,
>> >
>> > I have LPC2388 board with design same as Keil's MCB2300. I am
>using
>> > PHY DP83848C for ethernet & Keil IDE. I am using the sample
>ethernet
>> > driver code provided by Keil (LPC23_EMAC.h & LPC23_EMAC.c).
>> >
>> > I am able to run code in my processor, it initializes Ethernet &
>Link
>> > LED activates, but after sometime (approx 15-20 sec) system
>starts
>> > rebooting periodically & Link LED goes off.
>> >
>> > I am not calling any Ethernet related function in my super loop
>(while
>> > (1)), except init_ethernet() called once.
Not sure if these apply applies to this part, but causes of this on some other parts can
be :
Unexpected interrupts - where does the unexpected interrupt vector point to? If zero, try
pointing
it to an infinite loop ( with watchdog reset if enabled) & see if this changes anything.
Watchdog, in particular accessing other IO in between the WDT feed sequence ( as NOT
documented in
the UMs I've read) - if you are not disabling ints when feeding the WDT this may be the
problem. Try
disabling the WDT to see if this is the source of the reset.
Stack overflow - pulling garbage off the stack and jumping into the weeds.
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )