S32K344 FLEXCAN

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

S32K344 FLEXCAN

2,908 次查看
Anushree_17
Contributor II

1) I am using S32k3X4 EVB-Q172 board . i want to check CAN communication. 

2)My first question is that how to set FLEXCAN protocol clock and bitrate.

3)Here i am attaching my project. could you please check the FLEXCAN  Driver configuration and also check my main .c code. tell me if any changes required.

4) I am not getting CAN messages on bus master. 

0 项奖励
回复
6 回复数

2,849 次查看
Anushree_17
Contributor II

Can anyone help me out. please.

0 项奖励
回复

2,892 次查看
christopher356
Contributor I

To ensure successful CAN communication on your S32K3X4 EVB-Q172, correctly configure the protocol clock and bitrate, initialize the FLEXCAN driver, set up message buffers and interrupts, and implement message transmission and reception. Refer to the device reference manual, use the S32K SDK, debug your code, and check hardware connections.

0 项奖励
回复

2,887 次查看
Anushree_17
Contributor II

Can you please check the Flerxcan driver configuration and main.c code. and tell me what modifications do i need to in the driver configuration and main.c code. 

so .it will helpful for me.

Thanks in advance.

 

0 项奖励
回复

2,845 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

a setting looks correct. Seems just pin init function (Siul2_Port_Ip_Init) is missing in your code.
Also be sure CAN transceiver is put n normal mode, so keep EN,/STB pins high.

BR, Petr

0 项奖励
回复

2,827 次查看
Anushree_17
Contributor II

Hi, petrs.

I have added (Siul2_Port_Ip_Init) it in my main code. Code is building properly but iam not getting the Can message in S-bus. Why? 

Here iam attaching my project can you check it out.

 

0 项奖励
回复

2,796 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

as I wrote be sure CAN transceiver is put in normal mode, so keep EN,/STB pins high.
You initialized /STB to have init value low.

PetrS_0-1732869005548.png

So either change this to high or set pin high within code.

BR, Petr