STM32Cube  Version 2.0
Create Projects for STM32H7 Series with STM32Cube HAL and STM32CubeMX
 All Files Functions Variables Macros Pages
CMSIS-Driver CAN Setup

The CMSIS-Driver CAN requires:

  • Setup "To FDCAN" clock to arbitrary value (suggested is 20 MHz)
  • Configuration of FDCAN1 Mode as Master

The example below uses correct settings for STM32H743I_EVAL Board:

  • FDCAN1: Mode: Master

For different boards, refer to the hardware schematics to reflect correct setup values.

The STM32CubeMX configuration steps for Pinout, Clock, and System Configuration are listed below. Enter the values that are marked bold.

Pinout tab

  1. Configure FDCAN1 mode
    • Peripheral FDCAN1: Mode=Master Mode
  2. Configure FDCAN1 pins (not the default pins):
    • Click in chip diagram on pin PA11 and select FDCAN1_RX
    • Click in chip diagram on pin PA12 and select FDCAN1_TX

Clock Configuration tab

  1. Configure FDCAN1 Clock
    • Setup "To FDCAN (MHz)" to match application requirements

Configuration tab

  1. Under Connectivity open FDCAN1 Configuration:
    • Parameter Settings: not used
    • User Constants: not used
    • NVIC Settings: disable interrupts
      Interrupt Table Enabled Preemption Priority Sub Priority
      FDCAN1 interrupt 0 OFF 0 0
      FDCAN1 interrupt 1 OFF 0 0
      - GPIO Settings: review settings, no changes required
      Pin Name Signal on Pin GPIO mode GPIO Pull-up/Pull..Maximum out.. User Label
      PA11 FDCAN1_RX Alternate ..No pull-up and no..High .
      PA12 FDCAN1_TX Alternate ..No pull-up and no..High .
      - Click OK to close the FDCAN1 Configuration dialog