How do I resolve the error "The current model configuration differs from the model configuration used to generate the shared utility code folder", that I encounter upon generating code using Embedded Coder in MATLAB R2023b?

9 visualizzazioni (ultimi 30 giorni)
I am trying to generate code for a Simulink model using Embedded Coder in MATLAB R2023b for a Texas Instruments hardware board target. My Simulink model contains three model references. I recently updated my target hardware settings from "TI Piccolo F28069M LaunchPad" to "TI Delfino F28379D LaunchPad" in my Simulink model. However, upon generating code, I encountered the below error: 
Error building model '<model_name>'. The current model configuration differs from the model configuration used to generate the shared utility code folder, '<path_to_shared_utility_model>'.
To review parameter differences between '<model_name>' and '<path_to_shared_utility_model>', click link. (see attached)
How do I resolve this error? 

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 18 Mar 2024
To resolve this error, follow the below steps: 
  1. If you changed the hardware settings in the parent model, and not the referenced models, please update the settings in the referenced models. Try regenerating code using Ctrl+B, and see if you encounter the error. 
  2. If you still see the error after changing the hardware settings in all models, try deleting the "slprj" folder, the "<model_name>_ert_rtw" folder, and the SLXC Simulink model cache files. Try generating code using Ctrl+B in the Simulink window. 

Più risposte (0)

Categorie

Scopri di più su Deployment, Integration, and Supported Hardware in Help Center e File Exchange

Prodotti


Release

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by