Dear community,
i running into the problem when trying to execute the example : "EXTERNAL MODE Control Gauge in Simulink"
i am using matlab version 2021a.
NXP Support Package S32K1xx version 2.2.
my configuration :
and the error message :
please help me on this issue
thanks
解決済! 解決策の投稿を見る。
Hello @viet,
Now that you have told me that you are trying to run the code on the S32K118 It seems that you need to use another UART instance and pins. As you can see the board uses the PTB0 and PTB1 pins connected to Serial0.
Please try to use the following settings for the Configu block:
Hope this helps,
Marius
Hi Marius,
Now i am able to execute the External Mode example on S32K118 EVK.
I trying copy the same configuration to our model, but i got the error as below :
Please give us some advices, which parameters should we change in the model property or model configuration.
thanks
Viet
Hi Marius
Current i using S32K118 EVK.
And I followed your instruction in the like you had mentioned above. But please review my configuration again :
and the error is :
thanks
Hello @viet,
Now that you have told me that you are trying to run the code on the S32K118 It seems that you need to use another UART instance and pins. As you can see the board uses the PTB0 and PTB1 pins connected to Serial0.
Please try to use the following settings for the Configu block:
Hope this helps,
Marius
thanks a lot.
it works.
Hello @viet ,
Can you please specify the board on which you are trying to execute the code? Is it the evaluation board, or a custom design? I am asking this because I see in the screenshot attached that you have the COM4 port mounted as well as the COM8 which you are trying to use.
If you are using the S32K1xx evaluation board, make sure to select the COM4 because the pins PTC6 and PTC7, selected in the configuration block are routed on the S32K144 EVB directly to the OpenSDA which acts as a USB 2 Serial.
Also, have you followed the instructions from here?
Hope this helps,
Marius