Skip to main content
Associate II
October 26, 2025
Solved

CAN Communication Not Working on STM32F746 — No Frames on Bus MASTER or PCAN

  • October 26, 2025
  • 1 reply
  • 577 views

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:

  1. If my CAN clock configuration is correct

  2. Whether the CAN2 TX/RX pins are configured with the right alternate functions

  3. If my main.c code for CAN initialization and transmission looks correct

  4. 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 .

 

Best answer by mƎALLEm

So you need to check again your hardware I suspect something wrong in your hardware: either in the transceiver itself (it could be defective), its power supply is not well connected to 5V or it's an issue in your wiring (so test the continuity on CAN_H and CAN_L)! I don't see something wrong in the code you shared in your first post.

1 reply

Akhila_17Author
Associate II
October 27, 2025

CAN communication on STM32F746ZG controller.
Can anyone please  help me as soon as possible.

mƎALLEm
Technical Moderator
October 27, 2025

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?

 

"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."
Akhila_17Author
Associate II
October 27, 2025

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.