TCP Echo project in custom C++ Project fails - iMX RT1064

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

TCP Echo project in custom C++ Project fails - iMX RT1064

1,183件の閲覧回数
GanesanGuru
Contributor IV

Hi @all,

I've been using C project - lwip_ipv4_ipv6_echo_freertos and later moved to my custom C++ project creation- as there is not sample c++ project in SDK. I've been using iMX RT1064 EVK. I was able to sucessgully import all the modules of lwip/freeRTOS/other modules as a C++ project-and compile them without error - yet the code is not working as it is supposed to.

Here, attached the c-based projects, tcp server is working perfectly as visible from ncat application from laptop too. Even the ping cmd works fine

While, in cpp based project - the tcp server itself not working as in ncat - it throws error as No route to host, also the ping cmd is not working.

 

The projects are accessible via - where the cpp based project is attached. Kindly lookinto it and let me what am I missing ?!

ラベル(1)
0 件の賞賛
返信
1 返信

1,156件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @GanesanGuru ,

  I have a question, if you porting a simple C++ demo, eg, just led blinky, whether that function works or not?

  Do you try to debug it, whether your ENET init is OK, then use the connection, you need to check step by step, just to check whether you lack some code or not.

  Do you also try the SDK demo for lwip_ipv4_ipv6_echo_freertos,  also make sure that works OK on your platform. Then if still have issues, it means your C++ porting have issues, also check the stack, heap situation.

Best Regards,

Kerry

0 件の賞賛
返信