cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure STM32F407VG using Ethernet in ENC28J60

ggowd.1
Associate III

Hi Team,

where we are trying interface ENC28J60 in STM32F407VG Microcontroller to use Ethernet, Is there any procedure to create a project in cube ide are any link related to this board how to interface ENC28J60 to STM controller.

Best Regards,
Gagan Gowda 

7 REPLIES 7
SofLit
ST Employee

Hello,

ENC28J60 is an ETH/SPI interface as per its datasheet description. So all you need is to read its datasheet (timing/commands) and configure the SPI in CubeMx accordingly.

You can inspire from any example after googling "ENC28J60+STM32" like this one:

https://github.com/microtechnics-main/stm32-ethernet-1-enc28j60

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Hi  SofLit,

 

We have to use SPI to configure ENC28J60, In ioc file we have configure lwip and ethernet to use this module.

Best Regards,
Gagan Gowda

 

Google "enc28j60 stm32 lwip":

Examples:

https://www.youtube.com/watch?v=EvDG6Q5p5mI /  https://github.com/eziya/STM32_HAL_LWIP_ENC28J60

https://www.youtube.com/watch?v=DqaKZrx_E28

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Hi SofLit,

Thanks for providing like it's every help full, I did connection between STM32F407 to enc28j60 connection details are:-

STM      ENC28J60
SCK   -- SCK
MISO -- S0
MOSI -- SI
CS     -- CS 
         -- RESET
         -- INT
         -- CLKOUT

STM side any remaining connection I need connect to ENC28J60?

Best Regards,
Gagan Gowda

 

See the video I shared before @3:25: https://youtu.be/DqaKZrx_E28?t=205

SofLit_0-1718889829791.png

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Hi SofLit,

I had Watched video he is configured ioc file in cube and generating code in eclipse software, I followed same procedure to create project, but I am getting error in Middleware library I thing mismatch of software is there any updated recent video of ENC28J60 in STM32F407VG Microcontroller.


Best Regards,
Gagan Gowda

Hello,

ENC28J60 is not an ST chip. I recommand you to make a deeper search on google or find a dedicated forum for this chip.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.