How to re-initialize rtcs in MQX

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

How to re-initialize rtcs in MQX

1,453 Views
jesperevertsson
Contributor IV

Hi, I'm trying to implement the missing 10 mbps support in MQX. So far it only works during rtcs initialization, but if I move the ethernet cable form a 100 mbps switch to a 10 mbps switch I need to restart the program for it too work. To solve this I'm constantly polling the status register of our PHY to detect when the speed has changed during run time. If a speed change is detected I would like to re-initialize the rtcs component. The problem is that I can't find how this is done in MQX. I guess I need to destroy the current rtcs task and create a new one, but I can't find the opposite to rtcs_create

Labels (1)
Tags (2)
0 Kudos
Reply
2 Replies

1,188 Views
soledad
NXP Employee
NXP Employee

Hello Jesper,

Please check the below threads and let me know if this helps.

Re: how to change network interface speed from 100mbps to 10mbps in FRDMK64

10Mbps with LAN8720 and K70 - Communication with 10Mbps does not work


Have a great day,
Sol

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

1,188 Views
jesperevertsson
Contributor IV

This part looks somewhat useful

"On base of new settings from PHY we should call ENET_shutdown() modify speed settings and call ENET_Init() again."

But when I'm polling the speed from the PHY I do it from within our application, and I'm not sure how to change the speed from there. What I would like to do is just run our ethenet initializtion code again if a speed change is detected, but if I recall correctly RTCS_create will return an error if it has already been created

0 Kudos
Reply