Problem with simulink code implementation on raspberry pi
1 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
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'.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Raspberry Pi Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!