cancel
Showing results for 
Search instead for 
Did you mean: 

Starting CAN Bus on STM32F302K8

Rey
Visitor

Hi,

I am working on STM32F302K8 and would like to use it's CAN Bus to communicate between devices both as master and slave It is my first time using STM32CubeIDE and the HAL library and implementing CAN Bus on my work. I did use some samples scattered around the internet but I couldn't get the CAN bus working not even finishing the initialization.  I have attached my sample program with bare minimum just USART to check the sequence of the init() function and couple of GPIO outputs for the LEDs.

1 REPLY 1
SofLit
ST Employee

Hello @Rey and welcome to the community,

Before going ahead with analysis, could you please tell about your CAN hardware configuration?

1- How are you connecting the two devices? are you using CAN transceivers?

2- Are you adopting this exact structure?: SofLit_0-1729078448084.png

transceivers+ terminating resistors.

If you are using transceiver, could you please provide its part number?

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.