How to solve the problem " Exception calling MATLAB: Error(s) encountered while building "flightControlSystem" "
12 views (last 30 days)
Show older comments
I try to build and deploy the code into parrot mambo drone (designed with simulink) on macOs Big Sur.
everything is done, connection is stable and connected well.
but when I try to set PARROT target the error happened
Error using setPARROTCodeGen (line 45)
Cannot set Alias when StorageClass is 'Auto'.
Error in matlab.internal.project.util.runMATLABCodeInBase
I try to bypass it with "generate flight code"
another error occurs;
### Starting serial model reference code generation build
### Checking the status of model reference code generation target for model 'conversionYUV' used in 'flightControlSystem'
### Checking for structural changes in conversionYUV because the model reference rebuild option is set to 'If any changes detected'. Structural changes cause the model reference code generation target to be rebuilt.
### Starting build procedure for: conversionYUV
### Generating code and artifacts to 'Model specific' folder structure
### Code for the model reference code generation target for model conversionYUV is up to date because no functional changes were found in the referenced model.
### Model reference code generation target for conversionYUV is up to date.
### Checking the status of model reference code generation target for model 'flightController' used in 'flightControlSystem'
### Checking for structural changes in flightController because the model reference rebuild option is set to 'If any changes detected'. Structural changes cause the model reference code generation target to be rebuilt.
### Starting build procedure for: flightController
### Generating code and artifacts to 'Model specific' folder structure
### Code for the model reference code generation target for model flightController is up to date because no functional changes were found in the referenced model.
### Model reference code generation target for flightController is up to date.
### Checking the status of model reference code generation target for model 'stateEstimator' used in 'flightControlSystem'
### Checking for structural changes in stateEstimator because the model reference rebuild option is set to 'If any changes detected'. Structural changes cause the model reference code generation target to be rebuilt.
### Starting build procedure for: stateEstimator
### Generating code and artifacts to 'Model specific' folder structure
### Code for the model reference code generation target for model stateEstimator is up to date because no functional changes were found in the referenced model.
### Model reference code generation target for stateEstimator is up to date.
### Starting build procedure for: flightControlSystem
### Generating code and artifacts to 'Model specific' folder structure
### Generating code into build folder: /Users/haikalbaiqunni/Documents/MATLAB/asbQuadcopter 210916/work/flightControlSystem_ert_rtw
### Invoking Target Language Compiler on flightControlSystem.rtw
### Using System Target File: /Applications/MATLAB_R2021b.app/rtw/c/ert/ert.tlc
### Loading TLC function libraries
............
### Generating TLC interface API for custom data
.
### 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 source file flightControlSystem_data.c
### Writing header file rtmodel.h
### Writing source file ert_main.c
### TLC code generation complete.
.### Saving binary information cache.
### Skipping makefile generation and compilation because /Users/haikalbaiqunni/Documents/MATLAB/asbQuadcopter 210916/work/slprj/ert/_sharedutils/rtwshared.a is up to date
### Using toolchain: Sourcery G++ Lite GNU Toolchain for Drones
### Creating '/Users/haikalbaiqunni/Documents/MATLAB/asbQuadcopter 210916/work/flightControlSystem_ert_rtw/flightControlSystem.mk' ...
### Building 'flightControlSystem': "/Applications/MATLAB_R2021b.app/bin/maci64/gmake" -j7 -f flightControlSystem.mk all
controlCommand.dep:1: *** target pattern contains no `%'. Stop.
### Creating HTML report file index.html
### Build procedure for flightControlSystem aborted due to an error.
Build Summary
Top model targets built:
Model Action Rebuild Reason
===============================================================================
flightControlSystem Failed Code generation information file does not exist.
0 of 4 models built (3 models already up to date)
Build duration: 0h 0m 35.769s
Error using RTW.genMakefileAndBuild>i_runMakefile (line 1849)
Error(s) encountered while building "flightControlSystem"
Error in RTW.genMakefileAndBuild (line 448)
i_runMakefile(lBuildName, lBuildLogger, lTMFProperties, lWrappedMakeCmd, ...
Error in codebuild>i_buildTopComponent (line 803)
lMakeResult = RTW.genMakefileAndBuild...
Error in codebuild (line 273)
lMakeResult = i_buildTopComponent(buildInfo, buildOptsTop,lBuildFolderFullPath);
Error in coder.internal.ModelBuilder>i_buildProcedure (line 1523)
compileResult = codebuild(lBuildInfoUpdated, compileBuildOptsUpdated);
Error in coder.internal.ModelBuilder.make_rtw (line 119)
[buildResult, mainObjFolder] = i_buildProcedure...
Error in build_target
Error in build_target
Error in build_standalone_rtw_target
Error in slbuild_private
Error in slbuild_private
Error in sl_feval
Error in slbuild
Error in slbuild
Error in rtwbuild
Error in generateFlightCode (line 9)
rtwbuild(model);
Error in matlab.internal.project.util.runMATLABCodeInBase
Error in matlab.internal.project.util.runMATLABCodeInBase
Error in matlab.internal.project.util.runMATLABCodeInBase
Error in matlab.internal.project.util.runMATLABCodeInBase
Exception calling MATLAB:
Error(s) encountered while building "flightControlSystem"
whats does it meant? how to solve this problem?
Thank You
1 Comment
Javier Mauricio Zaraza Espinosa
on 1 Jun 2023
Hi, i am having the same issue. How did you fixed it ?
Answers (1)
Vinod Hegde
on 6 Dec 2023
Edited: Vinod Hegde
on 6 Dec 2023
Hello,
To assist you more effectively, could you please provide detailed information on the following:
- Which version of MATLAB are you currently using?
- Can you specify the version of the Support Package that you have installed?
- Have you encountered any issues or failures during the installation of the Support Package? If so, could you describe those issues?
- Are all the required dependent toolboxes for the Parrot hardware support package properly installed on your system?
Thank you.
0 Comments
See Also
Categories
Find more on MATLAB Support Package for Parrot Drones in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!