PIL Block build error
이전 댓글 표시
Hi, when building a PIL Model Block i get the following error:
undefined first referenced symbol in file
--------- ----------------
_pilInit ./derived/PIL_Try2_main.obj
_pilProfilingTimerFreeze ./derived/PIL_Try2.obj
_pilProfilingTimerUnFreeze ./derived/PIL_Try2.obj
_pilRun ./derived/PIL_Try2_main.obj
_profileEnd_Atomic_Subsystem ../../../../../../NEWFOL~1/SOFTWA~1/SIMULI~1/PS_MAS~1/Speed/PIL_TR~1/../slprj/IDELIN~1/ATOMIC~1/CustomMW/ATOMIC~1.LIB<Atomic_Subsystem.obj> _profileEnd_PIL_Try2 ./derived/PIL_Try2.obj
_profileStart_Atomic_Subsystem ../../../../../../NEWFOL~1/SOFTWA~1/SIMULI~1/PS_MAS~1/Speed/PIL_TR~1/../slprj/IDELIN~1/ATOMIC~1/CustomMW/ATOMIC~1.LIB<Atomic_Subsystem.obj> _profileStart_PIL_Try2 ./derived/PIL_Try2.obj
error: unresolved symbols remain error: errors encountered during linking; "./CustomMW/PIL_Try2.out" not built
Can you help me resolve this? Regards, Werner
댓글 수: 3
Kaustubha Govind
2012년 5월 23일
What target are you building for? What is the System Target File (.tlc) that you've selected?
Werner
2012년 5월 24일
Werner
2012년 5월 24일
답변 (1개)
Kaustubha Govind
2012년 5월 24일
0 개 추천
The documentation section Example — Performing a Model Block PIL Simulation via SCI Using Makefiles seems to suggest that CCSv4 can also be used for PIL profiling. I don't have too much experience in the Embedded Targets area, so I won't answer will complete authority, but I think for now, you should just try and get past the compiler error.
AFAIK, the Target Preferences block must only be present at the root-level of the model, and not inside subsystems. Could you try that and see if the error goes away?
댓글 수: 9
Werner
2012년 5월 25일
Werner
2012년 5월 25일
Werner
2012년 5월 25일
Kaustubha Govind
2012년 5월 25일
Ah. So I guess you were right about needing Target Pref blocks inside atomic subsystems too. :)
If possible, could try running the demo model described in the documentation link from my answer? That will tell us if the issue is with your installation, or your model.
Werner
2012년 5월 25일
Kaustubha Govind
2012년 5월 29일
Good luck! Sorry, I haven't done this before, so any advice I can give will be limited to what I read in the documentation. :)
Werner
2012년 5월 30일
Kaustubha Govind
2012년 5월 31일
Not sure, but maybe your CCS installation was not done completely/correctly. I think checkEnvSetup checks the Windows Registry to find the key corresponding to CCS, not perhaps that was not populated correctly. Try running the CCS installation "as administrator" and try again? If that doesn't work, try calling MathWorks Tech Support.
Werner
2012년 6월 15일
카테고리
도움말 센터 및 File Exchange에서 Texas Instruments C2000 Processors에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!