Why does the build for my model containing a Protected Model fail because of a configuration mismatch in "TflCheckSum"?
53 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 4 de Jun. de 2019
Editada: MathWorks Support Team
el 18 de Oct. de 2025 a las 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?
Respuesta aceptada
MathWorks Support Team
el 13 de Oct. de 2025 a las 0:00
Editada: MathWorks Support Team
el 18 de Oct. de 2025 a las 13:03
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Simulink Coder en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!