How to build udp receiver?

2 views (last 30 days)
Kidus Guye
Kidus Guye on 24 Oct 2017
Edited: Kidus Guye on 2 Nov 2017
I want to build a data that came through udp receiver, but when I tried to build the udp receiver block I got this error message. Is there any one who can help me on this? Is there anyone who can give me answer to this or direct me to one who can give me assistant please?
I am trying to build a udp block and get this error:
### Starting build procedure for model: Free_Flight
Code Generation 2 5
Elapsed: 12 sec
### Generating code into build folder: C:\Users\kidus.guye\Downloads\SimulinkARDroneTarget-R2016_ab\Build\Free_Flight_ert_rtw
State 'BatteryLow' is not reachable via any of the valid transition paths. [2 similar]
Component:Stateflow | Category:SFLintwarning
Output port 1 of 'Free_Flight/Byte Unpacking 1' is not connected. [2 similar]
Component:Simulink | Category:Blockwarning
Input port 2 of 'Free_Flight/PI controller' is not connected.
Component:Simulink | Category:Blockwarning
### Invoking Target Language Compiler on Free_Flight.rtw
### Using System Target File: C:\Program Files\MATLAB\R2016b\rtw\c\ert\ert.tlc
### Loading TLC function libraries
### Initial pass through model to cache user defined code
### Caching model source code
...............................................................................
...............................................................................
............
### Writing source file Free_Flight.c
### Writing header file Free_Flight_private.h
### Writing header file Free_Flight.h
.
### Writing header file Free_Flight_types.h
### Writing header file rtwtypes.h
### Writing header file multiword_types.h
### Writing header file rt_nonfinite.h
### Writing source file rt_nonfinite.c
.
### Writing header file rtGetInf.h
### Writing source file rtGetInf.c
### Writing header file rtGetNaN.h
### Writing source file rtGetNaN.c
### Writing source file Free_Flight_data.c
.
### Writing header file rtmodel.h
### Writing source file ert_main.c
### TLC code generation complete.
### Generating TLC interface API.
...............................................................................
..........................................................
### Creating data type transition file Free_Flight_dt.h
...### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: Code Sourcery v4.8 | gmake (64-bit Windows)
### 'C:\Users\kidus.guye\Downloads\SimulinkARDroneTarget-R2016_ab\Build\Free_Flight_ert_rtw\Free_Flight.mk' is up to date
### Building 'Free_Flight': C:\PROGRA~1\MATLAB\R2016b\bin\win64\gmake -f Free_Flight.mk all
C:/PROGRA~2/CODESO~1/SOURCE~1/bin/arm-none-linux-gnueabi-gcc -c -O0 -march=armv7-a -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp -std=gnu99 -DMODEL=Free_Flight -DNUMST=3 -DNCSTATES=4 -DHAVESTDIO -DON_TARGET_WAIT_FOR_START=0 -DONESTEPFCN=1 -DEXT_MODE=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DRT -DUSE_RTMODEL -DERT -DTID01EQ=1 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DARM_PROJECT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DEXT_MODE=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DON_TARGET_WAIT_FOR_START=0 -DRT -DUSE_RTMODEL -DERT -DTID01EQ=1 -DARM_PROJECT -DSTACK_SIZE=64 -DMODEL=Free_Flight -DNUMST=3 -DNCSTATES=4 -DHAVESTDIO -IC:/PROGRA~1/MATLAB/R2016b/simulink/include/sf_runtime -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/Build/Free_Flight_ert_rtw -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/Build -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/AR_Drone_Models/Flight_Models -IC:/PROGRA~1/MATLAB/R2016b/extern/include -IC:/PROGRA~1/MATLAB/R2016b/simulink/include -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2016b/toolbox/coder/rtiostream/src/utils -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/AR_Drone_Target/blocks -IC:/PROGRA~1/MATLAB/R2016b/simulink/include/messages -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/AR_Drone_Target/include -IC:/PROGRA~1/MATLAB/R2016b/toolbox/target/codertarget/rtos/inc -o "Free_Flight.o" "Free_Flight.c"
Free_Flight.c: In function 'Free_Flight_step0':
Free_Flight.c:1078:5: warning: implicit declaration of function 'BatteryMeasure_step'
Free_Flight.c: In function 'Free_Flight_initialize':
Free_Flight.c:3069:3: warning: implicit declaration of function 'BatteryMeasure_start'
Free_Flight.c: In function 'Free_Flight_terminate':
Free_Flight.c:3222:3: warning: implicit declaration of function 'BatteryMeasure_term'
C:/PROGRA~2/CODESO~1/SOURCE~1/bin/arm-none-linux-gnueabi-gcc -c -O0 -march=armv7-a -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp -std=gnu99 -DMODEL=Free_Flight -DNUMST=3 -DNCSTATES=4 -DHAVESTDIO -DON_TARGET_WAIT_FOR_START=0 -DONESTEPFCN=1 -DEXT_MODE=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DRT -DUSE_RTMODEL -DERT -DTID01EQ=1 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DARM_PROJECT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DEXT_MODE=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DON_TARGET_WAIT_FOR_START=0 -DRT -DUSE_RTMODEL -DERT -DTID01EQ=1 -DARM_PROJECT -DSTACK_SIZE=64 -DMODEL=Free_Flight -DNUMST=3 -DNCSTATES=4 -DHAVESTDIO -IC:/PROGRA~1/MATLAB/R2016b/simulink/include/sf_runtime -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/Build/Free_Flight_ert_rtw -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/Build -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/AR_Drone_Models/Flight_Models -IC:/PROGRA~1/MATLAB/R2016b/extern/include -IC:/PROGRA~1/MATLAB/R2016b/simulink/include -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2016b/toolbox/coder/rtiostream/src/utils -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/AR_Drone_Target/blocks -IC:/PROGRA~1/MATLAB/R2016b/simulink/include/messages -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/AR_Drone_Target/include -IC:/PROGRA~1/MATLAB/R2016b/toolbox/target/codertarget/rtos/inc -o "Free_Flight_data.o" "Free_Flight_data.c"
C:/PROGRA~2/CODESO~1/SOURCE~1/bin/arm-none-linux-gnueabi-gcc -c -O0 -march=armv7-a -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp -std=gnu99 -DMODEL=Free_Flight -DNUMST=3 -DNCSTATES=4 -DHAVESTDIO -DON_TARGET_WAIT_FOR_START=0 -DONESTEPFCN=1 -DEXT_MODE=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DRT -DUSE_RTMODEL -DERT -DTID01EQ=1 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DARM_PROJECT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DEXT_MODE=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DON_TARGET_WAIT_FOR_START=0 -DRT -DUSE_RTMODEL -DERT -DTID01EQ=1 -DARM_PROJECT -DSTACK_SIZE=64 -DMODEL=Free_Flight -DNUMST=3 -DNCSTATES=4 -DHAVESTDIO -IC:/PROGRA~1/MATLAB/R2016b/simulink/include/sf_runtime -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/Build/Free_Flight_ert_rtw -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/Build -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/AR_Drone_Models/Flight_Models -IC:/PROGRA~1/MATLAB/R2016b/extern/include -IC:/PROGRA~1/MATLAB/R2016b/simulink/include -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2016b/toolbox/coder/rtiostream/src/utils -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/AR_Drone_Target/blocks -IC:/PROGRA~1/MATLAB/R2016b/simulink/include/messages -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/AR_Drone_Target/include -IC:/PROGRA~1/MATLAB/R2016b/toolbox/target/codertarget/rtos/inc -o "rtGetInf.o" "rtGetInf.c"
C:/PROGRA~2/CODESO~1/SOURCE~1/bin/arm-none-linux-gnueabi-gcc -c -O0 -march=armv7-a -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp -std=gnu99 -DMODEL=Free_Flight -DNUMST=3 -DNCSTATES=4 -DHAVESTDIO -DON_TARGET_WAIT_FOR_START=0 -DONESTEPFCN=1 -DEXT_MODE=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DRT -DUSE_RTMODEL -DERT -DTID01EQ=1 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DARM_PROJECT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DEXT_MODE=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DON_TARGET_WAIT_FOR_START=0 -DRT -DUSE_RTMODEL -DERT -DTID01EQ=1 -DARM_PROJECT -DSTACK_SIZE=64 -DMODEL=Free_Flight -DNUMST=3 -DNCSTATES=4 -DHAVESTDIO -IC:/PROGRA~1/MATLAB/R2016b/simulink/include/sf_runtime -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/Build/Free_Flight_ert_rtw -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/Build -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/AR_Drone_Models/Flight_Models -IC:/PROGRA~1/MATLAB/R2016b/extern/include -IC:/PROGRA~1/MATLAB/R2016b/simulink/include -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2016b/toolbox/coder/rtiostream/src/utils -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/AR_Drone_Target/blocks -IC:/PROGRA~1/MATLAB/R2016b/simulink/include/messages -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/AR_Drone_Target/include -IC:/PROGRA~1/MATLAB/R2016b/toolbox/target/codertarget/rtos/inc -o "rtGetNaN.o" "rtGetNaN.c"
C:/PROGRA~2/CODESO~1/SOURCE~1/bin/arm-none-linux-gnueabi-gcc -c -O0 -march=armv7-a -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp -std=gnu99 -DMODEL=Free_Flight -DNUMST=3 -DNCSTATES=4 -DHAVESTDIO -DON_TARGET_WAIT_FOR_START=0 -DONESTEPFCN=1 -DEXT_MODE=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DRT -DUSE_RTMODEL -DERT -DTID01EQ=1 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DARM_PROJECT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DEXT_MODE=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DON_TARGET_WAIT_FOR_START=0 -DRT -DUSE_RTMODEL -DERT -DTID01EQ=1 -DARM_PROJECT -DSTACK_SIZE=64 -DMODEL=Free_Flight -DNUMST=3 -DNCSTATES=4 -DHAVESTDIO -IC:/PROGRA~1/MATLAB/R2016b/simulink/include/sf_runtime -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/Build/Free_Flight_ert_rtw -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/Build -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/AR_Drone_Models/Flight_Models -IC:/PROGRA~1/MATLAB/R2016b/extern/include -IC:/PROGRA~1/MATLAB/R2016b/simulink/include -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2016b/toolbox/coder/rtiostream/src/utils -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/AR_Drone_Target/blocks -IC:/PROGRA~1/MATLAB/R2016b/simulink/include/messages -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/AR_Drone_Target/include -IC:/PROGRA~1/MATLAB/R2016b/toolbox/target/codertarget/rtos/inc -o "rt_nonfinite.o" "rt_nonfinite.c"
C:/PROGRA~2/CODESO~1/SOURCE~1/bin/arm-none-linux-gnueabi-gcc -c -O0 -march=armv7-a -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp -std=gnu99 -DMODEL=Free_Flight -DNUMST=3 -DNCSTATES=4 -DHAVESTDIO -DON_TARGET_WAIT_FOR_START=0 -DONESTEPFCN=1 -DEXT_MODE=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DRT -DUSE_RTMODEL -DERT -DTID01EQ=1 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DARM_PROJECT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DEXT_MODE=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DON_TARGET_WAIT_FOR_START=0 -DRT -DUSE_RTMODEL -DERT -DTID01EQ=1 -DARM_PROJECT -DSTACK_SIZE=64 -DMODEL=Free_Flight -DNUMST=3 -DNCSTATES=4 -DHAVESTDIO -IC:/PROGRA~1/MATLAB/R2016b/simulink/include/sf_runtime -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/Build/Free_Flight_ert_rtw -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/Build -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/AR_Drone_Models/Flight_Models -IC:/PROGRA~1/MATLAB/R2016b/extern/include -IC:/PROGRA~1/MATLAB/R2016b/simulink/include -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2016b/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2016b/toolbox/coder/rtiostream/src/utils -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/AR_Drone_Target/blocks -IC:/PROGRA~1/MATLAB/R2016b/simulink/include/messages -IC:/Users/kidus.guye/Downloads/SimulinkARDroneTarget-R2016_ab/AR_Drone_Target/include -IC:/PROGRA~1/MATLAB/R2016b/toolbox/target/codertarget/rtos/inc -o "slrtUDPReceive.o" "C:/PROGRA~1/MATLAB/R2016b/toolbox/slrt/blocks/UDP/slrtUDPReceive.c"
C:/PROGRA~1/MATLAB/R2016b/toolbox/slrt/blocks/UDP/slrtUDPReceive.c:13:25: fatal error: socketfuncs.h: No such file or directory
compilation terminated.
gmake: *** [slrtUDPReceive.o] Error 1
### Build procedure for model: 'Free_Flight' aborted due to an error.
Error(s) encountered while building "Free_Flight":
### Failed to generate all binary outputs.

Answers (0)

Community Treasure Hunt

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

Start Hunting!