J8 debug header to GPIO

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

J8 debug header to GPIO

1,079 次查看
Vast-Horizon
Contributor II

Hello,

I wonder if it's possible to configure J8 debug header to GPIO for an S32K358 BMU. I tried it already, from PTD1 to PTE8, but I didn't get any voltage out. 

 

VastHorizon_1-1727904891064.png

VastHorizon_2-1727904972807.png

Neither digital 0 nor 1 worked, despite the program being built and uploaded successfully.

S32CT mex file is attached.

Any suggestions?

Thanks.

 

 

标记 (1)
0 项奖励
回复
4 回复数

1,045 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @Vast-Horizon 

I have reviewed your .mex file and I have some observations. When using MCAL, you need to remove the Siul2_Port driver and use Port instead. Also, each pin configured in the Pins tool needs to be added in Port > PortConfigSet > PortContainer > PortPin.

 

BR, VaneB

1,021 次查看
Vast-Horizon
Contributor II

Hello,

Thank you for the suggestion! I forgot to mention that I'm using 1.4.0 version of the MBDT, and according to this revised document, we don't need to configure the Port for 1.4.0. Is that true? I was following the tutorial there.

 

VastHorizon_0-1728080583119.png

 

0 项奖励
回复

1,020 次查看
Vast-Horizon
Contributor II
0 项奖励
回复

970 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @Vast-Horizon 

I am not very familiar with how MDBT tools work, but it is necessary to use the PORT driver to configure the pins and specify how the pin will behave electrically and functionally. A good reference to understand the connection between the Port and Dio drivers can be found at the following link (even if it is for the EB Tresos configuration tool, the concepts are similar).

S32K312 MBDT 1.4.0 Unable to read configuration

If this differs from the version you are using, please help me posting a new question in the following community. There the engineers in charge of the Model-Based Design Tools (MBDT) will provide better support in this part.

Model-Based Design Toolbox (MBDT)

0 项奖励
回复