Page 1 of 1

Question to ethernet

Posted: Sat Jun 09, 2012 11:25 am
by Tectu
Hello Folks,

Okay, it seems like I do have a few problems, understanding "how ethernet works".
I have a development board with an STM32F103VET on it and a RJ45 Plug. I know that the F103 does have some ethernet and MAC "support", but I am never sure how this works. From the AVR side, I know that you can use external drivers which you can connect over SPI to your controller. On my developmenboard, there's a ENC28J60 on it, conntected to the F103 over SPI1. Is this just the PHY, or does it also do the MAC and other ethernet stuff?

Is there some very basic example, how to use the ENC28J60 (or similar) chip to interface an STM32 to a network under ChibiOS?


Thanks for your help!

~ Tectu

Re: Question to ethernet

Posted: Sat Jun 09, 2012 11:41 am
by Giovanni
Hi,

The STM32F103 does not have built-in Ethernet support. You board has an external controller connected to an SPI. Other STM32s have built-in controllers: F107, F20x, F40x.

An ENC28J60 driver is not yet included in ChibiOS.

Giovanni

Re: Question to ethernet

Posted: Sat Jun 09, 2012 11:43 am
by Tectu
But do I still need to use the MAC driver etc, or can I just somehow send the ENC something like "send: "Hello World!" ?


~ Tectu

Re: Question to ethernet

Posted: Sat Jun 09, 2012 11:56 am
by Giovanni
You need a low level implementation of the MAC driver for the ENC28J60 however using Ethernet is not as simple as sending an "Hello World", you need to setup the whole TCP/IP stack in order to do anything, the MAC driver is just a small part of that.

Giovanni

Re: Question to ethernet

Posted: Sat Jun 09, 2012 12:01 pm
by Tectu
Okay, this fully answers my question. Thanks for your help :)


~ Tectu