S32K3x4-Q172 CAN bus example

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

S32K3x4-Q172 CAN bus example

跳至解决方案
3,039 次查看
vlele
Contributor II

Hi ,

I am facing issues in running the CAN bus example for S32k3
I am using example code from S32k3 RTD Autosar 4.4 2.0.1 D2207

 

I cannot see any CAN message on PCAN tool

S32K3x4-Q172 Eval board uses TJA1043TKY , does it need a separate MCAL stack for integration? 
EVAL_transreciever.PNG

Similarly do i need to configure PORT driver and DIO driver?

标记 (2)
0 项奖励
回复
1 解答
2,996 次查看
vlele
Contributor II

Hi Robin,
I got it working (based on the bare-metal code shared by you)
I was able to set the PINS using the the PORT driver utility.
DIO was not needed.
S32k3 RTD Autosar 4.4 2.0.1 D2207
IDE: S32DS 3.5

Attaching the the source code. Let me know your thoughts on it.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,997 次查看
vlele
Contributor II

Hi Robin,
I got it working (based on the bare-metal code shared by you)
I was able to set the PINS using the the PORT driver utility.
DIO was not needed.
S32k3 RTD Autosar 4.4 2.0.1 D2207
IDE: S32DS 3.5

Attaching the the source code. Let me know your thoughts on it.

0 项奖励
回复
1,330 次查看
avinashstarkenn
Contributor III

Hello @vlele and @Robin_Shen ,

I was also getting the same issue like you following is the code. Like you said I added port driver in the example 'FlexCAN_Ip_Example_S32k344'.Attaching the code below.

I am also attaching 'CAN_Example_S32k344' .Can you also solve the issue in this?

@Robin_Shen Please look in the matter as soon as possible

标记 (2)
0 项奖励
回复
2,999 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi vlele,

The description.txt in that project said that This is an CAN HLD driver component LoopBack example. So you can not cannot see any CAN message on PCAN tool.

You may need to configure PORT driver and DIO driver by yourself.(LoopBack example usually doesn't configure these)

Sorry for the inconvenience we bring you!

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复