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

[imxrt] Fix FlexCAN tx dropping frames #2792

Merged
merged 1 commit into from Feb 2, 2021

Conversation

PetervdPerk-NXP
Copy link
Contributor

Summary

i.MXRT FlexCAN driver could drop CAN frames under high load, this was mainly caused due that the ESR2 register wasn't fully updated and we didn't clear IFLAGS correctly. This PR fixes that

Furthermore this fixes a bug in the SocketCAN layer, in the devif_poll_can_connections function that caused that CAN frames might end up into a different interface.

Impact

i.MXRT FlexCAN driver, NuttX SocketCAN layer

This bug might be applicable to the Kinetis and S32K1XX FlexCAN drivers as well, have to debug further on those chips.

Testing

Tested on IMXRT1060-EVK, Teensy (@michallenc ), UCANS32K146-01 (only the devif poll bug)

@acassis acassis merged commit 2243769 into apache:master Feb 2, 2021
PetervdPerk-NXP added a commit to PetervdPerk-NXP/nuttx that referenced this pull request Feb 26, 2021
PetervdPerk-NXP added a commit to PetervdPerk-NXP/nuttx that referenced this pull request Feb 26, 2021
PetervdPerk-NXP added a commit to PetervdPerk-NXP/nuttx that referenced this pull request Feb 26, 2021
davids5 pushed a commit that referenced this pull request Feb 26, 2021
@btashton btashton added this to To-Add in Release Notes - 10.1.0 Apr 12, 2021
@jerpelea jerpelea moved this from To-Add to Minor in Release Notes - 10.1.0 Apr 12, 2021
@jerpelea jerpelea moved this from Minor to Added in Release Notes - 10.1.0 Apr 16, 2021
jlaitine pushed a commit to tiiuae/nuttx that referenced this pull request May 25, 2021
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

2 participants