Code doesn't update after changing default channel in Simulink Block MBDT S32K3

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Code doesn't update after changing default channel in Simulink Block MBDT S32K3

Jump to solution
807 Views
RobSpanjers
NXP Employee
NXP Employee

Hello,

When I change the channel number from a block (DIO or PWM) and then generate and build a project, for the second time, the code doesn't update so the channel is the same as the first time I build the project.

This happens in my own project as well as in the example projects.

What should I change to get the code updated?

I'm using:
-MATLAB 2021a
-MBDT S32K3 V1.2
-EB Tresos 28.2.0
-S32K344EVB-Q257

0 Kudos
Reply
1 Solution
777 Views
Irina_Costachescu
NXP Employee
NXP Employee

Hi @RobSpanjers ,

If the generated code does not get updated, I suggest you erase the artifacts from a previous build before regenerating the code with the new selections. Try deleting the modelName_ert_rtw and slprj folders, created next to the model, as well as the Simulink cache modelName.slxc and rebuild your application.

Irina

View solution in original post

0 Kudos
Reply
2 Replies
778 Views
Irina_Costachescu
NXP Employee
NXP Employee

Hi @RobSpanjers ,

If the generated code does not get updated, I suggest you erase the artifacts from a previous build before regenerating the code with the new selections. Try deleting the modelName_ert_rtw and slprj folders, created next to the model, as well as the Simulink cache modelName.slxc and rebuild your application.

Irina

0 Kudos
Reply
771 Views
RobSpanjers
NXP Employee
NXP Employee
If I indeed the Bin, ELF file and modelName_ert_rtw folder the changed code can be generated and updated.

Thank you
0 Kudos
Reply