Why does the build for my model containing a Protected Model fail because of a configuration mismatch in "TflCheckSum"?
51 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2019 年 6 月 4 日
編集済み: MathWorks Support Team
2025 年 10 月 18 日 13:03
When generating code for a Simulink parent model that references a protected model (.slxp), I encounter the following error during the build process:
Error building model 'myModel'. The current model configuration differs from the model configuration used to generate the shared utility code folder
When I click the hyperlink shown in the message to review parameter differences, all configuration parameters match except for "TflCheckSum".
I have tried the following:
- Deleted the "sharedutils" folder as suggested in the error message.
- Shared the Configuration Set with the creator of the Protected Model to ensure both models use identical settings.
However, the error persists when I attempt code generation. How can I fix this error?
採用された回答
MathWorks Support Team
2025 年 10 月 13 日 0:00
編集済み: MathWorks Support Team
約4時間 前
This error can occur if the Protected Model was created using a different Update level of MATLAB than the one you're currently using. For example, if the Protected Model was created in R2024b Update 6, and you are using R2024b Update 1.
In general, if a model is protected in a release update, it can be used in any other updates (older or later) as long as the release number is the same. This is true for simulation. However, when code generation is intended, differences in internal libraries between updates can lead to "TflCheckSum" mismatches.
You can check the update level of a Protected Model using the methods described here:
To resolve the error, make sure both you and the Protected Model creator are using the same MATLAB release and update level, ideally the latest one. Updating both installations to the latest Update level is usually the easiest solution. For that, follow the steps shown here:
If a downgrade in Update level is necessary for either party, refer to:
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!