RMII problem STM32F7, receive OK, transmit not working
I am implementing ethernet on bare metal STM32F746-DISCO board. I configured rmii, set the PHY interface and "happily" receiving packaged on the DMA buffer. Problem is that sending doesnt work.
Before setting TX descriptor for first package, DMA_SR for TPS is = b110 (Suspended).
First package: TX descriptor OWN status is cleared, I set the buffer size and set the first/last flag in the status word of the descriptor and after that give control to DMA by setting OWN bit.
DMATDLAR is pointing to the TXDesc.
also DMACHTDR and DMACHTBAR looks OK.
then I set DMATPDR to 0x1 (it says set to any value) to trigger DMA check for new descriptor.
DMASR never get changed: TS, TBUS or TPS. Seems like its still waiting for something from cpu?
TX Descriptor never got returned to the CPU (DMA doesnt clear the OWN bit).
I checked example project LwIP for verification that the board is OK, and it works fine, so something in my code is not correct.
