[Bug]: IS_FDCAN_ALL_INSTANCE() checks only CAN1
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- c
- Domain
- embedded-iot
Research direction
Find the stm32h5e5 device header that defines IS_FDCAN_ALL_INSTANCE and check how CAN instances are represented there. Update the predicate to accept CAN1, CAN2 and CAN3, including the secure and non-secure instances where defined. Confirm the macro recognizes all three controllers.
Written by the indexing model from the issue text.
Description
Bug Summary
In stm32h5e5, IS_FDCAN_ALL_INSTANCE() checks only CAN1 but this MCU has CAN1, CAN2 and CAN3
Detailed Description
in stm32h5e5 IS_FDCAN_ALL_INSTANCE() checks only CAN1 but this MCU has CAN1, CAN2 and CAN3. Because of this bug, now we can not use HAL library to control CAN2 and CAN3.
/****************************** FDCAN Instances *******************************/
#define IS_FDCAN_ALL_INSTANCE(INSTANCE) (((INSTANCE) == FDCAN1_NS) || ((INSTANCE) == FDCAN1_S))
Expected Behavior
return true on CAN1, CAN2 and CAN3
Actual Behavior
returns true only on CAN1
Environment
CubeIDE e v2.2.0
Severity
Major
- Dominant language
- C
- Stars
- 12
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
shinyquagsire23/OpenJKDF2#540 ·
Maintainers usually reply within 12 days
-
Prison work hall: laundry and kitchen stations stand at bare walls, the hatch has no counter or signOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Life-Framework/Life-Framework#5939 ·
Maintainers usually reply within 1 day
-
category:port-update
Difficulty 1/5 Under an hour Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
autoconf failes to find libsodium even when present due to implicit function declarationPossibly taken @coderjoe claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 13 days
-
Bug Status: Needs Triage
Difficulty 1/5 Under an hour Newbie friendliness 74/100
Maintainers usually reply within 1 day