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...
Actually, your last code really passed the flashing procedure through and it flashed!
Only problem now is the Teensy getting stuck in some moments for 0.5 seconds. Maybe you know what could cause that?
@megax Thanks for trying to help, I tried this code, also tried your fork but it didn't help.
When I try your code, the packets are getting lost from all the IDs, it is like the Teensy gets stuck and then unfreezes after a second
I also tried a combination like this, it crashes the flashing at the beginning already.
#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...
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...
Hi all, I am trying to do my own CAN bus bridge for my car.
I want to be able to replace a few bytes on one ID and let the Teensy live in the car so I don't have to take it out all the time.
I tried the BiDirectionalForward example and it looked...