Cannot build a Simulink file for Lego EV3.

1 view (last 30 days)
Using the Simulink Support Package for the EV3 I am getting the following error on build:
=== Build (Elapsed: 12 sec) ===
### Starting build procedure for model: narentest
### Generating code into build folder: C:\Users\Naren\Desktop\ACT\narentest_ert_rtw
### Invoking Target Language Compiler on narentest.rtw
### Using System Target File: D:\MATLAB\R2017a\rtw\c\ert\ert.tlc
### Loading TLC function libraries
### Initial pass through model to cache user defined code
.
### Caching model source code
### Writing header file narentest.h
.
### Writing header file narentest_types.h
### Writing header file rtwtypes.h
### Writing source file narentest.c
### Writing header file narentest_private.h
### Writing source file narentest_data.c
.
### Writing header file rtmodel.h
### Writing source file ert_main.c
### TLC code generation complete.
### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: Sourcery G++ Lite v2009q3 v4.7 | gmake (64-bit Windows)
### Creating 'C:\Users\Naren\Desktop\ACT\narentest_ert_rtw\narentest.mk' ...
### Building 'narentest': "D:\MATLAB\R2017a\bin\win64\gmake" -f narentest.mk all
C:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\ev3sourcerylite.instrset\CodeSourcery\bin/arm-none-linux-gnueabi-gcc -c -MMD -MP -MF"narentest.dep" -MT"narentest.o" -O0 -IC:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\ev3sourcerylite.instrset\CodeSourcery\arm-none-linux-gnueabi\libc\usr\include -IC:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\ev3sourcerylite.instrset\CodeSourcery\lib\gcc\arm-none-linux-gnueabi\4.4.1\include -IC:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\ev3sourcerylite.instrset\CodeSourcery\lib\gcc\arm-none-linux-gnueabi\4.4.1\include-fixed -IC:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\ev3sourcecode_lms2012.instrset\EV3Source -IC:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\ev3sourcecode_lmstypes.instrset\EV3Source -IC:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\ev3sourcecode_bytecodes.instrset\EV3Source -c -nostdinc -DMODEL=narentest -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -D_RTT_LCD_=1 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=narentest -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Naren/Desktop/ACT -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/ev3/include -ID:/MATLAB/R2017a/simulink/include/sf_runtime -IC:/Users/Naren/Desktop/ACT/narentest_ert_rtw -ID:/MATLAB/R2017a/extern/include -ID:/MATLAB/R2017a/simulink/include -ID:/MATLAB/R2017a/rtw/c/src -ID:/MATLAB/R2017a/rtw/c/src/ext_mode/common -ID:/MATLAB/R2017a/rtw/c/ert -IC:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\ev3sourcecode_lmstypes.instrset\EV3Source/.. -IC:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\ev3sourcecode_lms2012.instrset\EV3Source/.. -IC:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\ev3sourcecode_bytecodes.instrset\EV3Source/.. -ID:/MATLAB/R2017a/toolbox/target/codertarget/rtos/inc -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/ev3/src -o narentest.o narentest.c
The system cannot find the path specified.
gmake: *** [narentest.o] Error 1
### Creating HTML report file narentest_codegen_rpt.html
### Build procedure for model: 'narentest' aborted due to an error.
Error:Error(s) encountered while building "narentest":
### Failed to generate all binary outputs.
### Build procedure for model: 'narentest' aborted due to an error.
Error(s) encountered while building "narentest":
### Failed to generate all binary outputs.
  1 Comment
Walter Roberson
Walter Roberson on 18 Jun 2017
Why is your MATLAB split over C: and D: ?
Unfortunately the message is not at all specific about which path it could not find. You should check the existence of each of the following:
narentest.c
narentest.o
C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/ev3/include
C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/ev3/src
C:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\ev3sourcecode_bytecodes.instrset
C:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\ev3sourcecode_bytecodes.instrset\EV3Source
C:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\ev3sourcecode_lms2012.instrset
C:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\ev3sourcecode_lms2012.instrset\EV3Source
C:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\ev3sourcecode_lmstypes.instrset
C:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\ev3sourcecode_lmstypes.instrset\EV3Source
C:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\ev3sourcerylite.instrset\CodeSourcery\arm-none-linux-gnueabi\libc\usr\include
C:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\ev3sourcerylite.instrset\CodeSourcery\bin/arm-none-linux-gnueabi-gcc
C:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\ev3sourcerylite.instrset\CodeSourcery\lib\gcc\arm-none-linux-gnueabi\4.4.1\include
C:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\ev3sourcerylite.instrset\CodeSourcery\lib\gcc\arm-none-linux-gnueabi\4.4.1\include-fixed
C:/Users/Naren/Desktop/ACT
C:/Users/Naren/Desktop/ACT/narentest_ert_rtw
D:/MATLAB/R2017a/extern/include
D:/MATLAB/R2017a/rtw/c/ert
D:/MATLAB/R2017a/rtw/c/src
D:/MATLAB/R2017a/rtw/c/src/ext_mode/common
D:/MATLAB/R2017a/simulink/include
D:/MATLAB/R2017a/simulink/include/sf_runtime
D:/MATLAB/R2017a/toolbox/target/codertarget/rtos/inc

Sign in to comment.

Answers (0)

Categories

Find more on LEGO MINDSTORMS EV3 Hardware 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!