FlexCAN example code on K60/K20

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

FlexCAN example code on K60/K20

1,978 Views
pramodtm-b46240
Contributor III

Hi all,

     I have been looking for FlexCAN example code on K series(for TWR-K60D100M/K20D72M in particular). I found the one with the loopback mode in CW installation directory. Tried converting it into interboard communication using TWR-SER and some modifications in the example code. But I'm not getting the interrupts at all.

     So, Can anybody share the code(non loopback) for FlexCAN?

Thanks,

pramod

0 Kudos
4 Replies

682 Views
pramodtm-b46240
Contributor III

Hello Mark,

     Thank you. The document you shared is helping me in understanding the concept well.

     While going through the RM of K60, in FlexCAN chapter terminologies called mailbox and message buffer are used. I'm a little confused here. Are they same? and can be interchangeabe? Or mailboxes are completely different from message buffers?

Thanks

0 Kudos

682 Views
mjbcswitzerland
Specialist V

Hi

See Mailboxes and Buffers from flexcan example

The FlexCAN in teh Coldfire is teh same as the one in the Kinetis.

Regards

Mark

0 Kudos

682 Views
pramodtm-b46240
Contributor III

Hi Mark,

     Thanks for redirecting. From what I get now, Message buffer is a part of HW. Mailbox is the software side buffer implemented in the CAN driver.

     Based on the mask filter for individual mailbox, the message is recieved/rejected from the message buffer.

Regards,

Pramod

0 Kudos