December 06, 2021, 10:53:17 am

CubeMX STM32-E407 Ethernet

Started by flawless, June 15, 2016, 03:36:01 pm

Previous topic - Next topic

flawless

Hello. I bought two STM32-E407 board and now want to make simple FTP server on with files on sd card. I have Eclipse 4.4 with gnuarmeclipse plugins, can flash and debug stm devices and import projects from CubeMX (via generating truestudio project), but I can't get working ethernet connection with lwIP.
In Cube:
enabled ETH in RMII mode and reassigned some pins.
enables lwIP added device static config addr 192.168.9.2 mask 255.255.255.0 gw 192.168.9.1, enabled ICMP.
On local machine I have configured network device and routes with 192.168.9.1/24 and try to ping connected stm board. I can see blinking led on board lan connector but ping says: "From 192.168.9.1 icmp_seq=4 Destination Host Unreachable"
I think I must configure more ethernet options in Cube but don't know exactly what.

Lurch

Which revision of the STM32-E407 do you have? There are different PHY chips used on the early boards, and people will need to know which revision you have to help.

flawless


Lurch

Are you sure you set the option to reply to pings?
In opt.h file there is a definition, it is usually set to DON'T REPLY (i.e. 0)
Look at the comments there
#define LWIP_BROADCAST_PING             0