2018-12-14 03:54 AM
Hi!
I have a working ethernet code on my STM3240G-EVAL Board with STM32F457IG MCU. By working i mean MCU responds my ping requests. I'm using FreeRTOS and of course LwIP. And now i want migrate to my own PCB with STM32F407ZG6 MCU. When I connect a DP83848 module with 15 cm wires (that's might be a problem) MCU doesn't respond. I can see frames on RXx pins and can not see any on TXx pins. All I've done by now in my software is remap GPIO Pins. I choose those ethernet pinout:
PA0-WKUP ------> ETH_CRS
PA1 ------> ETH_RX_CLK
PA2 ------> ETH_MDIO
PA3 ------> ETH_COL
PA7 ------> ETH_RX_DV
PB0 ------> ETH_RXD2
PB1 ------> ETH_RXD3
//PB5 ------> PPS_OUT
PB8 ------> ETH_TXD3
PB10 ------> ETH_RX_ER
PB11 ------> ETH_TX_EN
PB12 ------> ETH_TXD0
PB13 ------> ETH_TXD1
PC1 ------> ETH_MDC
PC2 ------> ETH_TXD2
PC3 ------> ETH_TX_CLK
PC4 ------> ETH_RXD0
PC5 ------> ETH_RXD1
And actually that's all i've changed in my code, ETH and DMA settings are the same. Oh and one more thing, because i don't use a ,,Link status interrupt'', i check Link Status in DP83848 register now and then in FreeRTOS task, it seems all right in debugger. And now my question: is there anything else i should changed in firmwere when migrating between this two MCU which i think are almost the same (core, buses, peripherials etc.). Or maybe it has to be a hardware issue.
Thanks a lot in advance