Failed to execute External Mode example on S32K1xx

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

Failed to execute External Mode example on S32K1xx

跳至解决方案
2,084 次查看
viet
Contributor II

Dear community, 
i running into the problem when trying to execute the example : "EXTERNAL MODE Control Gauge in Simulink"

viet_0-1629083020277.png

i am using matlab version 2021a.
NXP Support Package S32K1xx version 2.2.

my configuration : 

viet_1-1629083795933.pngviet_2-1629083996039.png

viet_3-1629084030509.png

 

 

and the error message : 

viet_4-1629084151908.png


please help me on this issue 
thanks

0 项奖励
回复
1 解答
2,037 次查看
mariuslucianand
NXP Employee
NXP Employee

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.

mariuslucianand_0-1629276814334.png

Please try to use the following settings for the Configu block:

mariuslucianand_2-1629276907259.png

 

mariuslucianand_1-1629276891921.png

Hope this helps,

Marius

 

 

 

 

在原帖中查看解决方案

0 项奖励
回复
5 回复数
2,017 次查看
viet
Contributor II

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 : 

viet_0-1629356106726.png

Please give us some advices, which parameters should we change in the model property or model configuration.

thanks
Viet

0 项奖励
回复
2,047 次查看
viet
Contributor II

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 :

viet_0-1629261646033.png


and the error is : 

viet_1-1629261697522.png


thanks

0 项奖励
回复
2,038 次查看
mariuslucianand
NXP Employee
NXP Employee

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.

mariuslucianand_0-1629276814334.png

Please try to use the following settings for the Configu block:

mariuslucianand_2-1629276907259.png

 

mariuslucianand_1-1629276891921.png

Hope this helps,

Marius

 

 

 

 

0 项奖励
回复
2,023 次查看
viet
Contributor II

thanks a lot. 
it works.

0 项奖励
回复
2,058 次查看
mariuslucianand
NXP Employee
NXP Employee

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.

mariuslucianand_0-1629206310447.png

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?

https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Unable-to-Deploy-and-Start-External-Mod...

Hope this helps,

Marius

0 项奖励
回复