2025-08-13 12:24 AM - last edited on 2025-08-13 1:28 AM by Andrew Neil
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.
2025-08-13 1:09 AM
As a first try if you have a CAN tool use it and verify if the messages that are transmitted are received properly on the tool and then you can go in steps of transmitting messages from the tool etc.
2025-08-13 1:17 AM
I dont have a CAN tool. I have an osciloscope. I have verified that i recieve the same message that i transmitt. I have also noticed another problem, my TX stops sending data after a period of time and needs a reset, then it starts sending data (wrong data again). Hope this maybe is a useful clue. Thanks for replying !