How to re-initialize rtcs in MQX

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to re-initialize rtcs in MQX

1,452件の閲覧回数
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,187件の閲覧回数
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,187件の閲覧回数
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 件の賞賛
返信