S32K344 FLEXCAN

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

S32K344 FLEXCAN

2,465 Views
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 Kudos
Reply
6 Replies

2,406 Views
Anushree_17
Contributor II

Can anyone help me out. please.

0 Kudos
Reply

2,449 Views
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 Kudos
Reply

2,444 Views
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 Kudos
Reply

2,402 Views
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 Kudos
Reply

2,384 Views
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 Kudos
Reply

2,353 Views
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