Skip to main content
JYI
Associate II
October 21, 2022
Question

STM32H723 FDCAN1 AT CLASSIC MODE Not Working

  • October 21, 2022
  • 1 reply
  • 1099 views

FDCAN1 Settings:

FDCAN_FRAME_CLASSIC;

FDCAN_MODE_NORMAL;

FDCAN_EXTENDED_ID;

FDCAN_FILTER_MASK;

TX/RX FIFO Enabled.

Call Functions In sequency:

MX_FDCAN1_Init();

 hfdcan1.Init.NominalPrescaler = 5;

 hfdcan1.Init.NominalSyncJumpWidth = 3;

 hfdcan1.Init.NominalTimeSeg1 = 15;

 hfdcan1.Init.NominalTimeSeg2 = 4;

TQ=50ns, Baud Rate=1000000 bit/s

HAL_FDCAN_ConfigFilter();

HAL_FDCAN_ConfigRxFifoOverwrite();

HAL_FDCAN_ConfigFifoWatermark();

HAL_FDCAN_ConfigInterruptLines();

HAL_FDCAN_ActivateNotification();

HAL_FDCAN_Start();

Afterall, nothing happened.

Pin CAN_TX stays high (3.3V).

Anything missing for setup?

Thanks.

JYI

This topic has been closed for replies.

1 reply

Technical Moderator
October 24, 2022

Hello @Community member​ ;

You can review the FDCAN example provided in STM32CubeH7 MCU package under:

\Repository\STM32Cube_FW_H7_V1.x.x\Projects\STM32H743I-EVAL\Examples\FDCAN\

You can get inspiration from this example to develop your application.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks