FDCAN On STM32H563 Topic is solved

Discussions and support about ChibiOS/HAL, the MCU Hardware Abstraction Layer.
Emara
Posts: 4
Joined: Wed Dec 10, 2025 3:05 pm
Has thanked: 4 times
Been thanked: 3 times

FDCAN On STM32H563  Topic is solved

Postby Emara » Wed Dec 10, 2025 4:36 pm

Hi! Is FDCAN fully supported on STM32H563??
I didn't find the FDCAN ISRs in stm32_isr.inc of the stm32h563, is it not fully supported or defined somewhere else?

User avatar
Giovanni
Site Admin
Posts: 14769
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1170 times
Been thanked: 974 times

Re: FDCAN On STM32H563

Postby Giovanni » Wed Dec 10, 2025 6:41 pm

Hi,

It is supported, ISRs are in those stm32_fdcanN.inc files.

Status is unknown, it has been tested on G4 and H7 so far.

Giovanni

Emara
Posts: 4
Joined: Wed Dec 10, 2025 3:05 pm
Has thanked: 4 times
Been thanked: 3 times

Re: FDCAN On STM32H563

Postby Emara » Thu Dec 11, 2025 10:42 am

HI!
FDCAN Handlers are not linked to its vectors there, Had to add it manually to stm32_isr.inc


Code: Select all

#define STM32_FDCAN1_IT0_NUMBER             39
#define STM32_FDCAN1_IT1_NUMBER             40
#define STM32_FDCAN2_IT0_NUMBER             109
#define STM32_FDCAN2_IT1_NUMBER             110
#define STM32_FDCAN1_IT0_HANDLER            VectorDC
#define STM32_FDCAN1_IT1_HANDLER            VectorE0
#define STM32_FDCAN2_IT0_HANDLER            Vector1F4
#define STM32_FDCAN2_IT1_HANDLER            Vector1F8

User avatar
Giovanni
Site Admin
Posts: 14769
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1170 times
Been thanked: 974 times

Re: FDCAN On STM32H563

Postby Giovanni » Thu Dec 11, 2025 10:53 am

Hi,

Thanks for finding, I committed the change on trunk.

Giovanni

Emara
Posts: 4
Joined: Wed Dec 10, 2025 3:05 pm
Has thanked: 4 times
Been thanked: 3 times

Re: FDCAN On STM32H563

Postby Emara » Fri Dec 12, 2025 1:17 pm

Hi! thanks for the update, also in stm32_isr.c fdcan irqs need to be initialized in irqInit()

Code: Select all

  fdcan1_irq_init();
  fdcan2_irq_init();


and in irqDeinit()

Code: Select all

  fdcan1_irq_deinit();
  fdcan2_irq_deinit();

User avatar
Giovanni
Site Admin
Posts: 14769
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1170 times
Been thanked: 974 times

Re: FDCAN On STM32H563

Postby Giovanni » Fri Dec 12, 2025 1:44 pm

Forgot about that, committed.

Giovanni

Emara
Posts: 4
Joined: Wed Dec 10, 2025 3:05 pm
Has thanked: 4 times
Been thanked: 3 times

Re: FDCAN On STM32H563

Postby Emara » Wed Dec 24, 2025 1:12 pm

Hi,
Regarding the same file stm32_isr.h for the STM32H563, I believe there may be a minor naming issue in the following definition:

Code: Select all

#define STM32_TIM1_UP_TIM16_NUMBER 42

It seems this should instead be:

Code: Select all

#define STM32_TIM1_UP_NUMBER 42

User avatar
Giovanni
Site Admin
Posts: 14769
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1170 times
Been thanked: 974 times

Re: FDCAN On STM32H563

Postby Giovanni » Sun Dec 28, 2025 8:45 am

Hi,

Changes committed, thanks.

Giovanni


Return to “ChibiOS/HAL”

Who is online

Users browsing this forum: No registered users and 28 guests