Is here anyone who had made a working mac driver for the Olimex LPC2378?
In the last 2 weeks, i have edit the lwip project download from this
website. But this project is ported for another PHY chip.
I change it to my micrel PHY chip, but nothing seems to work.
I made a ARP packet by hand to test if my MAC + PHY is working.
But I see nothing on wireshark.
lwIP on LPC2378 board Olimex
Started by ●December 15, 2008
Reply by ●December 15, 20082008-12-15
fretkroket wrote:
e-mail sent with zip file, good luck with it. :-)
> Is here anyone who had made a working mac driver for the Olimex
> LPC2378? In the last 2 weeks, i have edit the lwip project download
> from this website. But this project is ported for another PHY chip.
>
> I change it to my micrel PHY chip, but nothing seems to work.
> I made a ARP packet by hand to test if my MAC + PHY is working.
> But I see nothing on wireshark.
>
>
>
e-mail sent with zip file, good luck with it. :-)
> Is here anyone who had made a working mac driver for the Olimex
> LPC2378? In the last 2 weeks, i have edit the lwip project download
> from this website. But this project is ported for another PHY chip.
>
> I change it to my micrel PHY chip, but nothing seems to work.
> I made a ARP packet by hand to test if my MAC + PHY is working.
> But I see nothing on wireshark.
>
>
>
Reply by ●December 15, 20082008-12-15
Dear michael,
thanx for your ethernet code.
Are you sure this is the final code for the lpc2378-STK board?
I'm using the board without the LCD, the olimex lpc-p2378.
The default address of the Micrel PHY chip is 0x00001 (see datasheet)
But you are using #define DP83848C_DEF_ADR 0x0100 /* Default PHY device address */
So I was wondering if this was the working code.
In that case, you had another PHY chip or the PHY address pins are different from the older olimex boards
Willem
________________________________
From: michael brown
To: l...
Sent: Monday, December 15, 2008 3:48:09 PM
Subject: Re: [lpc2000] lwIP on LPC2378 board Olimex
fretkroket wrote:
e-mail sent with zip file, good luck with it. :-)
> Is here anyone who had made a working mac driver for the Olimex
> LPC2378? In the last 2 weeks, i have edit the lwip project download
> from this website. But this project is ported for another PHY chip.
>
> I change it to my micrel PHY chip, but nothing seems to work.
> I made a ARP packet by hand to test if my MAC + PHY is working.
> But I see nothing on wireshark.
>
>
> ------------ --------- --------- ------
thanx for your ethernet code.
Are you sure this is the final code for the lpc2378-STK board?
I'm using the board without the LCD, the olimex lpc-p2378.
The default address of the Micrel PHY chip is 0x00001 (see datasheet)
But you are using #define DP83848C_DEF_ADR 0x0100 /* Default PHY device address */
So I was wondering if this was the working code.
In that case, you had another PHY chip or the PHY address pins are different from the older olimex boards
Willem
________________________________
From: michael brown
To: l...
Sent: Monday, December 15, 2008 3:48:09 PM
Subject: Re: [lpc2000] lwIP on LPC2378 board Olimex
fretkroket wrote:
e-mail sent with zip file, good luck with it. :-)
> Is here anyone who had made a working mac driver for the Olimex
> LPC2378? In the last 2 weeks, i have edit the lwip project download
> from this website. But this project is ported for another PHY chip.
>
> I change it to my micrel PHY chip, but nothing seems to work.
> I made a ARP packet by hand to test if my MAC + PHY is working.
> But I see nothing on wireshark.
>
>
> ------------ --------- --------- ------
Reply by ●December 15, 20082008-12-15
Piet Friet wrote:
> Dear michael,
>
> thanx for your ethernet code.
> Are you sure this is the final code for the lpc2378-STK board?
> I'm using the board without the LCD, the olimex lpc-p2378.
> The default address of the Micrel PHY chip is 0x00001 (see datasheet)
> But you are using #define DP83848C_DEF_ADR 0x0100 /* Default
> PHY device address */
> So I was wondering if this was the working code.
> In that case, you had another PHY chip or the PHY address pins are
> different from the older olimex boards
It worked on my board. That address gets bit-wise ORd with the phy register
number, so perhaps that explains it. AIUI, 0x0100 would be phy 1 register
0. I did not write most of the code, and it's been a year since I played
with it. IIRC, there is ERRATA info on the 2378 with regards to the buffer
setup (number of descriptors).
> Dear michael,
>
> thanx for your ethernet code.
> Are you sure this is the final code for the lpc2378-STK board?
> I'm using the board without the LCD, the olimex lpc-p2378.
> The default address of the Micrel PHY chip is 0x00001 (see datasheet)
> But you are using #define DP83848C_DEF_ADR 0x0100 /* Default
> PHY device address */
> So I was wondering if this was the working code.
> In that case, you had another PHY chip or the PHY address pins are
> different from the older olimex boards
It worked on my board. That address gets bit-wise ORd with the phy register
number, so perhaps that explains it. AIUI, 0x0100 would be phy 1 register
0. I did not write most of the code, and it's been a year since I played
with it. IIRC, there is ERRATA info on the 2378 with regards to the buffer
setup (number of descriptors).
Reply by ●December 17, 20082008-12-17
michael brown wrote:
> Piet Friet wrote:
>> Dear michael,
>>
>> thanx for your ethernet code.
>> Are you sure this is the final code for the lpc2378-STK board?
>> I'm using the board without the LCD, the olimex lpc-p2378.
>> The default address of the Micrel PHY chip is 0x00001 (see datasheet)
>> But you are using #define DP83848C_DEF_ADR 0x0100 /* Default
>> PHY device address */
>> So I was wondering if this was the working code.
>> In that case, you had another PHY chip or the PHY address pins are
>> different from the older olimex boards
>
> It worked on my board. That address gets bit-wise ORd with the phy
> register number, so perhaps that explains it. AIUI, 0x0100 would be
> phy 1 register
> 0. I did not write most of the code, and it's been a year since I
> played with it. IIRC, there is ERRATA info on the 2378 with regards
> to the buffer setup (number of descriptors).
To follow up, I did a "make clean" followed by "make" to rebuild it all. I
then tested it with my board and it works just like it should. I could ping
the board with no problems. That particular #define came from the sample
code I hacked up.
> Piet Friet wrote:
>> Dear michael,
>>
>> thanx for your ethernet code.
>> Are you sure this is the final code for the lpc2378-STK board?
>> I'm using the board without the LCD, the olimex lpc-p2378.
>> The default address of the Micrel PHY chip is 0x00001 (see datasheet)
>> But you are using #define DP83848C_DEF_ADR 0x0100 /* Default
>> PHY device address */
>> So I was wondering if this was the working code.
>> In that case, you had another PHY chip or the PHY address pins are
>> different from the older olimex boards
>
> It worked on my board. That address gets bit-wise ORd with the phy
> register number, so perhaps that explains it. AIUI, 0x0100 would be
> phy 1 register
> 0. I did not write most of the code, and it's been a year since I
> played with it. IIRC, there is ERRATA info on the 2378 with regards
> to the buffer setup (number of descriptors).
To follow up, I did a "make clean" followed by "make" to rebuild it all. I
then tested it with my board and it works just like it should. I could ping
the board with no problems. That particular #define came from the sample
code I hacked up.
Reply by ●December 18, 20082008-12-18
Michael,
Could you send me a copy as well?
Many thanks in advance.
Dave
--- In l..., "michael brown" wrote:
>
> fretkroket wrote:
>
> e-mail sent with zip file, good luck with it. :-)
>
> > Is here anyone who had made a working mac driver for the Olimex
> > LPC2378? In the last 2 weeks, i have edit the lwip project
download
> > from this website. But this project is ported for another PHY
chip.
> >
> > I change it to my micrel PHY chip, but nothing seems to work.
> > I made a ARP packet by hand to test if my MAC + PHY is working.
> > But I see nothing on wireshark.
> >
> >
> >
> >
> >
> >
> >
Could you send me a copy as well?
Many thanks in advance.
Dave
--- In l..., "michael brown" wrote:
>
> fretkroket wrote:
>
> e-mail sent with zip file, good luck with it. :-)
>
> > Is here anyone who had made a working mac driver for the Olimex
> > LPC2378? In the last 2 weeks, i have edit the lwip project
download
> > from this website. But this project is ported for another PHY
chip.
> >
> > I change it to my micrel PHY chip, but nothing seems to work.
> > I made a ARP packet by hand to test if my MAC + PHY is working.
> > But I see nothing on wireshark.
> >
> >
> >
> >
> >
> >
> >
Reply by ●December 19, 20082008-12-19
Would you please send me a copy of your file too?
I am using the LPC2468-16 OEM Board from EA which has the Micrel PHY
KSZ8001L. I hope your code could ease my efforts to get it running.
Thank you.
Henry
--- In l..., "michael brown" wrote:
>
> fretkroket wrote:
>
> e-mail sent with zip file, good luck with it. :-)
>
> > Is here anyone who had made a working mac driver for the Olimex
> > LPC2378? In the last 2 weeks, i have edit the lwip project download
> > from this website. But this project is ported for another PHY chip.
> >
> > I change it to my micrel PHY chip, but nothing seems to work.
> > I made a ARP packet by hand to test if my MAC + PHY is working.
> > But I see nothing on wireshark.
> >
> >
> >
> >
> >
> >
> >
I am using the LPC2468-16 OEM Board from EA which has the Micrel PHY
KSZ8001L. I hope your code could ease my efforts to get it running.
Thank you.
Henry
--- In l..., "michael brown" wrote:
>
> fretkroket wrote:
>
> e-mail sent with zip file, good luck with it. :-)
>
> > Is here anyone who had made a working mac driver for the Olimex
> > LPC2378? In the last 2 weeks, i have edit the lwip project download
> > from this website. But this project is ported for another PHY chip.
> >
> > I change it to my micrel PHY chip, but nothing seems to work.
> > I made a ARP packet by hand to test if my MAC + PHY is working.
> > But I see nothing on wireshark.
> >
> >
> >
> >
> >
> >
> >
Reply by ●December 19, 20082008-12-19
NilKrokodil wrote:
> Michael,
>
> I would be very interested in that file as well.
Man, I sure didn't expect that much interest in some junk code. ;-)
Warning: This code is not even close to production quality, it's just some
stuff that I got to work at home. I didn't write most of it; it came from a
Keil example IIRC. It doesn't handle having the network cable plugged in
after initialization since it wants to negotiate with the hub during init.
I uploaded it to the files section:
http://groups.yahoo.com/group/lpc2000/files/LPC23XX/enet.zip
> Michael,
>
> I would be very interested in that file as well.
Man, I sure didn't expect that much interest in some junk code. ;-)
Warning: This code is not even close to production quality, it's just some
stuff that I got to work at home. I didn't write most of it; it came from a
Keil example IIRC. It doesn't handle having the network cable plugged in
after initialization since it wants to negotiate with the hub during init.
I uploaded it to the files section:
http://groups.yahoo.com/group/lpc2000/files/LPC23XX/enet.zip
Reply by ●December 20, 20082008-12-20
Thanks very much :)
----- Original Message -----
From: michael brown
To: l...
Sent: Friday, December 19, 2008 4:09 PM
Subject: Re: [lpc2000] lwIP on LPC2378 board Olimex
NilKrokodil wrote:
> Michael,
>
> I would be very interested in that file as well.
Man, I sure didn't expect that much interest in some junk code. ;-)
Warning: This code is not even close to production quality, it's just some
stuff that I got to work at home. I didn't write most of it; it came from a
Keil example IIRC. It doesn't handle having the network cable plugged in
after initialization since it wants to negotiate with the hub during init.
I uploaded it to the files section:
http://groups.yahoo.com/group/lpc2000/files/LPC23XX/enet.zip
----- Original Message -----
From: michael brown
To: l...
Sent: Friday, December 19, 2008 4:09 PM
Subject: Re: [lpc2000] lwIP on LPC2378 board Olimex
NilKrokodil wrote:
> Michael,
>
> I would be very interested in that file as well.
Man, I sure didn't expect that much interest in some junk code. ;-)
Warning: This code is not even close to production quality, it's just some
stuff that I got to work at home. I didn't write most of it; it came from a
Keil example IIRC. It doesn't handle having the network cable plugged in
after initialization since it wants to negotiate with the hub during init.
I uploaded it to the files section:
http://groups.yahoo.com/group/lpc2000/files/LPC23XX/enet.zip