Page 1 of 1
FDCAN On STM32H563
Posted: Wed Dec 10, 2025 4:36 pm
by Emara
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?
Re: FDCAN On STM32H563
Posted: Wed Dec 10, 2025 6:41 pm
by Giovanni
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
Re: FDCAN On STM32H563
Posted: Thu Dec 11, 2025 10:42 am
by Emara
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
Re: FDCAN On STM32H563
Posted: Thu Dec 11, 2025 10:53 am
by Giovanni
Hi,
Thanks for finding, I committed the change on trunk.
Giovanni
Re: FDCAN On STM32H563
Posted: Fri Dec 12, 2025 1:17 pm
by Emara
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();
Re: FDCAN On STM32H563
Posted: Fri Dec 12, 2025 1:44 pm
by Giovanni
Forgot about that, committed.
Giovanni
Re: FDCAN On STM32H563
Posted: Wed Dec 24, 2025 1:12 pm
by Emara
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:
Re: FDCAN On STM32H563
Posted: Sun Dec 28, 2025 8:45 am
by Giovanni
Hi,
Changes committed, thanks.
Giovanni