AnsweredAssumed Answered

STM32F107 - Ethernet, can't restart DMA

Question asked by ADI-mistrzu on Apr 12, 2015
Latest reply on Sep 21, 2015 by Balas
Hi,
I tring to turn on ethernet on my board, but I stuck on problem with ETH DMA.

ETH->DMABMR = ETH_DMABMR_SR;
while (ETH->DMABMR & ETH_DMABMR_SR);


Above the line is reseting DMA, but it's never ending and I don't know why. In datasheet we have:

When this bit is set, the MAC DMA controller resets all MAC Subsystem internal registers and logic. It is cleared automatically after the reset operation has completed in all of the core clock domains. Read a 0 value in this bit before re-programming any register of the core.

I connected clock source to eth, I can comunication with PHY via ETH_MACMIIDR register, but I can't complete initialization of eth .

Where it's can be my mistake?

Outcomes