On my board, I have an ethernet switch connected to both Host and DSP C6455.
The switch's MDIO port is controlled by the host. DSP C6455's MDIO port is not connected anywhere.
In order to make the driver works, I made the following changes to the C6455 driver that comes with NDK 2.0 or NSP package. I hope this can help those who encounter the same issue I had.
If there's another recommended way to fix the issue I had, please let me know.
Thanks.
In the HwPktOpen function in the ethdriver.c, I made the following changes:
- Changed ecfg.UseMdio = 1; to ecfg.UseMdio = 0;
- Changed pi->TxFree = 0; to pi->TxFree = 1;