STM32-E407 ethernet demo error?

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: RoccoMarco, barthess

derlucas
Posts: 2
Joined: Thu Jan 11, 2018 1:43 pm

STM32-E407 ethernet demo error?

Postby derlucas » Thu Jan 11, 2018 3:50 pm

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

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: STM32-E407 ethernet demo error?

Postby Giovanni » Thu Jan 11, 2018 4:02 pm

Hi,

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

Giovanni

derlucas
Posts: 2
Joined: Thu Jan 11, 2018 1:43 pm

Re: STM32-E407 ethernet demo error?

Postby derlucas » Thu Jan 11, 2018 4:29 pm

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

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: STM32-E407 ethernet demo error?

Postby Giovanni » Thu Jan 11, 2018 4:53 pm

Great, the demo was created on one of the first of those boards, there have been several revisions.

Giovanni


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 16 guests