Associate
December 11, 2024
Question
STM32 CAN Communication isn't occuring
- December 11, 2024
- 1 reply
- 815 views
Setup- I am using Platform I/o to upload code to STM32 , Teensy. I am Sending Data from one STM to another STM via CAN and the message that I received on STM I am communicating it through UART to Teensy to Serial print it. I couldn't Serial print using STM directly so I am using Teensy.
Issue- My UART Communication works fine when I remove all the CAN statements from the code but when I write just can.begin(500000) then My Serial monitor prints just S when I said it to print
"STM32 CAN Receiver Initialized" and when I add the entire CAN code then Nothing is visible on Serial monitor. I checked difference between CANH and CANL on Oscilloscope and I am always getting it to be 0. So CAN communication isn't happening. Is there any extra code that is required for enabling CAN communication ? The library that I am using is https://github.com/pazi88/STM32_CAN/blob/main/STM32_CAN.cpp