Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 1 of 1

Thread: FlexCAN_T4 - FlexCAN for Teensy 4

  1. #1
    Senior Member
    Join Date
    Dec 2016
    Montreal, Canada

    FlexCAN_T4 - FlexCAN for Teensy 4

    This initial release is a remodeled design of IFCT built from the ground up. In it's base format currently, features and enhancements will be added later on in future once more tests are completed. Here are the current features:

    CAN2.0 currently supported, FD later on...

    1) User instantiated templated class object working on both bus interfaces using user named objects.
    This allows in-sketch user definable RX and TX queue size adjustments!
    FlexCAN_T4<CAN1, RX_SIZE_256, TX_SIZE_16> Can0;
    FlexCAN_T4<CAN2, RX_SIZE_256, TX_SIZE_16> Can1;
    2) FIFO support with up to 128 filter support, as well as up to 64 mailbox capability. FIFO Tables implemented are Table A and B, C and D are not necessary and quite unusual with partial masking.

    3) Automatic Filtering, which supports all mailboxes and 128 filters provided in the FIFO.

    4) On Beta1 of Teensy, pins 0 and 1 are used for CAN2, pins 22 and 23 are used for CAN1.

    5) The initialized clock for the flexcan controller is defaulted to 24MHz oscillator in the library. You can change it to up to 60MHz during runtime using:
    6) Transmit and reception queues are supported, including sequential frames.

    7) Loop based callback firing via dequeue ( Should threading/timer support be added, they would work as well.

    8) Up to 64 mailbox callbacks can be used. If FIFO is used, MB0 callback will be assigned and fired for reception, as FIFO occupies the first mailbox onwards till end of FIFO map.

    More work to do!

    I'd also like to thank Mike for contributing and bug checks to this and many other libraries he has helped work on

    Last edited by tonton81; 05-06-2019 at 12:17 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts