Search results

  1. M

    Another fork of FlexCAN

    Success! Did some reading and also went back and took a closer look at Darcy's example from earlier in the thread. Part of what was tripping me up is that setMask() expects a 29-bit number. The documentation says 11 or 29 bit, so that wasn't very clear. I don't think I would have figured...
  2. M

    Another fork of FlexCAN

    Thanks, I'll definitely take a look at that. Even if I didn't have a mask set, shouldn't the filters on the individual mailboxes take care of it on their own? Or are you saying that a mask is mandatory for the filters to work properly?
  3. M

    Another fork of FlexCAN

    If I do a Can0.begin(1000000, filter) with filter.id = 0x70 to set a mask of 0x70, this still allows addresses of 0x110 through. If I'm understanding the documentation correctly, it will do an AND operation with the received message and then pass to a mailbox for further filtering. In this...
  4. M

    Another fork of FlexCAN

    Some additional info...I added the following to the end of setup() to make sure the mailboxes were successfully getting a filter set. CAN_filter_t setfilter; for(uint8_t num=0; num<16; num++) { if(Can0.getFilter(setfilter,num)) { Serial.print("MB "); Serial.print(num)...
  5. M

    Another fork of FlexCAN

    Hi guys, I've been having some trouble setting a filter. I'm sure it's something simple, but I feel like I have tried everything that I can think of and don't really know what else to try. I am trying to listen for a single address, take bytes [4] and [5], and output that value on teensy's...
Back
Top