Olimex Support Forum

ARM => ST => Topic started by: flawless on June 15, 2016, 03:36:01 PM

Title: CubeMX STM32-E407 Ethernet
Post by: flawless on June 15, 2016, 03:36:01 PM
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.
Title: Re: CubeMX STM32-E407 Ethernet
Post by: Lurch on June 17, 2016, 06:17:22 PM
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.
Title: Re: CubeMX STM32-E407 Ethernet
Post by: flawless on June 18, 2016, 12:18:06 AM
I have rev.E board.
Here is the photo of board: http://i.imgur.com/qE4ICFe.jpg (http://i.imgur.com/qE4ICFe.jpg)
Title: Re: CubeMX STM32-E407 Ethernet
Post by: Lurch on June 23, 2016, 08:57:53 PM
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