This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I am trying to test the Ethernet interface on the HDK. I used HalCoGen to configure an RM48L952ZWT processor. I only enabled:
* EMAC and GIO drivers
* VIM Channels 77, 79
* PINMUX -> MII
* EMAC: Phy Addr 1
I then generate code. In sys_main.c, I add a call to EMACHWInit(emacAddress)
When I run the code, it gets to MDIOPhyRegRead() and blocks at:
/* wait for command completion */
/*SAFETYMCUSW 28 D MR:NA <APPROVED> "Hardware status bit read check" */
while((HWREG(baseAddr + MDIO_USERACCESS0) & MDIO_USERACCESS0_GO) == MDIO_USERACCESS0_GO){ } /* Wait */
This function is being called with phyAddr = 1, regNum = 2
I have also tried phyAddr = 0
The HDK has a DIP switch at S2. I have enabled Ethernet on that switch.
Why can't I communicate with the PHY?
Disregard....
The PinMux MII checkbox does not include the MDIO configuration. You must also enable MDIO on ball G3 and MDCLK on V5