Hello All,

I want to implement the ethernet driver for ENC28j60 SPI ethernet
controller used for debug ethernet services in windows CE.
I am going through the code provided by microchip for ENC28j60 SPI
ethernet controller, it is not much related to the function pointers
which i need to implement for debug ethernet services for windows CE.
If any one used the SPI Ethernet controller can give me ideas to
implement the same.
or point to some documentation on how to proceed with this controller
to implement the debug ethernet services.

Thanks in advance.

Kumar.

Re: ENC28j60 SPI Ethernet controller by Joel

Joel
Sat Apr 12 22:55:19 PDT 2008

You can implement as polled or interrupt. Start with polled. Pick
code from another BSP that uses similar register scheme to use as a
starting point. You will want/need to think through all of the code.

The fundamental difference with your part is that the physical link is
SPI, opposed to direct memory. I would abstract the SPI I/O layer,
and keep general code for the register scheme.

Start simple then expand to complex. Build, test, build.

=46rom what I recall this part consumes a whole lot of current.


Joel


On Apr 11, 5:33=A0am, seshu <seshucheruk...@gmail.com> wrote:
> Hello All,
>
> I want to implement the ethernet driver for ENC28j60 SPI ethernet
> controller used for debug ethernet services in windows CE.
> I am going through the code provided by microchip for ENC28j60 SPI
> ethernet controller, it is not much related to the function pointers
> which i need to implement for debug ethernet services for windows CE.
> If any one used the SPI Ethernet controller can give me ideas to
> implement the same.
> or point to some documentation on how to proceed with this controller
> to implement the debug ethernet services.
>
> Thanks in advance.
>
> Kumar.


Re: ENC28j60 SPI Ethernet controller by seshu

seshu
Sun Apr 13 23:32:33 PDT 2008


Thanks Joel,

Now i will look in to this,
I already downloaded the source code for ENC28j60 spi ethernet
controller code from microchip site.
Can i take this for reference and modify it.

I am afraid, to get any other platform source code to get for SPI
ethernet register scheme.
can you suggest if any default BSPs included by microsoft had the same
register scheme.

Seshu


Re: ENC28j60 SPI Ethernet controller by Joel

Joel
Mon Apr 14 12:48:51 PDT 2008

The BSP (bootloader/NDIS) code should be based off the framework of
another BSP. Pick one.

1. Start with SPI communication layer. Write simple code to test I/O
with part. For instance read values and expect to see power on
default numbers. Start with polled code, then introduce interrupt
code later.
2. Once you can read and write via SPI to E-MAC then focus on
Ethernet layer.
3. Look at other BSPs for a framework you like. This is entirely up
to you.
4. Bootloader code is non-NDIS, while kernel driver is NDIS based.

The code from Microchip is what gets implemented in the BSP framework.

Keep in mind if you have never attempted this before, this is not a
trivial task. If it is your first attempt be sure to allocate a fair
amount of time to study and experiment.

Standard practice is to use an E-MAC for which a driver already
exists.


Good luck,
Joel


On Apr 13, 11:32=A0pm, seshu <seshucheruk...@gmail.com> wrote:
> Thanks Joel,
>
> Now i will look in to this,
> I already downloaded the source code for ENC28j60 spi ethernet
> controller code from microchip site.
> Can i take this for reference and modify it.
>
> I am afraid, to get any other platform source code to get for SPI
> ethernet register scheme.
> can you suggest if any default BSPs included by microsoft had the same
> register scheme.
>
> Seshu


Re: ENC28j60 SPI Ethernet controller by seshu

seshu
Thu Apr 17 08:03:51 PDT 2008

Hi Joel,

Here, i have successfully done with the SPI communication layer. and
check with the I/O.
successful with the ESTAT read and checked the CLKRDY bit set.
Now i can successfully communicate to ENC28J60.'

From here on i referred the MACInit initialization code steps of
enc28j60.c provided by microchip. and configuring the sequence step by
step via SPI lines.

but going thru the microchip code, the configuration for some
registers looks differently.

Is there any thing i have take care, or can you suggest me how to
configure the MAC layer.

Thank you very much.

Regards,
kumar.


Re: ENC28j60 SPI Ethernet controller by seshu

seshu
Mon Apr 21 07:35:39 PDT 2008

On Apr 17, 6:03 pm, seshu <seshucheruk...@gmail.com> wrote:
> Hi Joel,
>
> Here, i have successfully done with theSPIcommunication layer. and
> check with the I/O.
> successful with the ESTAT read and checked the CLKRDY bit set.
> Now i can successfully communicate toENC28J60.'
>
> From here on i referred the MACInit initialization code steps ofenc28j60.c provided by microchip. and configuring the sequence step by
> step viaSPIlines.
>
> but going thru the microchip code, the configuration for some
> registers looks differently.
>
> Is there any thing i have take care, or can you suggest me how to
> configure the MAC layer.
>
> Thank you very much.
>
> Regards,
> kumar.

Hi Joel,

I have successfully configured the ethernet send and receive packets
functionality.

and also i tried to start ethernet download of my image.
I can see the SEND BOOT ME 255.255.255.255 polling from my device
every time.

But, when i start my platform builder and trying to see my device, i
cannot get the name.
Please let me know is any thing i am missing.

OR, how to confirm my OEMEthGetFrame and OEMEthSendFrame functions are
working properly.

Thanks a lot for your support.

Regards,
Seshu

Re: ENC28j60 SPI Ethernet controller by seshu

seshu
Tue May 13 05:20:37 PDT 2008

On Apr 21, 5:35 pm, seshu <seshucheruk...@gmail.com> wrote:
> On Apr 17, 6:03 pm, seshu <seshucheruk...@gmail.com> wrote:
>
>
>
> > Hi Joel,
>
> > Here, i have successfully done with theSPIcommunication layer. and
> > check with the I/O.
> > successful with the ESTAT read and checked the CLKRDY bit set.
> > Now i can successfully communicate toENC28J60.'
>
> > From here on i referred the MACInit initialization code steps ofenc28j60.c provided by microchip. and configuring the sequence step by
> > step viaSPIlines.
>
> > but going thru the microchip code, the configuration for some
> > registers looks differently.
>
> > Is there any thing i have take care, or can you suggest me how to
> > configure the MAC layer.
>
> > Thank you very much.
>
> > Regards,
> > kumar.
>
> Hi Joel,
>
> I have successfully configured theethernetsend and receive packets
> functionality.
>
> and also i tried to startethernetdownload of my image.
> I can see the SEND BOOT ME 255.255.255.255 polling from my device
> every time.
>
> But, when i start my platform builder and trying to see my device, i
> cannot get the name.
> Please let me know is any thing i am missing.
>
> OR, how to confirm my OEMEthGetFrame and OEMEthSendFrame functions are
> working properly.
>
> Thanks a lot for your support.
>
> Regards,
> Seshu

Hi,

I am successful with the OEMthSendFrame functionality.
My device name is appeared in the platform builder and selected the
deviced and start attach the device.
After that failed in receiving.
my hyperterminal windows shows that duplicate ip address detected.
I think my get frames functionality is doing wrong.
Please let me know if you got any ideas with this.

Thanks,
kumar