CAN communication only working when the reciever is reset?
The goal of my project is to turn on an LED on the recieving side through CAN. Both my reciever and transmitter have the transciever circuit. Both are Nucleo boards, TX: F303RE, RX: F446RE.
The data i am sending through is 16-bit, but as long as my reciever is not in reset copnstantly (as in me holding the reset button when the program is running), the transmitted and recieved data is not correct, its far to short. The data is the same on TX and RX, but wrong. But when i hold reset on the reciever the data that comes through looks right.
I cant figure out what the problem is, i have measured the connections on the transcievers a million times, measured the RX, TX pin, CAN_H and L and always come back to the same issue.
I am programming the boards in Cube_IDE. The pictures below are of the boards and the signals i recieve. Please help. I dont see how this could be a hardware problem but maybe I missed something, i am still a begginer.
The reciever board is part of another project, but i used it, since it has the transciever circuit and that way there was no soldering needed. And the reciver board worked on the previous project of my friend.
The boards

The signal when the RX is not reset:

The signal when it is reset:

Any help is appreciated ! The codes i put as txt files.
