Why do I get an error about a missing target data map file, although I am using XCP external mode?

조회 수: 22 (최근 30일)
I am trying to run my application using XCP-based external mode. However, I see the following error message about a non-existing "model_targ_data_map" file when I try to connect to the target:
>> set_param(modelname, 'SimulationMode', 'external');
>> set_param(modelname, 'SimulationCommand', 'connect');
Could not execute target data map file 'myModel_myTarget_rtw\myModel_targ_data_map' or it does not exist.
Stop the target, delete the myModel executable, rebuild the code, and try again.
Note that execution of external mode requires the build directory to be present

채택된 답변

MathWorks Support Team
MathWorks Support Team 2020년 2월 13일
XCP-based External Mode does not generate a target data map file. Therefore, we suspect that the the default setup of the External Mode transport layer was modified and the current values are incorrect.
Please type from the MATLAB console the following commands:
>> idx = get_param(modelName, 'ExtModeTransport')
>> cs = getActiveConfigSet(modelName)
>> [transport, mexfile, interface] = Simulink.ExtMode.Transports.getExtModeTransport(cs, idx)
In order to run XCP-based External Mode, you should see the following output:
>> [transport, mexfile, interface] = Simulink.ExtMode.Transports.getExtModeTransport(cs, idx)
transport =
'XCP on TCP/IP'
mexfile =
'ext_xcp'
interface =
'Level2 - Open'

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multicore Processor Targets에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by