Skip to main content
EmbeddedErik
Associate II
November 2, 2022
Solved

Setting up CAN for a STM32F303VBTx

  • November 2, 2022
  • 1 reply
  • 794 views

Hello! I am trying to set up CAN for a custom hardware, but right now I am just trying to get CAN running by itself on a STM32F3Discovery. I attached the full code below, but from what I can tell, it goes as far as sending the message out, but all i read from the bus are error frames. A Kvaser USBCan Light 2xHS is used as the other node. I have tried so the bus works by connecting hardware I know is properly set up, and the Kvaser is able to read it. All nodes are set up to a Baudrate of 250k bit/s. From searching for this problem, the error indicates that the Baudrate is wrong, but from what I can tell it should be 250K, so it makes no sense to me. Since a message tries to be sent out (since the error frame happens at the same time as we try to send a message, it seems the configuration for CAN peripherals is correct.

Let me know if any more information is needed!

Best regards!

This topic has been closed for replies.
Best answer by EmbeddedErik

It happened to be a hardware fault that causes my issues, not a software one! Case closed.

1 reply

EmbeddedErik
EmbeddedErikAuthorBest answer
Associate II
November 9, 2022

It happened to be a hardware fault that causes my issues, not a software one! Case closed.