FlexCAN in loopback test

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

FlexCAN in loopback test

3,009 Views
arvindupadhyay
Contributor II

Hi Friends,

 

I am using S32K144, i want some sample code to test Flex CAN in loopback mode. I have written code but it is not working.

 

Regards,

Arvind

Labels (1)
0 Kudos
5 Replies

2,143 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Arvind,

see attached example. It is not loopback mode but it should help. Two FRDM boards are used.

Pushing SW2 on Tx board starts sending CAN message, then Rx board reply same message to Tx board.

You can configure project for Rx and Tx at line 41 in main.c.

Regards,

Lukas

2,143 Views
swatimali
Contributor I

Hi,

I am beginner for CAN , can you please explain how should I use above attached code for CAN functionality on S32K144 Eval board ?. I have PCAN view tool how should I see data their.

Thanks & Regards,

Swati Mali

0 Kudos

2,143 Views
arvindupadhyay
Contributor II

Hi ,

Here is my sample code for LoopBack Test for FlexCAN.

GitHub - arvind747/S32K144_FlexCAN_LoopBackTest: Example code of FlexCAN loopback test 

Regards,

Arvind

0 Kudos

2,143 Views
arvindupadhyay
Contributor II

Hi Lukas,

Thank you for reply, I am managed to configure example code as in loopback mode and its working fine.

Regards,

Arvind.

0 Kudos

2,143 Views
dileepbalgi
Contributor I

Hello Arvind,

   Can you please explain how you are able to configure the above example in loopback mode.It will be helpful if u attach the code with the reply.

Regards,

Dileep

0 Kudos