Forum Rule: Always post complete source code & details to reproduce any issue!
Page 7 of 7 FirstFirst ... 5 6 7
Results 151 to 154 of 154

Thread: Another fork of FlexCAN

  1. #151
    I have a question regarding usage of the Rx mailboxes, and how they can be configured to best manage incoming messages.
    I have filters and masks set to receive important messages in particular mailboxes. Some messages I decode and process (first five mailboxes), some messages get passed to the other bus (next 3 mailboxes). However, all messages are logged to the SD card (remaining mailboxes). My problem is that I cannot guarantee that my important messages are processed by the correct mailbox handler as these messages can be accepted by the 'catch-all' mailboxes.
    I am guessing that I have to abandon filters and masks and handle all incoming messages with the General Handler, and filter my important messages in software.
    The Kinetis manual does mention:
    Selectable priority between mailboxes and Rx FIFO during matching process
    Powerful Rx FIFO ID filtering, capable of matching incoming IDs against either 128 extended, 256 standard, or 512 partial (8 bit) IDs, with up to 32 individual masking capability
    Is there anything I could do to make use of the mailboxes?
    I realize that I could close-down my 'catch-all' mailboxes to only receive messages outside of the 'important' message range but my application has the ability to read and write Filters to the SD, and also modify them during run-time, which would potentially make this approach quite complex.

    Any suggestions much appreciated.
    EDIT: It looks like configuring a pair of mailboxes for a particular message might be a solution, though this obviously reduces the number of available unique tasks to 7 ID's or ranges of ID's.
    Last edited by Darcy; 02-04-2018 at 09:06 PM.

  2. #152
    Junior Member
    Join Date
    Sep 2018
    san francisco
    hello guys i am very new to teensy and i and have teensy3.6 and i also bought two Single CAN-Bus adapter for Teensy from TinDie and i am trying to use two teensy3.6 and get them talk to each other just basic sending and receiving messages. please if there is any help to connect the hardware that will be awesome

  3. #153
    Junior Member
    Join Date
    Dec 2018
    Is 2M baud rate supported by FlexCAN library? Will it work on Teensy 3.6?


  4. #154
    Quote Originally Posted by albertr View Post
    Is 2M baud rate supported by FlexCAN library? Will it work on Teensy 3.6?

    No, Teensy 3.6 only has Classic CAN, which the max rate is 1mbps.

    If you want 2mbps then you need CAN FD.

Posting Permissions

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