August 13, 2020, 05:15:08 pm

STM32-P107 RevB Ethernet

Started by a_kakas, April 03, 2020, 04:38:09 pm

Previous topic - Next topic

a_kakas

Hi,

I'm looking for working code example howto bringup Ethernet on STM32-P107 RevB?
Official site have example for RevC which have different PHY chip. I tried to modify that example but without any luck.

I've found this link in forum:
https://www.olimex.com/Products/ARM/ST/STM32-P107/resources/STM32-P107_DemoSoft.zip

for RevB samples, but after porting it to STM32CubeIDE it didn't work either.

Maybe someone does have a working code for RevB in STM32CubeIDE project format?

a_kakas

April 03, 2020, 05:28:50 pm #1 Last Edit: April 03, 2020, 05:31:45 pm by a_kakas
And after checking the official Olimex examples for RevB, the GPIO pin mapping is invalid and does not conform with the schematic.

For example pins PA0, PB10, PC3 are mapped in code but not connected in schematic, also PB12 (ETH_RMII_TXD0) and PB13 (ETH_RMII_TXD1) are not mapped at all.

LubOlimex

What is the Ethernet PHY chip on-board? Is it Micrel or?
Technical support and documentation manager at Olimex

a_kakas

April 08, 2020, 04:36:52 pm #3 Last Edit: April 08, 2020, 05:21:11 pm by a_kakas
The PHY chip is Micrel KSZ8721BL.

LubOlimex

We investigated and the pins in this demo https://www.olimex.com/Products/ARM/ST/STM32-P107/resources/STM32-P107_DemoSoft.zip are properly set.

Probably something went wrong in the porting.
Technical support and documentation manager at Olimex