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

stm32h7_can: fix filter memory initialization bug. #22043

Merged
merged 2 commits into from
Sep 8, 2023

Conversation

duartecdias
Copy link
Contributor

While testing the reception of the feedback from KDECAN ESCs in the following public branch (https://github.com/duartecdias/PX4-Autopilot/tree/pr/uavcan/kdecanProtocol), it was noted that while using standard ids, some messages were not being received from the ESCs in a random fashion for different power cycles.

Problem was tracked down to the initialization of the filters (probably they are being initialized randomly at each power cycle). After proper memset of the respective filter areas the problem went away.

Also adjusted the number of maximum filters for extended IDs to 64, according to the h7 chip datasheet.

@dagar dagar requested a review from davids5 September 5, 2023 17:06
@dagar dagar added the bug label Sep 5, 2023
davids5
davids5 previously approved these changes Sep 6, 2023
Copy link
Member

@davids5 davids5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@davids5
Copy link
Member

davids5 commented Sep 6, 2023

@duartecdias please run make check_format and fix the style issues.

@duartecdias
Copy link
Contributor Author

@davids5 , let me know if ok to merge (MAVROS tests failing BTW..)

@julianoes julianoes added the v1.14 label Sep 8, 2023
@davids5
Copy link
Member

davids5 commented Sep 8, 2023

@dagar is HW CI Down?

@davids5
Copy link
Member

davids5 commented Sep 8, 2023

@duartecdias - MAVROS look unrelated (as it should be) but I would like to see HW CI happy first.

@dagar dagar merged commit efe0db5 into PX4:main Sep 8, 2023
82 of 85 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants