Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • msadie's Avatar
    04-11-2021, 02:07 AM
    If you are using a library like MegaCAN, which will parse the message IDs and data, fifo with interrupt probably makes the most sense.
    664 replies | 60797 view(s)
  • msadie's Avatar
    04-10-2021, 01:12 PM
    Regarding adding the 'new data' flag, that's a good idea. If your msg unpacking routine is intensive, you might just copy your message from the interrupt to a global, set a 'new msg 1501' flag, then later unpack it in...
    664 replies | 60797 view(s)
  • msadie's Avatar
    04-10-2021, 01:02 PM
    No need to use can.events() if you are using mailbox interrupts. The interrupt will fire upon receipt of each message, and the received message object will be passed as an input arg. You can use one interrupt function...
    664 replies | 60797 view(s)
  • msadie's Avatar
    04-10-2021, 05:32 AM
    If you have a limited enough set of rx IDs, I find it easiest to just assign each its own mailbox using the mailbox filters. Unless you are logging data or receiving multi-frame data packets, you generally only...
    664 replies | 60797 view(s)
  • msadie's Avatar
    04-07-2021, 01:06 AM
    Do you have an oscilloscope or logic analyzer that you can use to verify signals? Viewing CANH/CANL and TX/RX signals would make quick work of troubleshooting.
    664 replies | 60797 view(s)
  • msadie's Avatar
    04-05-2021, 01:22 AM
    As @tonton81 mentioned, I've had success with both the TCAN330 and TCAN337. Aside from the special function pins and being powered by 3.3V, these transceivers function the as well as any others I've used with teensy...
    664 replies | 60797 view(s)
  • msadie's Avatar
    03-30-2021, 03:58 AM
    Rayan, just an idea: Can you record a single frame on your scope, with the probes on the receiving node's RX and TX signals? Does RX look like a proper CAN frame? Is TX quiet, except for a single ACK bit? Can you...
    664 replies | 60797 view(s)
  • msadie's Avatar
    03-22-2021, 12:20 PM
    Do you have proper bus termination resistors? Combined resistance between CANH and CANL should be 60 ohms. Also, can you clarify what the leds are doing with the Rs pin? If it isn't strongly pulled to ground, it's...
    664 replies | 60797 view(s)
No More Results
About msadie

Basic Information

Statistics


Total Posts
Total Posts
66
Posts Per Day
0.16
Last Post
FlexCAN_T4 - FlexCAN for Teensy 4 04-11-2021 02:07 AM
General Information
Last Activity
Yesterday 03:41 AM
Join Date
03-30-2020