Search results

  1. S

    FlexCAN_T4 - FlexCAN for Teensy 4

    Shifting Payload of CAN-FD Frame Hey guys, After successfully splitting up CAN-FD frames into CAN Frames I am now at a point where I have to shift the payload of the CAN-FD payload. The reason is that I can't extract information about e.g. a velocity signal out of two seperate generated CAN...
  2. S

    FlexCAN_T4 - FlexCAN for Teensy 4

    Thanks, the library was not up to date. Another question - The CAN ID which I am setting is in the extended format (29 bit). When printing it to the Serial Monitor it shows the ID correctly either in decimal or hexadecimal (e.g. 0x13DD6510). But on the physical output (double checked with...
  3. S

    FlexCAN_T4 - FlexCAN for Teensy 4

    Hey guys, I am getting "DBG NORM: -1" messages in my Serial Monitor but I don't know whats the meaning of them. Sometimes it's single prints, the other time there als 3 prints. I can't find something about this message neither in the .cpp or .h files nor in the IMXRT1062 PDF. My second...
  4. S

    FlexCAN_T4 - FlexCAN for Teensy 4

    Thanks for the hints, I got it to work after I realised, that I have to set the whole config values once again instead of simply change the baudrate. Another question: My program works perfectly with config.clock at "CLK_24MHz" as well as "CLK_60MHz" for 0,5 MBaud / 1 MBaud and 2 Mbaud. 4 Mbaud...
  5. S

    FlexCAN_T4 - FlexCAN for Teensy 4

    No my bus has 500kBaud arbitration and 2MBaud datarate. Arbitration stays always the same, only datarate will change. I am using the config defaults, in case you mean CANFD_timings_t config; What do you mean with "change the bitrates at startup like normally"? My Setup is working perfectly when...
  6. S

    FlexCAN_T4 - FlexCAN for Teensy 4

    Thanks for the answer Bruce, but I'am missing something. When I try to switch through different baudrates I came across the FLEXCAN_FDRATES enum typedef*enum*FLEXCAN_FDRATES*{ **CAN_1M_2M, **CAN_1M_4M, **CAN_1M_6M, **CAN_1M_8M }*FLEXCAN_FDRATES; and the FCTPFD_FUNC void...
  7. S

    FlexCAN_T4 - FlexCAN for Teensy 4

    But how can I detect, that the interrupt is firing? Is there a flag, something like a bool, which is true when recognized CAN data with a correct baud rate?
  8. S

    FlexCAN_T4 - FlexCAN for Teensy 4

    I can activate listen only mode only by using the setBaudRate()-fuction, right? My approach would be to loop through the possible baudrates but how can I detect whether the callback start or not? With callback you mean the onReceive()-function?
  9. S

    FlexCAN_T4 - FlexCAN for Teensy 4

    Ok thank you, but I am not sure how to adapt the baudrate dynamically. I tried following: CAN_FD.begin(); [...] config.baudrate = 500000; config.baudrateFD = CAN_FD.setBaudRate(config, LISTEN_ONLY); Serial.println(config.baudrateFD); But it only prints CAN-FD messages to my...
  10. S

    FlexCAN_T4 - FlexCAN for Teensy 4

    Ok, so the CAN-FD input does not support listen-only mode? Because in my case, the CAN-FD data-baudrate could change
  11. S

    FlexCAN_T4 - FlexCAN for Teensy 4

    Thanks a lot - I checked my wiring and now it works perfectly:) I have another question: Is there a "silent mode" where it is possible to detect the baudrate of the CAN/CAN-FD network? For example if you connect the teensy-triple-can board to different cars with different baudrates.
  12. S

    FlexCAN_T4 - FlexCAN for Teensy 4

    Sorry, but I think you did not understand my problem because the answer does not match my question correctly. Do you, or somebody else need further information to help me with sending CAN-messages correctly? Do I have to clear the mailboxes manually. Once again, my program logic: 1. Receiving...
  13. S

    FlexCAN_T4 - FlexCAN for Teensy 4

    I don't really understand this. Does it mean that I can use mailboxStatus() only by sending or receiving CAN at CAN3 (Pins 30, 31 on Teensy 4.0)? In the following serial-prints maybe I can show my problem in a better way: Incoming CAN-FD message: MB 1 OVERRUN: 0 LEN: 48 EXT: 0 EDL: 1 TS...
  14. S

    FlexCAN_T4 - FlexCAN for Teensy 4

    Alright, thanks. I have another question regarding the mailboxes for transmitting. Now my program is able to split a CAN-FD message into the right amount of necessary CAN messages with the corresponding payload. The problem is that when I am calling CAN.mailboxStatus() the content does not...
  15. S

    FlexCAN_T4 - FlexCAN for Teensy 4

    Perfect, the len_to_dlc-functions helps me to go on Only for my understanding: - receiving data from interrupts happens when using onReceive() instead of the read()? - events() is the basis of onReceive() because it cares about routing e.g. CAN-FD Frames (which triggered interrupts) to the...
  16. S

    FlexCAN_T4 - FlexCAN for Teensy 4

    Hey guys, My intention is to build a gateway that splits a CAN-FD frame into several CAN frames. My approach would be: If there is a CAN-FD frame with DLC = 15 (64 byte payload), I divide the content into 8 CAN frames with 8 bytes each, with DLC = 14 in 6 frames, with DLC = 13 in 4 frames and...
  17. S

    FlexCAN_T4 - FlexCAN for Teensy 4

    Hi msadie, in fact youre right - thanks! Now I am getting Data I tried it before, but there was presumably another mistake
  18. S

    FlexCAN_T4 - FlexCAN for Teensy 4

    Can not receive CAN-Bus Frames with Teensy in conjunction with Waveshare SN65HVD230 C Hi guys, I have some basic beginner questions about Teensy 4.0 in conjunction with the FlexCAN_T4 library, since my attempts to read CAN signals have not been successful so far.My experimental setup is as...
Back
Top