Code: Select all
/* MAC clocks activation and commanded reset procedure.*/
rccEnableETH(FALSE);
ETH->DMABMR |= ETH_DMABMR_SR;
while(ETH->DMABMR & ETH_DMABMR_SR)
;The phyter works in MII mode, clocked at 25MHz. It is possible to find its address (=1, correct) with mii_find_phy(), so it can communicate successfully. It looks like to be a problem related to the STM32F207, since that software reset has actually nothing to do with the external phyter itself, but only with the Ethernet DMA.
The ST demos work correctly, so it is not an hard fault, but some wrong initialization procedure which I'm not able to fix by myself.
I've checked all the pins configuration, the MCO1 or dedicated crystal outputs, and everything seems ok. The only HAL peripherals enabled are TM, PAL, MAC, and SERIAL.
Have you any idea about what is wrong in my configuration, or even in the (unstable?) MAC driver?
Thanks in advance