Problem with simulink code implementation on raspberry pi
4 views (last 30 days)
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
Murat Belge on 6 May 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'.