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

Search:

Type: Posts; User: tni

Search: Search took 0.00 seconds.

  1. Replies
    168
    Views
    83,669

    That doesn't work. For a transceiver-less setup,...

    That doesn't work. For a transceiver-less setup, you can do the following:
    https://forum.pjrc.com/threads/43684-CAN-bus-Teensy-Teensy-communication-without-transceiver
  2. Replies
    168
    Views
    83,669

    It's not unlikely that you have a hardware issue....

    It's not unlikely that you have a hardware issue. Several people had issues with bad transceivers. Some suggestions: Check the polarity of the transceiver. Try talking between 2 Teensies with Can,...
  3. Replies
    168
    Views
    83,669

    Have you actually set the baud rate correctly?...

    Have you actually set the baud rate correctly? There is 500'000 and 125'000 in the code you posted.

    Have you connected TX? If you read back a few posts, Teensy will discard messages that are not...
  4. Replies
    168
    Views
    83,669

    The mask is not the filter. The mask can...

    The mask is not the filter. The mask can partially (or completely) disable the filter (which the default config does). There is a separate 'setMask()' function.

    Read the manual, go to the FlexCan...
  5. Replies
    168
    Views
    83,669

    Look at the mask. It determines which filter bits...

    Look at the mask. It determines which filter bits are active - by default none. (Consider it wildcard matching.)
  6. Replies
    168
    Views
    83,669

    I did. Testing ACKs happens automatically. If the...

    I did. Testing ACKs happens automatically. If the receiver can't send an ACK (it monitors the bus for it's own transmission), the receiver will discard the message.

    If I disconnect the receiver...
  7. Replies
    168
    Views
    83,669

    It is configured at runtime and not persistent....

    It is configured at runtime and not persistent. The FlexCAN default is to not use listen only mode and acknowledge (it works for me).

    It sounds like the transmitter of your CAN transceiver isn't...
  8. Replies
    168
    Views
    83,669

    If you didn't set listen only mode...

    If you didn't set listen only mode, Teensy should acknowledge messages.
  9. Replies
    168
    Views
    83,669

    What are you doing? Your sketch is using the...

    What are you doing? Your sketch is using the latest header, but from the link error messages it's clear that you have an old FlexCAN version around that gets compiled.
  10. Replies
    168
    Views
    83,669

    Teensyduino...

    Teensyduino. 1.36 is the latest release.

    Post #103.
  11. Replies
    168
    Views
    83,669

    @kiwi64ajs: Your attachment from #109 works here...

    @kiwi64ajs:
    Your attachment from #109 works here (Teensy 3.2).
  12. Replies
    168
    Views
    83,669

    @TurboStreetCar: The code from #105 works here...

    @TurboStreetCar:
    The code from #105 works here (FlexCAN from TD 1.36).

    @kiwi64ajs:
    Can you post the compiled .elf and .hex? It's in the sketch build directory. The forum allows attachments, if...
  13. Replies
    168
    Views
    83,669

    platform.txt is not the right place (the version...

    platform.txt is not the right place (the version number there is junk).

    The build output has the version (IDE Preferences / 'Show verbose output during compilation'):
    ...
    Compiling library...
  14. Replies
    168
    Views
    83,669

    Your last sketch works here. Teensy 3.1 should be...

    Your last sketch works here. Teensy 3.1 should be the same as 3.2, except for bootloader chip and power converter.

    TD 1.6.7 that you mentioned, doesn't exist - Arduino 1.6.7 exists but is rather...
  15. Replies
    168
    Views
    83,669

    That's wrong. Use the predefined Can0 / Can1...

    That's wrong. Use the predefined Can0 / Can1 objects and CanX.begin(frequency).

    Your sketch works with Teensy 3.2, if I change that.
  16. Replies
    168
    Views
    83,669

    It works with Teensy 3.1/3.2 (TD 1.36 version and...

    It works with Teensy 3.1/3.2 (TD 1.36 version and GIT version work). Are you mixing versions? The RX callback name has changed from 'gotFrame(...)' to 'frameHandler(...)'.
  17. Replies
    168
    Views
    83,669

    Pull request:...

    Pull request:
    https://github.com/collin80/FlexCAN_Library/pull/4

    This allows users to create their own transmit queues with different message priorities.
Results 1 to 17 of 17