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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
988 次查看
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 项奖励
回复
1 解答
958 次查看
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 项奖励
回复
2 回复数
959 次查看
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 项奖励
回复
952 次查看
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 项奖励
回复