cancel
Showing results for 
Search instead for 
Did you mean: 

Struggling with STM32L432 CAN Bus communication from one STM32L432 to another STM32L432 using MCP2551

Dave001
Visitor

Hi all,

I am Struggling with STM32L432 CAN Bus communication from one STM32L432 to another STM32L432 using MCP2551.

* I have checked loopback works.

*I am using HSE Clock (After soldering SB17) - 

Dave001_0-1750297415512.png

Dave001_1-1750297436889.png

 

* I have also tried putting Oscilloscope at TX pins between STM32 Transmitter and MCP2551 but signal just stays high.

* Plus, i can see that this never triggers but putting it in debug mode and putting a breakpoint in there

Dave001_2-1750297571288.png

 

I also tried following this guy: 115. STM32CubeIDE MCP2551 CAN BUS with STM32 F103C8T6 

but to no avail. 

* I also tried doing the same setup i.e. ADC on transmitter sending information to other side via CANBUS.

* I have quadrupled checked Hardware circuitry, and all seems to be right.

* CANBUS Distance is also less than a meter now with termination at both ends.

TX Code - 

Dave001_5-1750297828603.pngDave001_6-1750297837587.png

 

 

RX Code - 

Dave001_3-1750297798394.png

Dave001_4-1750297807967.png

 

 

Any help would be much appreciated.

 

Thanks

 

0 REPLIES 0