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
Question to ethernet
Moderators: RoccoMarco, lbednarz, tfAteba
- 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
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
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
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
~ Tectu
- 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
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
Giovanni