Skip to content

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants