Failing to initialize ENET PHY on custom board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Failing to initialize ENET PHY on custom board

153 Views
tkobet
Contributor I

We have a custom board based on the RT 1064, and I am working on the ethernet interface.  The ethernet firmware is based on the evkmimxrt1064_lwip_dhcp_bm example project, which runs fine on the MIMXRT1064-EVK.  Hardware is RMII using a KSZ8081 PHY layer with an internally generated 50 MHz reference clock.

I copied the examples BOARD_InitENETPins() function from the example into the custom firmware project, changing the ENET_MDC and ENET_MDIO pins to match the custom hardware.  I have also copied the examples application code.  I have not been able to find the configuration option that will allow the ENET_MDIORead function and the remainder of PHY init to complete.

We used the Clocks tool to enable the ENET_REF_CLK and set it to 50MHz.

Looking for guidance on what to look at to get past this issue.

Labels (1)
0 Kudos
3 Replies

103 Views
tkobet
Contributor I

Those options seem to line up fine.  The firmware is hanging in ENET_MDIOWaitTranferOver(base) waiting for ENET_GetInterruptStatus to return a non-zero value in base->EIR.  I do not know if this is an issue with the MDIO pins or an interrupt configuration.

I modified the pin definitions in the example firmware and was able to get through phy init on our custom board, but have not identified the issue with the firmware after manually integrating the code from the example.

0 Kudos

53 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @tkobet ,

 

ENET_MDIOWaitTranferOver() checks the MII bit in EIR for MII transfer completed status, it is most likely related with MDIO.  Please probe the MDIO pins if they transfer the data out successfully.

Kan_Li_0-1716194055420.png

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

 

0 Kudos

121 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @tkobet ,

 

Are you looking for configuration options like this:

Kan_Li_0-1715408888209.png

Best Regards,

Kan

0 Kudos