2025-10-26 3:11 AM - last edited on 2025-10-27 12:59 AM by mƎALLEm
Hi everyone,
I’m working on CAN communication using STM32F746 in STM32CubeIDE.
My goal is to transmit CAN frames continuously and verify them using BusMaster or PEAK CAN analyzer,but I’m not seeing any CAN frames on the bus.
To help review my setup, I have attached my project ZIP file below.
Could someone please check and confirm:
If my CAN clock configuration is correct
Whether the CAN2 TX/RX pins are configured with the right alternate functions
If my main.c code for CAN initialization and transmission looks correct
Whether I need any filter configuration even if I only want to transmit
Setup details:
Controller: STM32H746
Interface: CAN1
Mode: Normal
Baud rate: 500 kbps
TX/RX Pins: [PD0/PD1]
Using HAL drivers
Can you please check with my project and help me out .
2025-10-27 12:47 AM
CAN communication on STM32F746ZG controller.
Can anyone please help me as soon as possible.
2025-10-27 12:56 AM - edited 2025-10-27 1:03 AM
Hello,
First, I suggest you to read this article in two parts:
Using CAN (bxCAN) in Normal mode with STM32 microcontrollers (Part 1)
Using CAN (bxCAN) in Normal mode with STM32 microcontrollers (Part 2)
Second, for CAN questions please provide a sketch of your nodes on the CAN bus. and the schematics of STM32F746ZG mainly the CAN part: the MCU + the transceiver + the terminating resistor.
Third: the issue is not clear. When you said: "but I’m not seeing any CAN frames on the bus.". do you mean you are not seeing the frames sent by STM32F746ZG MCU? and what do you mean by "Whether the CAN2 TX/RX pins are configured with the right alternate functions" . What CAN2 does here?
2025-10-27 2:44 AM
Hi,
Based on the articles references you provided i have created new project for STM32F746 controller for CAN communication.
Here i am providing the Project Zip folder can you please check it once.
The transceiver iam using is TJA1050.
The CAN Rx, TX pins are used in STM32 is PD0,PD1.
Regarding Termination resistor, i have termination on Bus Master side and other is on MCU side.
My problem is that i am sending CAN frame on CAN but iam not able to see it on Busmaster.
Can you please check my code and help me.
2025-10-27 2:49 AM - edited 2025-10-27 3:05 AM
Please to share the schematics of the CAN part + a sketch of the CAN bus, otherwise I cannot help you efficiently. Words cannot tell everything.
That's an example of a sketch:
2025-10-27 4:00 AM
2025-10-27 4:10 AM - edited 2025-10-27 4:15 AM
What about the Power supply of the CAN transceiver? how did you power supply it? It's a 5V transceiver and not a 3.3V one!
What about S pin voltage level of the transceiver?
The default mode is at high speed but I need a confirmation that S is not pulled up to VDD in your hardware (transceiver in a silent mode: you are not able to transmit). Please measure it with a multimeter or an oscilloscope.
That's why I asked also for the schematics!
2025-10-27 4:24 AM
It's a 5V transceiver and S pin connected to GND. but still i cant see CAN Frames on Bus MAster.
2025-10-27 4:30 AM
@Akhila_17 wrote:
It's a 5V transceiver
Yes I know and this is what I've said. How did you power supply it? What board are you using a NUCLEO-F746? if yes how did you power supply the transceiver then? from +5V of the NUCLEO?
2025-10-27 4:37 AM
yes iam using NUCLEO-F746Zg board.
External 5V power supply to power the Transceiver.