cancel
Showing results for 
Search instead for 
Did you mean: 

Help for Ethernet STM32F107 connect to DP8384

tranduyvaa
Associate
Posted on September 20, 2015 at 09:25

Hello every one,

I have a few issues with Ethernet of STM32F107VC, 

I used external 25MHz and my code

https://drive.google.com/drive/folders/0B_pYftFJNE1IRjdtOTlSZG5ma0U

I connected STM to DP8384 as below:

  - ETH_MII_MDIO / ETH_RMII_MDIO: PA2

  - ETH_MII_MDC / ETH_RMII_MDC: PC1\

  - ETH_MII_TX_EN / ETH_RMII_TX_EN: PB11

  - ETH_MII_TXD0 / ETH_RMII_TXD0: PB12

  - ETH_MII_TXD1 / ETH_RMII_TXD1: PB13

  - ETH_MII_RX_CLK / ETH_RMII_REF_CLK: PA1- PA8

=> Connected with X1 DP8384

  - ETH_MII_RX_DV / ETH_RMII_CRS_DV: PD8

  - ETH_MII_RXD0 / ETH_RMII_RXD0: PD9

  - ETH_MII_RXD1 / ETH_RMII_RXD1: PD10

I build my code no error but It do not run...

Can you (guy) write for me a code example?

Please help me...I am waiting.....
1 REPLY 1
Amel NASRI
ST Employee
Posted on October 01, 2015 at 17:28

Hi duy.tran,

DP83848 is used in the ETHERNET examples available in the CubeF1 package.

You find them under STM32Cube_FW_F1_V1.2.0\Projects\STM3210C_EVAL\Applications\LwIP.

If you check the file ethernetif.c, you will see this comment regarding the Ethernet pins configuration:

  - ETH_MII_MDIO / ETH_RMII_MDIO: PA2

  - ETH_MII_MDC / ETH_RMII_MDC: PC1

  - ETH_MII_TXD2: PC2

  - ETH_MII_TX_EN / ETH_RMII_TX_EN: PB11

  - ETH_MII_TXD0 / ETH_RMII_TXD0: PB12

  - ETH_MII_TXD1 / ETH_RMII_TXD1: PB13

  - ETH_MII_PPS_OUT / ETH_RMII_PPS_OUT: PB5

  - ETH_MII_TXD3: PB8 

  

  - ETH_MII_CRS CRS: PA0

  - ETH_MII_RX_CLK / ETH_RMII_REF_CLK: PA1

  - ETH_MII_COL: PA3

  - ETH_MII_RX_DV / ETH_RMII_CRS_DV: PD8

  - ETH_MII_TX_CLK: PC3

  - ETH_MII_RXD0 / ETH_RMII_RXD0: PD9

  - ETH_MII_RXD1 / ETH_RMII_RXD1: PD10

  - ETH_MII_RXD2: PD11

  - ETH_MII_RXD3: PD12

  - ETH_MII_RX_ER: PB10 

-Mayla-

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.