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

Thread: How do you install FlexCAN_t4 library?

  1. #1
    Junior Member
    Join Date
    Oct 2019
    Posts
    5

    How do you install FlexCAN_t4 library?

    How do you actually install the FlexCAN_t4 as a library for teensy 4.0? Thanks...

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    9,971
    Download the ZIP

    Go to your sketchbook folder

    look for or make a dir:: libraries

    Put the extracted folder there in the folder with the right name on it matching the main .h file - i.e. remove '-master' or anything else added to the folder.

    Starting with IDE closed - or close and re-open will have it scan that libraries directory and show it in the files/examples list.

  3. #3
    Junior Member
    Join Date
    Oct 2019
    Posts
    5
    Thanks...

    I'm puzzled I see the "source" file has the .tpp extension. This doesn't need to be changed to .cpp or anything?

  4. #4
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    9,971
    Quote Originally Posted by emicros View Post
    Thanks...

    I'm puzzled I see the "source" file has the .tpp extension. This doesn't need to be changed to .cpp or anything?
    That is fancy cpp feature for a Template file AFAIK ...

  5. #5
    Junior Member
    Join Date
    Oct 2019
    Posts
    5
    Is FlexCAN_t4 only used for CAN_FD or is it for normal CAN 2.0 also?

  6. #6
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    9,971
    It can be used for CAN 2.0 and CAN FD - there is a whole thread on that library that will give details or examples.

  7. #7
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    9,971
    Forum search often not effective with none or too many answers perhaps - but in this case a simple search for FlaexCAN_t4 quickly pointed out :: forum.pjrc.com/threads/56035-FlexCAN_T4-FlexCAN-for-Teensy-4

    In cases it doesn't work Bing and Google do typically provide good results to forum.PJRC topics

Posting Permissions

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