-
Notifications
You must be signed in to change notification settings - Fork 3k
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
STM32 can_init_freq() ignores frequency and uses 100000 instead #12104
Comments
Internal Jira reference: https://jira.arm.com/browse/MBOTRIAGE-2473 |
cc @ARMmbed/team-st-mcd |
Hi I understand that for CAN, there are 2 API for init: CAN::CAN(PinName rd, PinName td) : Before #11892, in each target API:
Now with #11892
|
@jeromecoutant @bikeNomad Yes, this is a bug. The fix can be found here: PR #12113. |
Fix for issue #12104 (STM32 can_init_freq() ignores frequency)
As #12113 is merged, we close close this one |
Description of defect
Attempts to create an
mbed::CAN
object passing in the CAN bit rate don't properly set the frequency. Instead, the CAN port is always opened at 100000 bps.Target(s) affected by this defect ?
All STM32 parts with CAN peripherals.
Toolchain(s) (name and version) displaying this defect ?
All
What version of Mbed-os are you using (tag or sha) ?
mbed-os-5.15
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
mbed-cli 1.10.1
How is this defect reproduced ?
Create an
mbed::CAN
object using the three-argument constructor and pass in a frequency argument other than 100000:This is due to
mbed-os/targets/TARGET_STM/can_api.c
containing this code:As you can see, the
hz
argument is ignored and100000
is used instead.The text was updated successfully, but these errors were encountered: