Clear Filters
Clear Filters

Deploy to hardware error

2 views (last 30 days)
Alberto Prudhomme
Alberto Prudhomme on 23 Feb 2017
Commented: Taimur Zaman on 30 Jul 2018
Hi,
I'm trying to deploy a program to my TivaC Launchpad but I receive this error and I don't have any idea of what it means:
### Generating code into build folder: C:\Users\Alberto\Desktop\Nueva carpeta\untitled_ert_rtw
### Invoking Target Language Compiler on untitled.rtw
### Using System Target File: C:\Program Files\MATLAB\R2016a\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 untitled.h
### Writing header file untitled_types.h
### Writing header file rtwtypes.h
### Writing source file untitled.c
### Writing header file untitled_private.h
.
### Writing source file untitled_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: Energia Tiva v14 | gmake (64-bit Windows)
### 'C:\Users\Alberto\Desktop\Nueva carpeta\untitled_ert_rtw\untitled.mk' is up to date
### Building 'untitled': C:\PROGRA~1\MATLAB\R2016a\bin\win64\gmake -f untitled.mk all
C:/Program Files/MATLAB/R2016a/energia-0101E0016/hardware/tools/lm4f/bin/arm-none-eabi-gcc -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -mthumb -fno-rtti -fno-exceptions -ffunction-sections -fdata-sections -Wall -g -O0 -c -w -MMD -Os -DF_CPU=80000000L -DARDUINO=101 -DENERGIA=13 -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_TIVA123 -save-temps -DMODEL=untitled -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -D__FPU_PRESENT=1 -D__FPU_USED=1 -DRT -DSTACK_SIZE=64 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_BAUDRATE_SERIAL1_=9600 -D_RTT_BAUDRATE_SERIAL2_=9600 -D_RTT_BAUDRATE_SERIAL3_=9600 -DONESTEPFCN=1 -DTERMFCN=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 -D__FPU_PRESENT=1 -D__FPU_USED=1 -DRT -DSTACK_SIZE=64 -DMODEL=untitled -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/Alberto/Desktop/EMBEDD~1/COMMON~1/include -IC:/Users/Alberto/Desktop/EMBEDD~1/COMMON~1/blocks/sfcn/include -IC:/PROGRA~1/MATLAB/R2016a/simulink/include/sf_runtime -IC:/Users/Alberto/Desktop/NUEVAC~1/untitled_ert_rtw -IC:/Users/Alberto/Desktop/NUEVAC~1 -IC:/PROGRA~1/MATLAB/R2016a/extern/include -IC:/PROGRA~1/MATLAB/R2016a/simulink/include -IC:/PROGRA~1/MATLAB/R2016a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2016a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2016a/rtw/c/ert -IC:/PROGRA~1/MATLAB/R2016a/energia-0101E0016/hardware/lm4f/cores/lm4f -IC:/PROGRA~1/MATLAB/R2016a/energia-0101E0016/hardware/lm4f/cores/lm4f/driverlib -IC:/PROGRA~1/MATLAB/R2016a/energia-0101E0016/hardware/lm4f/variants/stellarpad -IC:/PROGRA~1/MATLAB/R2016a/energia-0101E0016/hardware/lm4f/libraries/SPI -IC:/PROGRA~1/MATLAB/R2016a/energia-0101E0016/hardware/lm4f/libraries/SPI/utility -IC:/PROGRA~1/MATLAB/R2016a/energia-0101E0016/hardware/lm4f/libraries/Ethernet/utility -IC:/PROGRA~1/MATLAB/R2016a/energia-0101E0016/hardware/lm4f/libraries/Ethernet -IC:/PROGRA~1/MATLAB/R2016a/energia-0101E0016/hardware/lm4f/arm-none-eabi/include -IC:/PROGRA~1/MATLAB/R2016a/energia-0101E0016/hardware/tools/lm4f/arm-none-eabi/include -IC:/Users/Alberto/Desktop/EMBEDD~1/ENERGI~1/@SLCUS~1/../include -IC:/Users/Alberto/Desktop/EMBEDD~1/ENERGI~1/@SLCUS~1/../SCHEDU~1/include -o "untitled.o" "untitled.c"
"C:/Program" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
gmake: *** [untitled.o] Error 1
### Creating HTML report file untitled_codegen_rpt.html
### Build procedure for model: 'untitled' aborted due to an error.
Error(s) encountered while building "untitled":
### Failed to generate all binary outputs.
Some idea??
Thanks
  3 Comments
Alberto Prudhomme
Alberto Prudhomme on 23 Feb 2017
Hi Walter;
Thanks a lot for your answer.
You are correct, the problem was in the Energia Folder, I saved it in:
C:Program Files/..../Matlab
But I moved it for C: Matlab/
and it works perfect.
Thanks a lot
Regards
Taimur Zaman
Taimur Zaman on 30 Jul 2018
hi i am getting same problem but i am unable to resolve it. could you please help me out.
### Generating code into build folder: C:\Users\Dell\Downloads\untitled_ert_rtw ### Invoking Target Language Compiler on untitled.rtw ### Using System Target File: G:\installed_mlab\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 untitled.h ### Writing header file untitled_types.h ### Writing header file rtwtypes.h . ### Writing header file multiword_types.h ### Writing source file untitled.c ### Writing header file untitled_private.h ### Writing header file rtmodel.h ### Writing source file ert_main.c ### TLC code generation complete. ### Generating TLC interface API. .. ### Creating data type transition file untitled_dt.h ### Evaluating PostCodeGenCommand specified in the model ### Using toolchain: Arduino AVR v1.6.13 | gmake (64-bit Windows) ### Creating 'C:\Users\Dell\Downloads\untitled_ert_rtw\untitled.mk' ... ### Building 'untitled': "G:\installed_mlab\bin\win64\gmake" -f untitled.mk all
C:\Users\Dell\Downloads\untitled_ert_rtw>cd .
C:\Users\Dell\Downloads\untitled_ert_rtw>if "" == "" ("G:\installed_mlab\bin\win64\gmake" -f untitled.mk all ) else ("G:\installed_mlab\bin\win64\gmake" -f untitled.mk ) gmake: * No rule to make target `D:/MyFolder/custom_block/../src/dab.cpp', needed by `dab.o'. Stop.
C:\Users\Dell\Downloads\untitled_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2
C:\Users\Dell\Downloads\untitled_ert_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. ### Creating HTML report file untitled_codegen_rpt.html ### Build procedure for model: 'untitled' aborted due to an error. Error(s) encountered while building "untitled": ### Failed to generate all binary outputs.

Sign in to comment.

Answers (0)

Categories

Find more on Deployment, Integration, and Supported 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!