DNS makes MQX tasks hang on M52259DEMO

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

DNS makes MQX tasks hang on M52259DEMO

ソリューションへジャンプ
4,177件の閲覧回数
jhmrd
Contributor III

I am trying to use DNS on the M52259DEMO board. I have been able to get the gateway and DNS IP addresses set via DHCP, as shown by the ipconfig command. I defined RTCSCFG_ENABLE_UDP and RTCSCFG_ENABLE_DNS as 1 in user_config.h, then rebuilt all of MQX. I also had to move the #if RTCSCFG_ENABLE_DNS after some #includes in a few source files to get rid of some link errors.

 

Now I can ping IP addresses out on the internet as long as I enter the explicit dotted quad IP address I want to ping. But as some as I try to ping a domain name, I get no response, and the serial shell and telnet stop responding. 

 

Any ideas?

 

Thanks

 

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
1,981件の閲覧回数
PetrM
Senior Contributor I

Hello,

 

please get latest release, where you can try to use lwdns feature now.

You just need to define RTCSCFG_ENABLE_LWDNS 1 in your user_config.h.

It works over either UDP or TCP.

 

Regards,

PetrM

 

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,982件の閲覧回数
PetrM
Senior Contributor I

Hello,

 

please get latest release, where you can try to use lwdns feature now.

You just need to define RTCSCFG_ENABLE_LWDNS 1 in your user_config.h.

It works over either UDP or TCP.

 

Regards,

PetrM

 

0 件の賞賛
返信
1,981件の閲覧回数
jhmrd
Contributor III
You are correct. DNS works without a bunch of code changes in the MQX 3.1 release.
0 件の賞賛
返信