Skip to content

fix(HardwareTimer): handle FDCANx irq when shared with TIMx irq #2301

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

fpistm
Copy link
Member

@fpistm fpistm commented Mar 11, 2024

Application have to declare the phfdcan1 and phfdcan2.

Example:

FDCAN_HandleTypeDef myhfdcan1;
FDCAN_HandleTypeDef *phfdcan1 = &myhfdcan1;
#if defined(FDCAN2_BASE)
FDCAN_HandleTypeDef *phfdcan2 = NULL;
#endif

Fixes #2224.

Application have to declare the phfdcan1 and phfdcan2.

Example:
FDCAN_HandleTypeDef myhfdcan1;
FDCAN_HandleTypeDef *phfdcan1 = &myhfdcan1;
#if defined(FDCAN2_BASE)
FDCAN_HandleTypeDef *phfdcan2 = NULL;
#endif

Fixes stm32duino#2224.

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
@fpistm fpistm merged commit 641f3d8 into stm32duino:main Mar 12, 2024
@fpistm fpistm deleted the TIM_FDCAN branch March 12, 2024 08:26
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
fix 🩹 Bug fix
Projects
Development

Successfully merging this pull request may close these issues.

FDCAN bus interrupts are not handled for the STM32G0B1 causing an infinite loop
1 participant