MATLAB Answers

2

Raspberry Pi can't start a model on its own

Asked by Frederik Pedersen on 10 Apr 2017
Latest activity Commented on by Uwe Lau on 3 May 2018
I've been working on a model that currently runs fine when I simulate through Simulink on my PC, to my Raspberry Pi. However, I want the Raspberry Pi to run the model on its own (Using the simulink support package), but when I enter the command to execute: "./cryreg_mta17437.elf" it simply just goes to next line like nothing happend. No "**Starting model**", no nothing.
I've tried trouble shooting, but couldn't find anyone with a similar error; however when I tried Deploying the model directly to the pi (without simulating it through my laptop), I get this monster of an error:
Error executing command "touch -c /home/pi/cryreg_mta17437_ert_rtw/*.*;make -f cryreg_mta17437.mk all -C /home/pi/cryreg_mta17437_ert_rtw". Details:
STDERR: make: Warning: File '../cryreg_mta17437.elf' has modification time 388 s in the future
rtiostream_interface.c:29:30: fatal error: rtiostream_utils.h: No such file or directory
#include "rtiostream_utils.h"
^
compilation terminated.
make: *** [rtiostream_interface.c.o] Error 1
STDOUT: make: Entering directory '/home/pi/cryreg_mta17437_ert_rtw'
gcc -c -MMD -MP -MF"MW_pigs.c.dep" -MT"MW_pigs.c.o" -O0 -DMODEL=cryreg_mta17437 -DNUMST=6 -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__ -DARM_PROJECT -D_USE_TARGET_UDP_ -D_RUNONTARGETHARDWARE_BUILD_ -DRT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DARM_PROJECT -D_USE_TARGET_UDP_ -D_RUNONTARGETHARDWARE_BUILD_ -DRT -DSTACK_SIZE=64 -DMODEL=cryreg_mta17437 -DNUMST=6 -DNCSTATES=0 -DHAVESTDIO -I./ -o "MW_pigs.c.o" "MW_pigs.c"
gcc -c -MMD -MP -MF"system.c.dep" -MT"system.c.o" -O0 -DMODEL=cryreg_mta17437 -DNUMST=6 -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__ -DARM_PROJECT -D_USE_TARGET_UDP_ -D_RUNONTARGETHARDWARE_BUILD_ -DRT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DARM_PROJECT -D_USE_TARGET_UDP_ -D_RUNONTARGETHARDWARE_BUILD_ -DRT -DSTACK_SIZE=64 -DMODEL=cryreg_mta17437 -DNUMST=6 -DNCSTATES=0 -DHAVESTDIO -I./ -o "system.c.o" "system.c"
gcc -c -MMD -MP -MF"MW_gpio.c.dep" -MT"MW_gpio.c.o" -O0 -DMODEL=cryreg_mta17437 -DNUMST=6 -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__ -DARM_PROJECT -D_USE_TARGET_UDP_ -D_RUNONTARGETHARDWARE_BUILD_ -DRT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DARM_PROJECT -D_USE_TARGET_UDP_ -D_RUNONTARGETHARDWARE_BUILD_ -DRT -DSTACK_SIZE=64 -DMODEL=cryreg_mta17437 -DNUMST=6 -DNCSTATES=0 -DHAVESTDIO -I./ -o "MW_gpio.c.o" "MW_gpio.c"
gcc -c -MMD -MP -MF"MW_alsa_audio.c.dep" -MT"MW_alsa_audio.c.o" -O0 -DMODEL=cryreg_mta17437 -DNUMST=6 -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__ -DARM_PROJECT -D_USE_TARGET_UDP_ -D_RUNONTARGETHARDWARE_BUILD_ -DRT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DARM_PROJECT -D_USE_TARGET_UDP_ -D_RUNONTARGETHARDWARE_BUILD_ -DRT -DSTACK_SIZE=64 -DMODEL=cryreg_mta17437 -DNUMST=6 -DNCSTATES=0 -DHAVESTDIO -I./ -o "MW_alsa_audio.c.o" "MW_alsa_audio.c"
gcc -c -MMD -MP -MF"cryreg_mta17437.c.dep" -MT"cryreg_mta17437.c.o" -O0 -DMODEL=cryreg_mta17437 -DNUMST=6 -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__ -DARM_PROJECT -D_USE_TARGET_UDP_ -D_RUNONTARGETHARDWARE_BUILD_ -DRT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DARM_PROJECT -D_USE_TARGET_UDP_ -D_RUNONTARGETHARDWARE_BUILD_ -DRT -DSTACK_SIZE=64 -DMODEL=cryreg_mta17437 -DNUMST=6 -DNCSTATES=0 -DHAVESTDIO -I./ -o "cryreg_mta17437.c.o" "cryreg_mta17437.c"
gcc -c -MMD -MP -MF"cryreg_mta17437_data.c.dep" -MT"cryreg_mta17437_data.c.o" -O0 -DMODEL=cryreg_mta17437 -DNUMST=6 -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__ -DARM_PROJECT -D_USE_TARGET_UDP_ -D_RUNONTARGETHARDWARE_BUILD_ -DRT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DARM_PROJECT -D_USE_TARGET_UDP_ -D_RUNONTARGETHARDWARE_BUILD_ -DRT -DSTACK_SIZE=64 -DMODEL=cryreg_mta17437 -DNUMST=6 -DNCSTATES=0 -DHAVESTDIO -I./ -o "cryreg_mta17437_data.c.o" "cryreg_mta17437_data.c"
gcc -c -MMD -MP -MF"linuxinitialize.c.dep" -MT"linuxinitialize.c.o" -O0 -DMODEL=cryreg_mta17437 -DNUMST=6 -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__ -DARM_PROJECT -D_USE_TARGET_UDP_ -D_RUNONTARGETHARDWARE_BUILD_ -DRT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DARM_PROJECT -D_USE_TARGET_UDP_ -D_RUNONTARGETHARDWARE_BUILD_ -DRT -DSTACK_SIZE=64 -DMODEL=cryreg_mta17437 -DNUMST=6 -DNCSTATES=0 -DHAVESTDIO -I./ -o "linuxinitialize.c.o" "linuxinitialize.c"
gcc -c -MMD -MP -MF"rtiostream_interface.c.dep" -MT"rtiostream_interface.c.o" -O0 -DMODEL=cryreg_mta17437 -DNUMST=6 -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__ -DARM_PROJECT -D_USE_TARGET_UDP_ -D_RUNONTARGETHARDWARE_BUILD_ -DRT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DARM_PROJECT -D_USE_TARGET_UDP_ -D_RUNONTARGETHARDWARE_BUILD_ -DRT -DSTACK_SIZE=64 -DMODEL=cryreg_mta17437 -DNUMST=6 -DNCSTATES=0 -DHAVESTDIO -I./ -o "rtiostream_interface.c.o" "rtiostream_interface.c"
cryreg_mta17437.mk:479: recipe for target 'rtiostream_interface.c.o' failed
make: Leaving directory '/home/pi/cryreg_mta17437_ert_rtw'
Have anyone experienced the same issue and found a solution, or seen the error before?
Best regards

  4 Comments

Show 1 older comment
Dear Murat Belge,
I have same problem. I try to use button "Deploy to Hardware", but I received error during compilation.
## Build procedure for model: 'raspi001' aborted due to an error.
Error executing command "touch -c /home/pi/raspi001_ert_rtw/*.*;make -f raspi001.mk all -C /home/pi/raspi001_ert_rtw". Details:
STDERR: rtiostream_interface.c:29:30: fatal error: rtiostream_utils.h: No such file or directory
#include "rtiostream_utils.h"
... and other errors!
I am newbie, i try to stick to the procedure in example for SImulink Supprot Package for Raspberry Pi Hardware, but without success. I'm clueless.
In the directory /home/pi/raspi001_ert_rtw is no file with suffix .elf!¨
I also try to run command directly in Pi:
touch -c /home/pi/raspi001_ert_rtw/*.*;make -f raspi001.mk all -C /home/pi/raspi001_ert_rtw
make: Entering directory '/home/pi/raspi001_ert_rtw'
make: *** No rule to make target 'MW_led.c', needed by 'MW_led.c.o'. Stop.
make: Leaving directory '/home/pi/raspi001_ert_rtw'
Best Regards
Dear all,
I have the same problem.
Error executing command "touch -c /home/pi/AutonomousStoneBot_ert_rtw/*.*;make -f AutonomousStoneBot.mk all -C /home/pi/AutonomousStoneBot_ert_rtw". Details:
STDERR: rtiostream_interface.c:29:30: fatal error: rtiostream_utils.h: No such file or directory
#include "rtiostream_utils.h"
^
compilation terminated.
make: *** [rtiostream_interface.c.o] Error 1
Same problem here. deploy on hardware (raspberry pi) and standalone start via terminal worked for a few weeks. Now i got the same error as described.

Sign in to comment.

0 Answers