S32K344 FLEXCAN

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

S32K344 FLEXCAN

2,467件の閲覧回数
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,408件の閲覧回数
Anushree_17
Contributor II

Can anyone help me out. please.

0 件の賞賛
返信

2,451件の閲覧回数
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,446件の閲覧回数
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,404件の閲覧回数
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,386件の閲覧回数
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,355件の閲覧回数
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