### Starting build procedure for model: light_sensor Code Generation 1Elapsed: 5 sec### Generating code into build folder: C:\Users\Ulrich\Documents\MATLAB\light_sensor_ert_rtw### Invoking Target Language Compiler on light_sensor.rtw### Using System Target File: C:\Program Files\MATLAB\R2015b\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 light_sensor.h### Writing header file light_sensor_types.h### Writing header file rtwtypes.h### Writing source file light_sensor.c### Writing header file light_sensor_private.h.### Writing source file light_sensor_data.c### Writing source file ert_main.c### TLC code generation complete.### Creating project marker file: rtw_proj.tmw### Evaluating PostCodeGenCommand specified in the model### Using toolchain: Arduino AVR v1.6.1 | gmake (64-bit Windows)### 'C:\Users\Ulrich\Documents\MATLAB\light_sensor_ert_rtw\light_sensor.mk' is up to date### Building 'light_sensor': C:\PROGRA~1\MATLAB\R2015b\bin\win64\gmake -f light_sensor.mk allC:/MATLAB/SupportPackages/R2015b/arduino-1.6.1/hardware/tools/avr/bin/avr-gcc -c -g -w -ffunction-sections -fdata-sections -MMD -DARDUINO=10601 -Os -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -D_RUNONTARGETHARDWARE_BUILD_ -DMODEL=light_sensor -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 -DRT -DSTACK_SIZE=64 -DMW_TIMERID=1 -DMW_PRESCALAR=1024 -DMW_TIMERCOUNT=49911 -DMW_SCHEDULERCOUNTER=1 -D_RTT_BAUDRATE_SERIAL0_=9600 -D_RTT_ANALOG_REF_=0 -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 -DRT -DSTACK_SIZE=64 -DMODEL=light_sensor -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/MATLAB/SupportPackages/R2015b/arduinobase/toolbox/target/supportpackages/arduinobase/include -IC:/MATLAB/SupportPackages/R2015b/arduinobase/toolbox/target/supportpackages/arduinobase/blocks/sfcn/include -IC:/Users/Ulrich/Documents/MATLAB/light_sensor_ert_rtw -IC:/Users/Ulrich/Documents/MATLAB -ID:/Skool/MATLAB Sessions/Arduino uno -IC:/PROGRA~1/MATLAB/R2015b/extern/include -IC:/PROGRA~1/MATLAB/R2015b/simulink/include -IC:/PROGRA~1/MATLAB/R2015b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2015b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2015b/rtw/c/ert -IC:/MATLAB/SupportPackages/R2015b/arduino-1.6.1/hardware/arduino/avr/cores/arduino -IC:/MATLAB/SupportPackages/R2015b/arduino-1.6.1/hardware/arduino/avr/variants/standard -IC:/MATLAB/SupportPackages/R2015b/arduino-1.6.1/libraries/Servo/src -IC:/MATLAB/SupportPackages/R2015b/arduino/toolbox/target/supportpackages/arduinotarget/registry/../include -IC:/MATLAB/SupportPackages/R2015b/arduino/toolbox/target/supportpackages/arduinotarget/registry/../scheduler/include -o "light_sensor.o" "light_sensor.c" avr-gcc: error: Sessions/Arduino: No such file or directory avr-gcc: error: uno: No such file or directory gmake: *** [light_sensor.o] Error 1### Build procedure for model: 'light_sensor' aborted due to an error.Error(s) encountered while building "light_sensor":### Failed to generate all binary outputs.
MATLAB: I ran the simplest model on arduino board and I still have this error. can someone please help me
arduinoMATLAB and Simulink Student Suitesimulink
Best Answer