Failed to generate all binary outputs for parrot minidrone mambo example

1 visualización (últimos 30 días)
I tried to deploy the flight control system onto the quadcopter and an error pops up:
Error(s) encountered while building "flightControlSystem": ### Failed to generate all binary outputs.
I have no idea what's going wrong. Please do find the error below:
### Generating code into build folder: C:\Users\User\MATLAB\Projects\slexamples\asbQuadcopter\work\flightControlSystem_grt_rtw ### Invoking Target Language Compiler on flightControlSystem.rtw ### Using System Target File: C:\Program Files\MATLAB\R2018b\rtw\c\grt\grt.tlc ### Loading TLC function libraries ### Initial pass through model to cache user defined code ### Caching model source code ............................................................................... .......................... ### Writing header file flightControlSystem_types.h . ### Writing header file flightControlSystem.h ### Writing source file flightControlSystem.c ### Writing header file flightControlSystem_private.h ### Writing header file rtmodel.h ### TLC code generation complete. .### Creating HTML report file flightControlSystem_codegen_rpt.html### Using toolchain: LCC-win64 v2.4.1 | gmake (64-bit Windows) ### 'C:\Users\User\MATLAB\Projects\slexamples\asbQuadcopter\work\flightControlSystem_grt_rtw\flightControlSystem.mk' is up to date ### Building 'flightControlSystem': "C:\PROGRA~1\MATLAB\R2018b\bin\win64\gmake" -f flightControlSystem.mk all C:\Users\User\MATLAB\Projects\slexamples\asbQuadcopter\work\flightControlSystem_grt_rtw>set MATLAB=C:\Program Files\MATLAB\R2018b C:\Users\User\MATLAB\Projects\slexamples\asbQuadcopter\work\flightControlSystem_grt_rtw>cd . C:\Users\User\MATLAB\Projects\slexamples\asbQuadcopter\work\flightControlSystem_grt_rtw>if "" == "" ("C:\PROGRA~1\MATLAB\R2018b\bin\win64\gmake" -f flightControlSystem.mk all ) else ("C:\PROGRA~1\MATLAB\R2018b\bin\win64\gmake" -f flightControlSystem.mk ) "C:/PROGRA~1/MATLAB/R2018b/sys/lcc64/lcc64/bin/lcc64" -c -w -noregistrylookup -nodeclspec -IC:/PROGRA~1/MATLAB/R2018b/sys/lcc64/lcc64/include64 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DMAT_FILE=1 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DTID01EQ=0 -DMODEL=flightControlSystem -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DRT -DUSE_RTMODEL -I./referenced_model_includes -IC:/Users/User/MATLAB/Projects/slexamples/asbQuadcopter/work -IC:/Users/User/MATLAB/Projects/slexamples/asbQuadcopter/work/flightControlSystem_grt_rtw -IC:/Users/User/MATLAB/Projects/SLEXAM~1/ASBQUA~1/CONTRO~1 -IC:/PROGRA~1/MATLAB/R2018b/extern/include -IC:/PROGRA~1/MATLAB/R2018b/simulink/include -IC:/PROGRA~1/MATLAB/R2018b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2018b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2018b/toolbox/vision/include -IC:/PROGRA~1/MATLAB/R2018b/toolbox/shared/dsp/vision/matlab/include -IC:/Users/User/MATLAB/Projects/slexamples/asbQuadcopter/work/slprj/grt/_sharedutils -Fo"flightControlSystem.obj" "flightControlSystem.c" Error c:\users\user\matlab\projects\slexamples\asbquadcopter\work\flightcontrolsystem_grt_rtw\flightcontrolsystem.c: c:\programdata\matlab\supportpackages\r2018b\toolbox\target\supportpackages\parrot\include\hal.h: 97 syntax error; found `(' expecting ')' Error c:\users\user\matlab\projects\slexamples\asbquadcopter\work\flightcontrolsystem_grt_rtw\flightcontrolsystem.c: c:\programdata\matlab\supportpackages\r2018b\toolbox\target\supportpackages\parrot\include\hal.h: 97 skipping `(' `aligned' `(' `8' Error c:\users\user\matlab\projects\slexamples\asbquadcopter\work\flightcontrolsystem_grt_rtw\flightcontrolsystem.c: c:\programdata\matlab\supportpackages\r2018b\toolbox\target\supportpackages\parrot\include\hal.h: 97 'double function' is an illegal field type Error c:\users\user\matlab\projects\slexamples\asbquadcopter\work\flightcontrolsystem_grt_rtw\flightcontrolsystem.c: c:\programdata\matlab\supportpackages\r2018b\toolbox\target\supportpackages\parrot\include\hal.h: 97 Syntax error; missing semicolon before `)' Error c:\users\user\matlab\projects\slexamples\asbquadcopter\work\flightcontrolsystem_grt_rtw\flightcontrolsystem.c: c:\programdata\matlab\supportpackages\r2018b\toolbox\target\supportpackages\parrot\include\hal.h: 97 skipping `)' `)' `temperature' Error c:\users\user\matlab\projects\slexamples\asbquadcopter\work\flightcontrolsystem_grt_rtw\flightcontrolsystem.c: c:\programdata\matlab\supportpackages\r2018b\toolbox\target\supportpackages\parrot\include\hal.h: 170 invalid struct field declarations Error c:\users\user\matlab\projects\slexamples\asbquadcopter\work\flightcontrolsystem_grt_rtw\flightcontrolsystem.c: c:\programdata\matlab\supportpackages\r2018b\toolbox\target\supportpackages\parrot\include\hal.h: 170 syntax error; found `HAL_echo_t' expecting '}' Error c:\users\user\matlab\projects\slexamples\asbquadcopter\work\flightcontrolsystem_grt_rtw\flightcontrolsystem.c: c:\programdata\matlab\supportpackages\r2018b\toolbox\target\supportpackages\parrot\include\hal.h: 170 skipping `HAL_echo_t' `tab_echo' `[' `30' `]' Error c:\users\user\matlab\projects\slexamples\asbquadcopter\work\flightcontrolsystem_grt_rtw\flightcontrolsystem.c: c:\programdata\matlab\supportpackages\r2018b\toolbox\target\supportpackages\parrot\include\hal.h: 172 unrecognized declaration Error c:\users\user\matlab\projects\slexamples\asbquadcopter\work\flightcontrolsystem_grt_rtw\flightcontrolsystem.c: c:\programdata\matlab\supportpackages\r2018b\toolbox\target\supportpackages\parrot\include\hal.h: 192 syntax error; found `HAL_list_echo_t' expecting '}' Error c:\users\user\matlab\projects\slexamples\asbquadcopter\work\flightcontrolsystem_grt_rtw\flightcontrolsystem.c: c:\programdata\matlab\supportpackages\r2018b\toolbox\target\supportpackages\parrot\include\hal.h: 192 skipping `HAL_list_echo_t' `HAL_list_echo' Error c:\users\user\matlab\projects\slexamples\asbquadcopter\work\flightcontrolsystem_grt_rtw\flightcontrolsystem.c: c:\programdata\matlab\supportpackages\r2018b\toolbox\target\supportpackages\parrot\include\hal.h: 193 Syntax error; missing semicolon before `HAL_list_echo_p' Error c:\users\user\matlab\projects\slexamples\asbquadcopter\work\flightcontrolsystem_grt_rtw\flightcontrolsystem.c: c:\programdata\matlab\supportpackages\r2018b\toolbox\target\supportpackages\parrot\include\hal.h: 194 unrecognized declaration Error c:\users\user\matlab\projects\slexamples\asbquadcopter\work\flightcontrolsystem_grt_rtw\flightcontrolsystem.c: c:\programdata\matlab\supportpackages\r2018b\toolbox\target\supportpackages\parrot\include\hal.h: 203 invalid struct field declarations Error c:\users\user\matlab\projects\slexamples\asbquadcopter\work\flightcontrolsystem_grt_rtw\flightcontrolsystem.c: c:\programdata\matlab\supportpackages\r2018b\toolbox\target\supportpackages\parrot\include\hal.h: 203 syntax error; found `HAL_list_echo_t' expecting '}' Error c:\users\user\matlab\projects\slexamples\asbquadcopter\work\flightcontrolsystem_grt_rtw\flightcontrolsystem.c: c:\programdata\matlab\supportpackages\r2018b\toolbox\target\supportpackages\parrot\include\hal.h: 203 skipping `HAL_list_echo_t' `list_echo' `[' `4' `]' Error c:\users\user\matlab\projects\slexamples\asbquadcopter\work\flightcontrolsystem_grt_rtw\flightcontrolsystem.c: c:\programdata\matlab\supportpackages\r2018b\toolbox\target\supportpackages\parrot\include\hal.h: 204 Syntax error; missing semicolon before `echo_altitude' Error c:\users\user\matlab\projects\slexamples\asbquadcopter\work\flightcontrolsystem_grt_rtw\flightcontrolsystem.c: c:\programdata\matlab\supportpackages\r2018b\toolbox\target\supportpackages\parrot\include\hal.h: 210 unrecognized declaration Error c:\users\user\matlab\projects\slexamples\asbquadcopter\work\flightcontrolsystem_grt_rtw\flightcontrolsystem.c: c:\programdata\matlab\supportpackages\r2018b\toolbox\target\supportpackages\parrot\include\hal.h: 390 invalid struct field declarations Error c:\users\user\matlab\projects\slexamples\asbquadcopter\work\flightcontrolsystem_grt_rtw\flightcontrolsystem.c: c:\programdata\matlab\supportpackages\r2018b\toolbox\target\supportpackages\parrot\include\hal.h: 390 syntax error; found `HAL_BLDC_motor_command_t' expecting '}' Error c:\users\user\matlab\projects\slexamples\asbquadcopter\work\flightcontrolsystem_grt_rtw\flightcontrolsystem.c: c:\programdata\matlab\supportpackages\r2018b\toolbox\target\supportpackages\parrot\include\hal.h: 390 too many errors gmake: *** [flightControlSystem.obj] Error 1 C:\Users\User\MATLAB\Projects\slexamples\asbQuadcopter\work\flightControlSystem_grt_rtw>echo The make command returned an error of 2 The make command returned an error of 2 C:\Users\User\MATLAB\Projects\slexamples\asbQuadcopter\work\flightControlSystem_grt_rtw>An_error_occurred_during_the_call_to_make 'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command, operable program or batch file.
### Build procedure for model: 'flightControlSystem' aborted due to an error.
Error(s) encountered while building "flightControlSystem": ### Failed to generate all binary outputs.
  8 comentarios
Evelyn Pacheco
Evelyn Pacheco el 26 de Ag. de 2019
Does anybody had found the solution for this issue? I got the same problem It appears:
### Build procedure for model: 'flightControlSystem' aborted due to an error.
Error(s) encountered while building "flightControlSystem":
### Failed to generate all binary outputs.
I have not modified nothing in the original model actually.
bouboule
bouboule el 2 de Mayo de 2021
Got the same error unable to resolve it

Iniciar sesión para comentar.

Respuestas (1)

WEN RUI, MICHAEL MAK
WEN RUI, MICHAEL MAK el 26 de Ag. de 2019
Editada: Walter Roberson el 3 de Mayo de 2021
I have found out that this error occurs if the target was not set at the beginning of the project. Please refer to this link:

Categorías

Más información sobre MATLAB Support Package for Parrot Drones en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by