Problem with simulink code implementation on raspberry pi

1 vue (au cours des 30 derniers jours)
Thibault Asselborn
Thibault Asselborn le 23 Avr 2014
Hi everybody,
I have a problem with the integration of simulink code on Raspberry pi. Basically, i wrote a little simulink code with a S-function inside. When I play the simulation on my pc, everything work. Contrary, when I try to put it on the raspberry, I get the following error :
The call to realtime_make_rtw_hook, during the after_make hook generated the following error: Failed to save the makefile.
The build process will terminate as a result.
Failed to save the makefile.
Failed to generate makefile.
Failed to instantiate the template for value "# File name: test.mk # Autogenerated on: 23-Apr-2014 15:12:11 # Copyright 2009-2012 The MathWorks, Inc. # # Model: TEST # Template: gmake # Template Version: 1.0 # Tool Chain Configuration: LinuxRemoteBuild # Tool Chain Configuration Version: 2.0
THIS_MAKEFILE := $(lastword $(MAKEFILE_LIST)) EMPTY := SPACE := $(EMPTY) $(EMPTY) MODEL_NAME := test HOST_PLATFORM := windows BUILD_CFG := MW TARGET_EXT := [|||MW_XMK_TARGET_EXT|||] OBJ_EXT := [|||[.obj]MW_XMK_OBJ_EXT|||] TOOL_CHAIN_CFG := LinuxRemoteBuild
FORMAT_PATH = $(if $(filter \\
The path 'read_data.c' does not exist
Do you have the solution of this problem ?? Thanks in advance

Réponses (1)

Murat Belge
Murat Belge le 6 Mai 2014
Use full path names when specifying source files in whatever you are using to create your S-function (S-function builder or Legacy Code Tool). For example, use 'C:\Work\rpi\read_data.c' instead of 'read_data.c'.

Catégories

En savoir plus sur Raspberry Pi Hardware dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by