BEST Robotics Forum
Register Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Mahaflac

Junior Member
Registered:
Posts: 10
Reply with quote  #1 
I am a rookie coach and probably in over my head.  I have matlab and have simulink with the micro controller package installed. I went to a workshop this summer and was able to upload a model to the controller but do not know enough to fix error problems

I have a simple model constructed for tank mode controls. When I "deploy to hardware", i get the following message with an error at the end telling me that procedure aborted. 

### Generating code into build folder: C:\Users\lmahaffey\Documents\MATLAB\Add-Ons\Apps\VEXMicrocontrollerCompanionApp\code\vexarmcortex_tankrobot_setup_ert_rtw
### Invoking Target Language Compiler on vexarmcortex_tankrobot_setup.rtw
### Using System Target File: C:\Program Files\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 vexarmcortex_tankrobot_setup.h
.
### Writing header file vexarmcortex_tankrobot_setup_types.h
### Writing header file vexarmcortex_tankrobot_setup_private.h
### Writing header file rtwtypes.h
### Writing header file multiword_types.h
### Writing source file vexarmcortex_tankrobot_setup.c
### Writing header file rtmodel.h
### Writing source file vexarmcortex_tankrobot_setup_data.c
.
### Writing source file ert_main.c
### TLC code generation complete.
### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: GNU Tools for VEX ARM Cortex v5.2 | gmake (64-bit Windows)
### Creating 'C:\Users\lmahaffey\Documents\MATLAB\Add-Ons\Apps\VEXMicrocontrollerCompanionApp\code\vexarmcortex_tankrobot_setup_ert_rtw\vexarmcortex_tankrobot_setup.mk' ...
### Building 'vexarmcortex_tankrobot_setup': "C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f vexarmcortex_tankrobot_setup.mk all

C:\Users\lmahaffey\Documents\MATLAB\Add-Ons\Apps\VEXMicrocontrollerCompanionApp\code\vexarmcortex_tankrobot_setup_ert_rtw>cd .

C:\Users\lmahaffey\Documents\MATLAB\Add-Ons\Apps\VEXMicrocontrollerCompanionApp\code\vexarmcortex_tankrobot_setup_ert_rtw>if "" == "" ("C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f vexarmcortex_tankrobot_setup.mk all ) else ("C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f vexarmcortex_tankrobot_setup.mk )
C:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/gnuarm-armcortex.instrset/bin/arm-none-eabi-gcc -std=gnu99 -mthumb -mcpu=cortex-m3 -mlittle-endian -c -Wall -ffunction-sections -fsigned-char -fomit-frame-pointer -fsingle-precision-constant -MMD -MP -MF"vexarmcortex_tankrobot_setup.dep" -MT"vexarmcortex_tankrobot_setup.o" -O0 -DMODEL=vexarmcortex_tankrobot_setup -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DUSE_STDPERIPH_DRIVER -DNULL=0 -D__NO_SYSTEM_INIT -DARM_MATH_CM3=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DPROS_THREAD_STACK_SIZE=1088 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DUSE_STDPERIPH_DRIVER -DNULL=0 -D__NO_SYSTEM_INIT -DARM_MATH_CM3=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=vexarmcortex_tankrobot_setup -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/lmahaffey/Documents/MATLAB/Add-Ons/Apps/VEXMicrocontrollerCompanionApp/code -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/include -IC:/Users/lmahaffey/Documents/MATLAB/Add-Ons/Apps/VEXMicrocontrollerCompanionApp/code/vexarmcortex_tankrobot_setup_ert_rtw -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/vexarmcortex_examples -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/pros-lib.instrset/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/pros-lib.instrset/firmware -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/pros_rtos/include -o vexarmcortex_tankrobot_setup.o vexarmcortex_tankrobot_setup.c
C:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/gnuarm-armcortex.instrset/bin/arm-none-eabi-gcc -std=gnu99 -mthumb -mcpu=cortex-m3 -mlittle-endian -c -Wall -ffunction-sections -fsigned-char -fomit-frame-pointer -fsingle-precision-constant -MMD -MP -MF"vexarmcortex_tankrobot_setup_data.dep" -MT"vexarmcortex_tankrobot_setup_data.o" -O0 -DMODEL=vexarmcortex_tankrobot_setup -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DUSE_STDPERIPH_DRIVER -DNULL=0 -D__NO_SYSTEM_INIT -DARM_MATH_CM3=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DPROS_THREAD_STACK_SIZE=1088 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DUSE_STDPERIPH_DRIVER -DNULL=0 -D__NO_SYSTEM_INIT -DARM_MATH_CM3=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=vexarmcortex_tankrobot_setup -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/lmahaffey/Documents/MATLAB/Add-Ons/Apps/VEXMicrocontrollerCompanionApp/code -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/include -IC:/Users/lmahaffey/Documents/MATLAB/Add-Ons/Apps/VEXMicrocontrollerCompanionApp/code/vexarmcortex_tankrobot_setup_ert_rtw -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/vexarmcortex_examples -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/pros-lib.instrset/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/pros-lib.instrset/firmware -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/pros_rtos/include -o vexarmcortex_tankrobot_setup_data.o vexarmcortex_tankrobot_setup_data.c
C:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/gnuarm-armcortex.instrset/bin/arm-none-eabi-gcc -std=gnu99 -mthumb -mcpu=cortex-m3 -mlittle-endian -c -Wall -ffunction-sections -fsigned-char -fomit-frame-pointer -fsingle-precision-constant -MMD -MP -MF"operatorControl.dep" -MT"operatorControl.o" -O0 -DMODEL=vexarmcortex_tankrobot_setup -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DUSE_STDPERIPH_DRIVER -DNULL=0 -D__NO_SYSTEM_INIT -DARM_MATH_CM3=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DPROS_THREAD_STACK_SIZE=1088 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DUSE_STDPERIPH_DRIVER -DNULL=0 -D__NO_SYSTEM_INIT -DARM_MATH_CM3=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=vexarmcortex_tankrobot_setup -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/lmahaffey/Documents/MATLAB/Add-Ons/Apps/VEXMicrocontrollerCompanionApp/code -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/include -IC:/Users/lmahaffey/Documents/MATLAB/Add-Ons/Apps/VEXMicrocontrollerCompanionApp/code/vexarmcortex_tankrobot_setup_ert_rtw -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/vexarmcortex_examples -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/pros-lib.instrset/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/pros-lib.instrset/firmware -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/pros_rtos/include -o operatorControl.o C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/src/operatorControl.c
C:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/gnuarm-armcortex.instrset/bin/arm-none-eabi-gcc -std=gnu99 -mthumb -mcpu=cortex-m3 -mlittle-endian -c -Wall -ffunction-sections -fsigned-char -fomit-frame-pointer -fsingle-precision-constant -MMD -MP -MF"initializeIO.dep" -MT"initializeIO.o" -O0 -DMODEL=vexarmcortex_tankrobot_setup -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DUSE_STDPERIPH_DRIVER -DNULL=0 -D__NO_SYSTEM_INIT -DARM_MATH_CM3=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DPROS_THREAD_STACK_SIZE=1088 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DUSE_STDPERIPH_DRIVER -DNULL=0 -D__NO_SYSTEM_INIT -DARM_MATH_CM3=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=vexarmcortex_tankrobot_setup -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/lmahaffey/Documents/MATLAB/Add-Ons/Apps/VEXMicrocontrollerCompanionApp/code -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/include -IC:/Users/lmahaffey/Documents/MATLAB/Add-Ons/Apps/VEXMicrocontrollerCompanionApp/code/vexarmcortex_tankrobot_setup_ert_rtw -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/vexarmcortex_examples -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/pros-lib.instrset/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/pros-lib.instrset/firmware -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/pros_rtos/include -o initializeIO.o C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/src/initializeIO.c
C:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/gnuarm-armcortex.instrset/bin/arm-none-eabi-gcc -std=gnu99 -mthumb -mcpu=cortex-m3 -mlittle-endian -c -Wall -ffunction-sections -fsigned-char -fomit-frame-pointer -fsingle-precision-constant -MMD -MP -MF"pros_rtos_init.dep" -MT"pros_rtos_init.o" -O0 -DMODEL=vexarmcortex_tankrobot_setup -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DUSE_STDPERIPH_DRIVER -DNULL=0 -D__NO_SYSTEM_INIT -DARM_MATH_CM3=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DPROS_THREAD_STACK_SIZE=1088 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DUSE_STDPERIPH_DRIVER -DNULL=0 -D__NO_SYSTEM_INIT -DARM_MATH_CM3=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=vexarmcortex_tankrobot_setup -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/lmahaffey/Documents/MATLAB/Add-Ons/Apps/VEXMicrocontrollerCompanionApp/code -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/include -IC:/Users/lmahaffey/Documents/MATLAB/Add-Ons/Apps/VEXMicrocontrollerCompanionApp/code/vexarmcortex_tankrobot_setup_ert_rtw -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/vexarmcortex_examples -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/pros-lib.instrset/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/pros-lib.instrset/firmware -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/pros_rtos/include -o pros_rtos_init.o C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/pros_rtos/src/pros_rtos_init.c
C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/pros_rtos/src/pros_rtos_init.c: In function 'prosRTOSInit':
C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/pros_rtos/src/pros_rtos_init.c:195:24: warning: passing argument 1 of 'taskCreateWrapper' from incompatible pointer type [-Wincompatible-pointer-types]
taskCreateWrapper(&baseRateTask, PROS_THREAD_STACK_SIZE, NULL, defaultPriority);
^
In file included from C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/pros_rtos/include/pros_rtos_init.h:7:0,
from C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/pros_rtos/src/pros_rtos_init.c:8:
C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/pros_rtos/include/pros_wrapper.h:13:13: note: expected 'void (*)(void *)' but argument is of type 'void * (*)(void *)'
extern void taskCreateWrapper(void (*functionPtr)(void *arg), unsigned int stackSize, void *taskIdPtr, unsigned int taskPriority);
^
C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/pros_rtos/src/pros_rtos_init.c:208:27: warning: passing argument 1 of 'taskCreateWrapper' from incompatible pointer type [-Wincompatible-pointer-types]
taskCreateWrapper(&schedulerTask, PROS_THREAD_STACK_SIZE, (void *)&baseRatePeriod, defaultPriority);
^
In file included from C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/pros_rtos/include/pros_rtos_init.h:7:0,
from C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/pros_rtos/src/pros_rtos_init.c:8:
C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/pros_rtos/include/pros_wrapper.h:13:13: note: expected 'void (*)(void *)' but argument is of type 'void * (*)(void *)'
extern void taskCreateWrapper(void (*functionPtr)(void *arg), unsigned int stackSize, void *taskIdPtr, unsigned int taskPriority);
^
C:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/gnuarm-armcortex.instrset/bin/arm-none-eabi-gcc -std=gnu99 -mthumb -mcpu=cortex-m3 -mlittle-endian -c -Wall -ffunction-sections -fsigned-char -fomit-frame-pointer -fsingle-precision-constant -MMD -MP -MF"pros_wrapper.dep" -MT"pros_wrapper.o" -O0 -DMODEL=vexarmcortex_tankrobot_setup -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DUSE_STDPERIPH_DRIVER -DNULL=0 -D__NO_SYSTEM_INIT -DARM_MATH_CM3=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DPROS_THREAD_STACK_SIZE=1088 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DUSE_STDPERIPH_DRIVER -DNULL=0 -D__NO_SYSTEM_INIT -DARM_MATH_CM3=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=vexarmcortex_tankrobot_setup -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/lmahaffey/Documents/MATLAB/Add-Ons/Apps/VEXMicrocontrollerCompanionApp/code -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/include -IC:/Users/lmahaffey/Documents/MATLAB/Add-Ons/Apps/VEXMicrocontrollerCompanionApp/code/vexarmcortex_tankrobot_setup_ert_rtw -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/vexarmcortex_examples -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/pros-lib.instrset/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/pros-lib.instrset/firmware -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/pros_rtos/include -o pros_wrapper.o C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/pros_rtos/src/pros_wrapper.c
C:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/gnuarm-armcortex.instrset/bin/arm-none-eabi-gcc -std=gnu99 -mthumb -mcpu=cortex-m3 -mlittle-endian -c -Wall -ffunction-sections -fsigned-char -fomit-frame-pointer -fsingle-precision-constant -MMD -MP -MF"ert_main.dep" -MT"ert_main.o" -O0 -DMODEL=vexarmcortex_tankrobot_setup -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DUSE_STDPERIPH_DRIVER -DNULL=0 -D__NO_SYSTEM_INIT -DARM_MATH_CM3=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DPROS_THREAD_STACK_SIZE=1088 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DONESTEPFCN=1 -DTERMFCN=1 -DMULTI_INSTANCE_CODE=0 -DTID01EQ=0 -DUSE_STDPERIPH_DRIVER -DNULL=0 -D__NO_SYSTEM_INIT -DARM_MATH_CM3=1 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DSTACK_SIZE=64 -DRT -DMODEL=vexarmcortex_tankrobot_setup -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/lmahaffey/Documents/MATLAB/Add-Ons/Apps/VEXMicrocontrollerCompanionApp/code -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/include -IC:/Users/lmahaffey/Documents/MATLAB/Add-Ons/Apps/VEXMicrocontrollerCompanionApp/code/vexarmcortex_tankrobot_setup_ert_rtw -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/vexarmcortex_examples -IC:/PROGRA~1/MATLAB/R2017a/extern/include -IC:/PROGRA~1/MATLAB/R2017a/simulink/include -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017a/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/pros-lib.instrset/include -IC:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/pros-lib.instrset/firmware -IC:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/vexarmcortex/pros_rtos/include -o ert_main.o ert_main.c
"### Creating standalone executable "../vexarmcortex_tankrobot_setup.elf" ..."
C:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/gnuarm-armcortex.instrset/bin/arm-none-eabi-g++ -mthumb -mcpu=cortex-m3 -mlittle-endian -Wall -nostartfiles -Bfirmware -Wl,-static -Wl,-u,VectorTable -Wl,-T -Xlinker C:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/pros-lib.instrset/firmware/cortex.ld -Wl,-u, -Wl,--gc-sections -L"C:\ProgramData\MATLAB\SupportPackages\R2017a\3P.instrset\pros-lib.instrset/firmware" -o ../vexarmcortex_tankrobot_setup.elf vexarmcortex_tankrobot_setup.o vexarmcortex_tankrobot_setup_data.o operatorControl.o initializeIO.o pros_rtos_init.o pros_wrapper.o ert_main.o C:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/pros-lib.instrset/firmware/libccos.a -lm -lgcc -lm -lgcc
"### Created: ../vexarmcortex_tankrobot_setup.elf"
"### Invoking postbuild tool "Binary Converter" ..."
C:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/gnuarm-armcortex.instrset/bin/arm-none-eabi-objcopy -O binary ../vexarmcortex_tankrobot_setup.elf ../vexarmcortex_tankrobot_setup.bin
"### Done invoking postbuild tool."
"### Invoking postbuild tool "Hex Converter" ..."
C:/ProgramData/MATLAB/SupportPackages/R2017a/3P.instrset/gnuarm-armcortex.instrset/bin/arm-none-eabi-objcopy -O ihex ../vexarmcortex_tankrobot_setup.elf ../vexarmcortex_tankrobot_setup.hex
"### Done invoking postbuild tool."
"### Successfully generated all binary outputs."

C:\Users\lmahaffey\Documents\MATLAB\Add-Ons\Apps\VEXMicrocontrollerCompanionApp\code\vexarmcortex_tankrobot_setup_ert_rtw>exit /B 0
### Build procedure for model: 'vexarmcortex_tankrobot_setup' aborted due to an error.
The following error occurred during deployment to your hardware board:
Index exceeds matrix dimensions.



I do not know how to fix this and need help!!!!!!
0
shiremath

Moderator
Registered:
Posts: 78
Reply with quote  #2 
Hello Mahaflac,

Could you please share your model at bestrobotics@mathworks.com?

Based on the error message that you have below, you are running into an error right before the compiled code is ready to be downloaded to the Cortex. Typically, this issues happens if the hardware is not correctly connected to the computer or your VEX USB driver is not correctly installed or the VEX firmware need to be updated. One way to confirm this is to ensure that your computer is recognizing the VEX Cortex when connected using a USB device. Are you on a Windows PC? If so, go to Device Manager and look for the VEX device under Ports (COM & LPT) section after it has been connected to a USB port. If its not listed there, then you have a connection error. Take necessary steps to ensure VEX is recognized and then run 'Deploy to Hardware' again. Does this work?

HTH
Sandeep
0
Mahaflac

Junior Member
Registered:
Posts: 10
Reply with quote  #3 
I checked to make sure the controller is being recognized in the Device manager. It is showing up under ports (COM & LPT). However, when I am at the command window inside Matlab I do not see “We have detected a supported VEX EDR device."

I have the support package downloaded for the Vex Micro controller.

I have ordered a new Lap top that is dedicated to just robotics.  I received this today. I would like to download the software for this computer and see if reinstalling this on the new computer will solve my problems. I have requested a Key and instructions to download.

0
shiremath

Moderator
Registered:
Posts: 78
Reply with quote  #4 
Let me know how that goes. You should be able to use the same license info to install on the new machine, just so you know.

Sometimes restarting MATLAB and the machine also seems to fix this problem! Try this out too. 

Sandeep
0
Mahaflac

Junior Member
Registered:
Posts: 10
Reply with quote  #5 
I have set up the new computer on Windows. I have downloaded Matlab/Simulink and all of the add-ons requested. I used a pre-constructed model and tried to send it to the controller. I get the same exact error message. I have tried on and off our network and it does not seem to matter. 

I am stuck on our robot build until I can get a model uploaded to the controller. Can you help me please.  

I have checked the device manager and see the controller but do not see it in Matlab. It is my understanding that i should get a message in the command window that states it recognizes the controller.  I do not get that message.
0
shiremath

Moderator
Registered:
Posts: 78
Reply with quote  #6 
When do you need this fixed by? We have a Simulink Help session tomorrow in the afternoon at 2 pm Eastern time. If you are okay with sorting things out over a Skype call, that session would be best. If you need immediate help, send me an email at bestorobotics@mathworks.com and I can setup a time today or tomorrow morning to resolve this matter. Let me know. Please be prepared to share you computer screen (where the software is installed) either way, this way I can troubleshoot the problem faster. 

Thanks
Sandeep 
0
Mahaflac

Junior Member
Registered:
Posts: 10
Reply with quote  #7 
I am on hold until I can get this resolved. I am pretty frustrated.  I cannot participate in the Help session as I have class. I drive a bus and start work at 5:00 AM and then in class all day.  The only time that I have is Now 8:40 until about 9:20
0
dmdominguez

Junior Member
Registered:
Posts: 1
Reply with quote  #8 
Hopefully this helps and doesn't cause more confusion. I'm sure multiple things could throw this exception but,,, here is what I think is happening. It seems to only occur in MS Windows. The COM port is not being acquired properly in the hardware implementation definition. We experienced this last year during game day with several of our teams. One of our IT guys figured it out. Sometimes uninstalling and reinstalling the VEX ARM Cortex Support Package fixes the COM port mismatch but not always. Once you identify the COM port your Cortex is connecting to, you then need to edit the Hardware implementation on your Simulink model to manually set the COM port. When you edit the hardware implementation You will see the COM port is set to something different than the port your Cortex is on. Manually set the COM port from the drop down as follows.

1. In the bottom right hand corner of your Simulink model you will see some hypertext that reads ode3. Click on the text and click on the gear. Note *If it the hypertext reads VariableStepAuto then you probably created your model from the Simulink icon vs. the VEX ARM Cortex app. If that is the case then it would be best to create the file using the VEX Cortex App and copy and paste you subsystem blocks, and try deploying to the cortex again. Otherwise continue to 2.*

2. Click on Hardware implementation. You will see the hardware board is set to Arm Cortex-based VEX Microcontroller. On the bottom half you will see a box called Target Hardware Resources. Highlight External mode. This is where you will need to manually set your COM port.

One of our teams was having this problem today and I couldn't remember how we fixed it last year, so I dug around old notes. I will find out tomorrow if this is their solution.

Here is a screen shot of what you will see.

Screen Shot 2017-09-27 at 9.46.08 PM.png   

0
shiremath

Moderator
Registered:
Posts: 78
Reply with quote  #9 
Bottom line on top, Mahaflac's issue was resolved late last week through email correspondence with the MathWorks tech team. Here is my response to close the loop on their case.

First, thanks for the response, David Dominguez. The error message posted above has multiple reasons since its a slightly generic error message (mainly points out that the build of the code went well but it cannot download the binaries now successfully to the VEX Cortex). And yes, the workaround that you mentioned is one way troubleshoot it when the issue is related to VEX not being recognized as a USB device on your computer.

In Mahaflac's case, the problem was related to how they were downloading the Simulink model to the Cortex, i.e. they were trying to download the program to the Cortex wirelessly over the VEX Controller/Gamepad. This is NOT support through the Simulink workflow currently and that why VEX was not listed as a COMP Port device (technically it was not connected to the PC, the gamepad was!). So here is the MathWorks' recommendation on the download process:

1) DON'T use the VEX Controller to wirelessly download Simulink models to the Cortex.
2) DO use a Male-to-Male USB cable (the VEX orange cable or any other color that you may have!) to tether the Cortex directly to the computer, and then download the model. 

The VEX library documentation will be updated in the next release (2018) to clarify this limitation that exists. We are looking at possibly updating the process to include wireless download over the controller in the future, but the possibility and timeline of making this happen is not clear at this point. For now, please follow the recommendation above.

HTH
Sandeep
bestrobotics@mathworks.com 


Sandeep Hiremath
MathWorks (makers of MATLAB and Simulink)
http://www.mathworks.com/best-robotics

0
shiremath

Moderator
Registered:
Posts: 78
Reply with quote  #10 
Bottom line on top, Mahaflac's issue was resolved late last week through email correspondence with the MathWorks tech team. Here is my response to close the loop on their case.

First, thanks for the response, David Dominguez. The error message posted above has multiple reasons since its a slightly generic error message (mainly points out that the build of the code went well but it cannot download the binaries now successfully to the VEX Cortex). And yes, the workaround that you mentioned is one way troubleshoot it when the issue is related to VEX not being recognized as a USB device on your computer.

In Mahaflac's case, the problem was related to how they were downloading the Simulink model to the Cortex, i.e. they were trying to download the program to the Cortex wirelessly over the VEX Controller/Gamepad. This is NOT support through the Simulink workflow currently and that why VEX was not listed as a COMP Port device (technically it was not connected to the PC, the gamepad was!). So here is the MathWorks' recommendation on the download process:

1) DON'T use the VEX Controller to wirelessly download Simulink models to the Cortex.
2) DO use a Male-to-Male USB cable (the VEX orange cable or any other color that you may have!) to tether the Cortex directly to the computer, and then download the model. 

BEST_VEXDownload_USB.PNG  BEST_VEXDownload_USBYes.PNG 
(Images credit: vexforum.com)

The VEX library documentation will be updated in the next release (2018) to clarify this limitation that exists. We are looking at possibly updating the process to include wireless download over the controller in the future, but the possibility and timeline of making this happen is not clear at this point. For now, please follow the recommendation above.

HTH
Sandeep
bestrobotics@mathworks.com 


Sandeep Hiremath
MathWorks (makers of MATLAB and Simulink)
http://www.mathworks.com/best-robotics

0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.