Question to ethernet

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
User avatar
Tectu
Posts: 1225
Joined: Thu May 10, 2012 9:50 am

Question to ethernet

Post 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
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Question to ethernet

Post 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
User avatar
Tectu
Posts: 1225
Joined: Thu May 10, 2012 9:50 am

Re: Question to ethernet

Post 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
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Question to ethernet

Post 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
User avatar
Tectu
Posts: 1225
Joined: Thu May 10, 2012 9:50 am

Re: Question to ethernet

Post by Tectu »

Okay, this fully answers my question. Thanks for your help :)


~ Tectu
Post Reply