Problem with simulink code implementation on raspberry pi

7 ビュー (過去 30 日間)
Thibault Asselborn
Thibault Asselborn 2014 年 4 月 23 日
回答済み: Murat Belge 2014 年 5 月 6 日
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

回答 (1 件)

Murat Belge
Murat Belge 2014 年 5 月 6 日
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'.

カテゴリ

Help Center および File ExchangeRun on Target Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by