MATLAB: How to create protected model for peripheral blocks in “Embedded Coder support Package for Texas Instrument 2000 Processors” library

c2000code generationEmbedded Coderreference protected modelsimulink

I am implementing example posted as "2 BOOSTXL-DRV8305 + LAUNCHXL-F28379D C2000 LaunchPad: c28379Dpmsmfocdual_cpu1_ert.slx" posted on Mathworks website – https://www.mathworks.com/help/supportpkg/texasinstrumentsc2000/examples/permanent-magnet-synchronous-motor-field-oriented-control.html
Whenever I am trying to include these peripheral model blocks from library "Embedded Coder support Package for Texas Instrument 2000 Processors" in reference model (daughter) to create a Reference Protected Model, error occurs while creating and building protected which says "The model 'subsytem' cannot be protected because it or a model that it directly or indirectly references contains a non-inlined S-Function". If model blocks from this library is outside the protected block everything work fine. Any clue How to create protected model for blocks in "Embedded Coder support Package for Texas Instrument 2000 Processors" library?

Best Answer

Hi,
Please contact:
Regards,
Venkatesh C
Related Question