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

Fix: s32k1 s32k3 kinetis: add propseg to ctrl1 timing mask #10232

Conversation

macdonaldryan
Copy link

Summary

The timing mask for the can's ctrl1 register excludes the propagation segment bits. This results in incorrect timing when configuring bitrate at runtime with SIOCSCANBITRATE when the bitrate to timeseg algorithm selects a different propseg value.

Impact

Incorrect can timing configuration when moving between rates at runtime.

Testing

s32k1xx HW testing: moving between several speeds both in listen only and while actively participating on the network.

@acassis
Copy link
Contributor

acassis commented Aug 15, 2023

@macdonaldryan macdonaldryan force-pushed the s32k1_s32k3_kinetis_flexcan-add-propseg-to-ctrl1-timing-mask branch from 4d9ee6c to aa52ac6 Compare August 15, 2023 17:01
@macdonaldryan macdonaldryan force-pushed the s32k1_s32k3_kinetis_flexcan-add-propseg-to-ctrl1-timing-mask branch from aa52ac6 to f1d6cf4 Compare August 15, 2023 17:06
@macdonaldryan
Copy link
Author

@acassis thanks for the pointer. I have squashed & rebased.

@davids5
Copy link
Contributor

davids5 commented Aug 15, 2023

@PetervdPerk-NXP - Please have a look

@acassis
Copy link
Contributor

acassis commented Aug 15, 2023

@xiaoxiang781216 please take a look at error #14: https://acassis.wordpress.com/2023/06/20/nuttx-ci-github-failures-list/

CI failed to downloaded littlefs for sim test. Is that possible to detect the download fail and retry more 2 times before assuming it is an error?

@acassis
Copy link
Contributor

acassis commented Aug 15, 2023

@acassis thanks for the pointer. I have squashed & rebased.

Thank you for these fixes!

@PetervdPerk-NXP
Copy link
Contributor

Ah I see this only happened when CONFIG_NET_CAN_CANFD=n, thank you for the fix.
LGTM

@pkarashchenko pkarashchenko merged commit 074cf51 into apache:master Aug 16, 2023
26 checks passed
@jerpelea jerpelea added this to To-Add in Release Notes - 12.3.0 Sep 26, 2023
@jerpelea jerpelea moved this from To-Add to done in Release Notes - 12.3.0 Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

6 participants