Problem with simulink code implementation on raspberry pi

1 Ansicht (letzte 30 Tage)
Thibault Asselborn
Thibault Asselborn am 23 Apr. 2014
Beantwortet: Murat Belge am 6 Mai 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

Antworten (1)

Murat Belge
Murat Belge am 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'.

Kategorien

Mehr zu Raspberry Pi Hardware finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by