Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[Backport v3.3-branch] drivers: can: stm32: correct timing_max parameters #61538

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

zephyrbot
Copy link
Collaborator

@zephyrbot zephyrbot commented Aug 16, 2023

Backport cec279b from #61449.

Fixes #61451

The timing_max parameters defined in the stm32 bxcan driver don't match the
register description in the reference manuals.
- sjw does have only 2 bits representing 1 to 4 tq.
- phase_seg1 and phase_seg2 max is one tq higher.

I have checked the following reference manuals and all match:
- RM0090: STM32F405, F415, F407, F417, F427, F437 AND F429
- RM0008: STM32F101, F102, F103, F105, F107 advanced arm-based mcus
- RM0351, RM0394: all STM32L4
- RM0091: all STM32F0 with CAN support

Signed-off-by: Thomas Stranger <thomas.stranger@outlook.com>
(cherry picked from commit cec279b)
@fabiobaltieri fabiobaltieri merged commit ea800e9 into v3.3-branch Aug 22, 2023
26 checks passed
@nashif nashif deleted the backport-61449-to-v3.3-branch branch February 13, 2024 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: CAN Backport Backport PR and backport failure issues platform: STM32 ST Micro STM32
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants