PIL Block build error
Show older comments
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 Comments
Kaustubha Govind
on 23 May 2012
What target are you building for? What is the System Target File (.tlc) that you've selected?
Werner
on 24 May 2012
Werner
on 24 May 2012
Answers (1)
Kaustubha Govind
on 24 May 2012
0 votes
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 Comments
Werner
on 25 May 2012
Werner
on 25 May 2012
Werner
on 25 May 2012
Kaustubha Govind
on 25 May 2012
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
on 25 May 2012
Kaustubha Govind
on 29 May 2012
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
on 30 May 2012
Kaustubha Govind
on 31 May 2012
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
on 15 Jun 2012
Categories
Find more on Texas Instruments C2000 Processors in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!