2011-12-21 10:09 PM
Hello,
I am working on initializing the Ethernet/MAC code on the STM32F4 Discovery, with the STM32F407VG processor. I have used the example code found on ST's website here: http://www.st.com/internet/mcu/product/252140.jsp&sharpFIRMWARE That code provides a couple example projects. The problem I am running into is that none of them seem to work. I have tried with modified code to match my current setup (RMII to PHY) and I have tried it with the unaltered examples. Both of them seem to hang on this section of code: ETH_DeInit(); ETH_SoftwareReset(); while(ETH_GetSoftwareResetStatus() == SET); So in other words, the MAC never seems to come out of reset. Has anybody been successful using the MAC code from ST's library? #stm32-f4-mac-ethernet2011-12-22 06:54 AM
This question sounds familiar, on other parts you must have the Ethernet clock disabled for you to do this.
See if this thread is on point.[DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Stm32F2 Ethernet start up infinite Loop&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=355]https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fcortex_mx_stm32%2FStm32F2%20%20Ethernet%20start%20up%20infinite%20Loop&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=3552011-12-22 08:24 PM
Well, that did seem to be the problem. If I moved the line setting up the clocks until after the reset, everything seemed to work fine.
Which brings up the next question, why does ST do it in the opposite order in their driver code? Perhaps STOne-32 can comment on whether this is a bug or what is going on here.2011-12-26 01:03 PM
Hi CheBuzz,
I just received my Discovery board I would like to experiment Ethernet on it. Could you share more informations about how you connected the PHY and RJ-45 to the Discovery? Best regards, Maia2011-12-27 05:16 AM
Could you share more informations about how you connected the PHY and RJ-45 to the Discovery?
Pull a manual for one of the STM32F4 development boards which has Ethernet and examine the schematics.