use UDP communicaition block in Simulink NVIDIA Jetson

조회 수: 5 (최근 30일)
Thanh Tran Van
Thanh Tran Van 2024년 11월 13일
댓글: Thanh Tran Van 2024년 11월 14일
I try to use UDP communicaition block in Simulink NVIDIA Jetson. My program runs well in simulink. But when I try generation and run on Jetson, it reports that
/usr/bin/ld: ../DAHostLib_Network.o: in function `CreateUDPInterface':
DAHostLib_Network.c:(.text+0x10): undefined reference to `CreateTargetUDPInterface'
/usr/bin/ld: ../DAHostLib_Network.o: in function `DestroyUDPInterface':
DAHostLib_Network.c:(.text+0x30): undefined reference to `DestroyTargetUDPInterface'
collect2: error: ld returned 1 exit status
make: *** [gpu_proc_x1.mk:320: gpu_proc_x1.elf] Error 1
Can anyone give me some suggestions?
Thanks,

답변 (1개)

Sreeram
Sreeram 2024년 11월 13일
I assume that you are using the “UDP Send” and “UDP Receive” blocks from the DSP System Toolbox.
The executable generated from Simulink models containing these blocks are reliant on prebuilt dynamic library files included with MATLAB. When deployed to the hardware, these libraries are not included, which causes the error. This limitation is accessible in the documentation page by expanding the ‘C/C++ Code Generation’ in the ‘Extended Capabilities’ section:
A workaround to package all required files for portability is to use the “packNGo” function. You may read more about it here:
You may read more about how to run a generated executable outside MATLAB in the following page:
I hope it helps!
  댓글 수: 1
Thanh Tran Van
Thanh Tran Van 2024년 11월 14일
Thanks for your reply:
- When creating an executable file for nvidia on windows, I use the UDP send and UDP receive of the DSP System Toolbox library. They execute well and create an exe file.
- I want to create an executable file on Nvidia Jetson card, I replaced the UDP send and UDP receive of the DSP System Toolbox library with the NVIDIA Jetson and NVIDIA DRIVE libraries, but when I execute to create an elf file running on jetson, it reports the above error.
I look forward to your support

댓글을 달려면 로그인하십시오.

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by