Failed to execute External Mode example on S32K1xx

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

Failed to execute External Mode example on S32K1xx

ソリューションへジャンプ
2,086件の閲覧回数
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,039件の閲覧回数
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,019件の閲覧回数
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,049件の閲覧回数
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,040件の閲覧回数
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,025件の閲覧回数
viet
Contributor II

thanks a lot. 
it works.

0 件の賞賛
返信
2,060件の閲覧回数
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 件の賞賛
返信