How to re-initialize rtcs in MQX

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to re-initialize rtcs in MQX

1,584 次查看
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

标签 (1)
标记 (2)
0 项奖励
回复
2 回复数

1,319 次查看
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 项奖励
回复

1,319 次查看
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 项奖励
回复