cancel
Showing results for 
Search instead for 
Did you mean: 

i am trying to inteface between stm32f429 nulceo board with lan8742A. If any clue you have then please tell me. Using HAL library in CUBEMxIDE

RROY.1
Associate II

Please any one done this project please give me.I am trying too many times.

1 ACCEPTED SOLUTION

Accepted Solutions
RROY.1
Associate II
10 REPLIES 10

So what, exactly, have you tried? Where are you stuck?

Did you try a Google search?

When searching for code, GitHub is a good place to search ...

0693W00000QM3LKQA1.png 

RROY.1
Associate II

I have a stm32f429 nucleo board.and in that board already attached lan8742a chip and ethernet port also.I cant hardware configure.I searched google and github also no clue i have found. whenever I write in cmd prompt "ipconfig" that time default ip shows every time. I want to show my static ip like 192.168.001.111.

Bob S
Principal

OK, so you have the NUCLEO-F429ZI. Hardware should be OK then.

> "whenever I write in cmd prompt 'ipconfog'"

A command prompt on your PC? Or do you have a command prompt running on your NUCLEO board?

> "default IP shows every time"

What "default IP"? How are you expecting your NUCLEO board to get the 192.168.... IP address? Did you edit the STM32 source code? If so, show the code. Or are you trying to get your PC to use that address (as implied by mentioning IPCONFIG)? That is unclear to me from your posts.

RROY.1
Associate II

0693W00000QM8CsQAL.png 

0693W00000QM8CmQAL.png0693W00000QM8BtQAL.png0693W00000QM8BZQA1.png

Bob S
Principal

What are the IP settings on your PC (IP add, netmask and gateway). Is there a router/gateway between your PC and the NUCLEO board? Or just an Ethernet switch?

Check the CubeMX Ethernet "Advanced Parameters" tab. In my experience (using CubeMX 6.3, can't recall if I've tested with later versions), CubeMX defaults to some incorrect register addresses and bit field values. You will need to double-check those values with the LAN8742 data sheet. Specially the "Extended External PHY Config" registers, but double-check all those settings.

Which version of CubeMX and the CubeF4 library are you using to generate this code?

Is the Ethernet cable plugged into the Nucleo board when it is powered on (or the firmware started from the debugger)?

RROY.1
Associate II

sir this is my PC(IP,net mask,gateway) configured.0693W00000QM8NzQAL.png

RROY.1
Associate II

0693W00000QM8O6QAL.pngthis is advance parameter options that i have set.0693W00000QM8OOQA1.png

RROY.1
Associate II

STM32Cube FW_F4 v1.25.1

0693W00000QM8TiQAL.png 

version 1.9.0

0693W00000QM8TOQA1.png

RROY.1
Associate II

Thanks sir..all of you guys.

Its perfectly working now. Thanks once again