use UDP communicaition block in Simulink NVIDIA Jetson
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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,
0 Kommentare
Antworten (1)
Sreeram
am 13 Nov. 2024
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!
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!