Failed to execute External Mode example on S32K1xx

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Failed to execute External Mode example on S32K1xx

Jump to solution
1,669 Views
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 Kudos
1 Solution
1,622 Views
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

 

 

 

 

View solution in original post

0 Kudos
5 Replies
1,602 Views
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 Kudos
1,632 Views
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 Kudos
1,623 Views
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 Kudos
1,608 Views
viet
Contributor II

thanks a lot. 
it works.

0 Kudos
1,643 Views
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 Kudos