Target error from Register access

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

Target error from Register access

Jump to solution
1,049 Views
vasudhevan
Contributor V

Hi,

     Board - imx rt 1064 evk.

     I created free rtos software timer inside timer callback called PHY_GetLinkStatus(ENET, BOARD_ENET0_PHY_ADDRESS, &link); api.

     If i put this api in free rtos timer callback giving target error from Register access and stopped debugger.

     We want to monitor ethernet link status every one second timer. 

     Refereed link - Best way to check Ethernet link 

     debug_error.PNG 

Any other way can we monitor ethernet link status every one second ?

Why i am getting  target error from Register access from timer callback ?

Thanks & Regards

        Vasu

Labels (1)
0 Kudos
1 Solution
970 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Vasu:

Please make sure that you have initialized the enet module before you access the PHY register.

If this issue still exists, could you please let me know how to reproduce your issue on my side?

Regards

Daniel

View solution in original post

0 Kudos
3 Replies
970 Views
vasudhevan
Contributor V

Any updates ?

Regards,

  Vasu

0 Kudos
971 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Vasu:

Please make sure that you have initialized the enet module before you access the PHY register.

If this issue still exists, could you please let me know how to reproduce your issue on my side?

Regards

Daniel

0 Kudos
970 Views
vasudhevan
Contributor V

Hi Daniel,

      Thank you for your response.

      You are right enet module not initialized.

Thanks & Regards

        Vasu

0 Kudos