hi mister, what causes my program to be wrong .. even though before it could be run?

1 view (last 30 days)
### Starting build procedure for model: ADDDDF ### Generating code and artifacts to 'Model specific' folder structure
Code Generation
1
Elapsed: 28 sec
### Generating code into build folder: D:\newtry\ADDDDF_ert_rtw ### Invoking Target Language Compiler on ADDDDF.rtw ### Using System Target File: C:\Program Files\Polyspace\R2019a\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 ADDDDF_types.h ### Writing header file ADDDDF.h ### Writing source file ADDDDF.c . ### Writing header file rtwtypes.h ### Writing header file multiword_types.h ### Writing header file ADDDDF_private.h ### Writing source file ADDDDF_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 ADDDDF_dt.h .### Evaluating PostCodeGenCommand specified in the model ### Using toolchain: Arduino AVR ### Creating 'D:\newtry\ADDDDF_ert_rtw\ADDDDF.mk' ... ### Building 'ADDDDF': "C:\PROGRA~1\POLYSP~1\R2019a\bin\win64\gmake" -f ADDDDF.mk all D:\newtry\ADDDDF_ert_rtw>cd . D:\newtry\ADDDDF_ert_rtw>if "" == "" ("C:\PROGRA~1\POLYSP~1\R2019a\bin\win64\gmake" -f ADDDDF.mk all ) else ("C:\PROGRA~1\POLYSP~1\R2019a\bin\win64\gmake" -f ADDDDF.mk ) C:/ProgramData/MATLAB/SupportPackages/R2019a/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/bin/avr-g++ -std=gnu++11 -fpermissive -fno-exceptions -fno-threadsafe-statics -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10801 -MMD -MP -MF"MW_AnalogInput.dep" -MT"MW_AnalogInput.o" -Os -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -D_ROTH_MEGA2560_ -DMODEL=ADDDDF -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -DON_TARGET_WAIT_FOR_START=1 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DMW_TIMERID=5 -DMW_PRESCALAR=64 -DMW_TIMERCOUNT=65511 -DMW_SCHEDULERCOUNTER=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_BAUDRATE_SERIAL1_=9600 -D_RTT_BAUDRATE_SERIAL2_=9600 -D_RTT_BAUDRATE_SERIAL3_=9600 -D_RTT_ANALOG_REF_=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DEXT_MODE=1 -DINTEGER_CODE=0 -DMT=0 -DTID01EQ=0 -DON_TARGET_WAIT_FOR_START=1 -DXCP_CUSTOM_PLATFORM -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=ADDDDF -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -ID:/newtry -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2019a/toolbox/target/shared/svd/include -ID:/newtry/ADDDDF_ert_rtw -IC:/PROGRA~1/POLYSP~1/R2019a/extern/include -IC:/PROGRA~1/POLYSP~1/R2019a/simulink/include -IC:/PROGRA~1/POLYSP~1/R2019a/rtw/c/src -IC:/PROGRA~1/POLYSP~1/R2019a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/POLYSP~1/R2019a/rtw/c/ert -IC:/PROGRA~1/POLYSP~1/R2019a/toolbox/coder/rtiostream/src -IC:/PROGRA~1/POLYSP~1/R2019a/toolbox/coder/rtiostream/src/utils -IC:/ProgramData/MATLAB/SupportPackages/R2019a/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/cores/arduino -IC:/ProgramData/MATLAB/SupportPackages/R2019a/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/arduino/avr/variants/mega -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2019a/toolbox/target/SUPPOR~1/ARDUIN~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2019a/toolbox/target/SUPPOR~1/ARDUIN~1/SCHEDU~1/include -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2019a/toolbox/target/SUPPOR~1/ARDUIN~2/include -IC:/ProgramData/MATLAB/SupportPackages/R2019a/3P.instrset/arduinoide.instrset/arduino-1.8.1/hardware/tools/avr/avr/include/avr -IC:/PROGRA~3/MATLAB/SUPPOR~1/R2019a/toolbox/target/shared/EXTERN~1/include -o MW_AnalogInput.o C:/ProgramData/MATLAB/SupportPackages/R2019a/toolbox/target/supportpackages/arduinobase/src/MW_AnalogInput.cpp The system cannot find the path specified. gmake: *** [MW_AnalogInput.o] Error 1 D:\newtry\ADDDDF_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2 D:\newtry\ADDDDF_ert_rtw>exit 1 ### Creating HTML report file ADDDDF_codegen_rpt.html
### Build procedure for model: 'ADDDDF' aborted due to an error.
Error(s) encountered while building "ADDDDF": ### Failed to generate all binary outputs.
  8 Comments
Walter Roberson
Walter Roberson on 18 Jul 2020
Does C:/ProgramData/MATLAB/SupportPackages/R2019a/toolbox/target/supportpackages/arduinobase/src/MW_AnalogInput.cpp exist on your system?

Sign in to comment.

Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!