MQX - RTCS

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

MQX - RTCS

跳至解决方案
950 次查看
vibhu
Contributor III

Hi Guys,

I am using keil IDE and mqx 4.1. The board I am using is twr-k70f120m.

I wanted to use snmp httpserv and serial to eth in same project.

So this is how I wanted.

There will be three options displayed in the uart and if the user selects any one among the three that should start and if the user selects the other option the other should start, stopping the already running one.

1) Webpage (httpsrv example)

2) snmp (snmp example)

3) tcp (eth to serial)

I tried to integrate these into one project.

So far I am able to integrate snmp and webpage. But the issue is if I select webpage first it is working fine. If I select snmp then webpage stops and snmp starts working. But the issue is when I select 1 again the webpage is not starting again 

It is displaying IPCFG: Device n.0 init failed. Error = 0x10419 error.

The same happens if I select snmp the second time. It is displaying Failed to initialize SNMP agent, error = 1140 error.

I tried using 

ipcfg_release_device(phy_addr);

when I select snmp to try to release the device which is initialized but it is not working.

How should I do it?

Please help

Regards,

Vibhu

0 项奖励
1 解答
839 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Vibhu

In your project, when you select webpage, RTCS start starts.  Next, when you select snmp, you need to reinitialize RTCS, including release all RTCS memory. and restart RTCS stack again.

Unfortunately, this is not a normal behavior for embedded system.  and MQX RTCS was not designed for this.

One possible way is to restart the system when you change your option. Then RTCS can reinitialize again.

Regards

Daniel

在原帖中查看解决方案

0 项奖励
1 回复
840 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Vibhu

In your project, when you select webpage, RTCS start starts.  Next, when you select snmp, you need to reinitialize RTCS, including release all RTCS memory. and restart RTCS stack again.

Unfortunately, this is not a normal behavior for embedded system.  and MQX RTCS was not designed for this.

One possible way is to restart the system when you change your option. Then RTCS can reinitialize again.

Regards

Daniel

0 项奖励