2022-10-21 01:52 PM
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
2022-10-24 08:19 AM
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