function errormsg = c2000_validateModelEntry(tgtInfo, modelName)
%C2000_VALIDATEMODELENTRY Perform validation at model entry.

% Copyright 2005-2014 The MathWorks, Inc.


checkByteOrderSetting(modelName, 'C2000', {'LittleEndian'});

[hPM hTgt] = linkfoundation.pjtgenerator.getProjectManager(modelName); %#ok<NASGU>
hChp = hPM.getChip();

IRmodelInfo  = lf_pjtgeninfo('get', 'C2000', modelName);

tgtPeriphs = getTgtPrefPeripherals(modelName);

errormsg = hChp.validateModel_tic2000target(tgtInfo,modelName,IRmodelInfo,tgtPeriphs);
