Search results

  1. megax

    FlexCAN_T4 - FlexCAN for Teensy 4

    Does the program itself visibly stall, or is it that the outgoing data is not transmitted for about 0.5 seconds? It’s possible that the single mailbox is the bottleneck. In theory, since your program isn’t doing anything else, it shouldn’t be stealing time from other operations to keep...
  2. megax

    FlexCAN_T4 - FlexCAN for Teensy 4

    You could also try this. In theory, read() does not use a buffer, so there might be data loss there as well. This is my last idea. With my code it works, even with a large codebase. Of course, in some cases this might make things worse. In any case, if you can, give this a try as well. #include...
  3. megax

    FlexCAN_T4 - FlexCAN for Teensy 4

    #include <FlexCAN_T4.h> FlexCAN_T4<CAN1, RX_SIZE_256, TX_SIZE_256> can1; FlexCAN_T4<CAN2, RX_SIZE_256, TX_SIZE_256> can2; CAN_message_t msg; void setup(void) { can1.begin(); can1.setBaudRate(500000); can2.begin(); can2.setBaudRate(500000); } void loop() { if ( can1.read(msg) ) {...
  4. megax

    FlexCAN_T4 - FlexCAN for Teensy 4

    Hi, you need to set msg.seq = 1; in the message you are about to send. This tells the code to transmit the messages in order. Additionally, I found a related bug in the library, which I reported here: https://github.com/tonton81/FlexCAN_T4/issues/78#issuecomment-3734570651 My fix can be found...
  5. megax

    FlexCAN_T4 - FlexCAN for Teensy 4

    I found the root cause of the issue. I’ve attached my response and the code here as well (it also includes other development work): https://github.com/tonton81/FlexCAN_T4/issues/78#issuecomment-3734570651
  6. megax

    FlexCAN_T4 - FlexCAN for Teensy 4

    sorry, I understand the mesarments, but my translater who helps me, she doesn't know and I did not check it. please, forgive me the mistakes of the traslation.
  7. megax

    FlexCAN_T4 - FlexCAN for Teensy 4

    Thank you very much for your answers and questions. I will try to answer them. I increased the 60mhz because there was an error (also on 24mhz), now I have taken it back to 24mhz, it is still there. Double 120 ohms are included in the system, they may not be twisted, but ifm factory cables, in...
  8. megax

    FlexCAN_T4 - FlexCAN for Teensy 4

    Hi, I submitted a bug report to the github repo issue reporter. I can't provide an example program at the moment, but has anyone experienced something similar? Data is damaged/changed when I send data. More information is in the whistleblower. (I formatted and attached information as well)...
Back
Top