Changing the channel on the Dio block does not change the generated code.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Changing the channel on the Dio block does not change the generated code.

ソリューションへジャンプ
882件の閲覧回数
Automan
Contributor I

I am using the s32k3xx_dio_s32ct example have found that if you change the Channel i any of the Dio blocks that the generated code continues to use the original channel. I tried deleting and re-adding a Dio block and connecting to a different channel sometimes works, but not always.

0 件の賞賛
返信
1 解決策
861件の閲覧回数
robertv
NXP Employee
NXP Employee

Hello @Automan ,

The behavior you are describing is happening because changing the Channel/Pin inside the Dio mask is not causing Simulink to regenerate the code. We are looking into ways to improve this specific scenario and make it as hassle-free as possible.

For now, the best course of action in your specific use case, and to always get consistent results, would be to delete the "modelName_ert_rtw" folder and the "modelName.slxc" file before building the model. Doing so will trigger the code generation and update the executable based on the current state of the model. This should not be needed if the model is changed in a more significant way, like adding blocks, changing signals and/or connections, etc. 

Regards,
Robert V

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
862件の閲覧回数
robertv
NXP Employee
NXP Employee

Hello @Automan ,

The behavior you are describing is happening because changing the Channel/Pin inside the Dio mask is not causing Simulink to regenerate the code. We are looking into ways to improve this specific scenario and make it as hassle-free as possible.

For now, the best course of action in your specific use case, and to always get consistent results, would be to delete the "modelName_ert_rtw" folder and the "modelName.slxc" file before building the model. Doing so will trigger the code generation and update the executable based on the current state of the model. This should not be needed if the model is changed in a more significant way, like adding blocks, changing signals and/or connections, etc. 

Regards,
Robert V

0 件の賞賛
返信
848件の閲覧回数
Automan
Contributor I
Hi Robert,
Is there a list somewhere that shows the current issues and workarounds for the MBDT version 1.6.0?
0 件の賞賛
返信
834件の閲覧回数
robertv
NXP Employee
NXP Employee

Hello @Automan ,

On every release, we update the list of limitations and known issues. This list can be found inside the readme.txt file located in the root of the Toolbox.

Regards,
Robert V

0 件の賞賛
返信