Page 1 of 1

STM32-E407 ethernet demo error?

Posted: Thu Jan 11, 2018 3:50 pm
by derlucas
hey,
i have two Olimex STM32-E407 boards here (latest rev) and i build the demo:

ChibiOS_17.6.3/demos/STM32/RT-STM32F407-OLIMEX_E407-LWIP-FATFS-USB


(Yes i unzipped the dependencies etc :-) )

The demo is unfortunately not running because it can not find the phy. In hal_mac_lld.c in the method mii_find_phy() fails with "MAC failure".
If i comment mii_find_phy() out in the function mac_lld_init() and set ETHD1.phyaddr = 0 << 11; the demo runs fine. I guessed the ID is 0 because in the Olimex Schematic they say "SMI address: 0x00".

This is my first time ever i'm doing something with ChibiOS so please excuse if i'm missing something obvious here. Can someone tell me my mistake or is there an error in the example?

I'm using arm-none-eabi-gcc (Arch Repository) 7.2.0
Lucas

Re: STM32-E407 ethernet demo error?

Posted: Thu Jan 11, 2018 4:02 pm
by Giovanni
Hi,

It is possible you have a different board revision and BOARD_PHY_ADDRESS is something different.

Giovanni

Re: STM32-E407 ethernet demo error?

Posted: Thu Jan 11, 2018 4:29 pm
by derlucas
Hey,
i checked on the board. There is a smsc 8710A on it.

Thanks for your hint. Now i get it: In the Makefile of the demo there is still the old revision linked:

include $(CHIBIOS)/os/hal/boards/OLIMEX_STM32_E407/board.mk


After fixing this, the demo runs without my prior hacks.

Thanks
Lucas

Re: STM32-E407 ethernet demo error?

Posted: Thu Jan 11, 2018 4:53 pm
by Giovanni
Great, the demo was created on one of the first of those boards, there have been several revisions.

Giovanni