use UDP communicaition block in Simulink NVIDIA Jetson

48 views (last 30 days)
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,

Answers (1)

Sreeram
Sreeram on 13 Nov 2024 at 11:35
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 Comment
Thanh Tran Van
Thanh Tran Van on 14 Nov 2024 at 22:01
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

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!