-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
rcar_h3ulcb: failed to run test case tests/drivers/can/api #45169
Comments
This is likely related to Line 605 in 82634ed
can_set_mode() makes the R-Car CAN controller enter halt mode.
Does halt mode discard added filters? If so, they need to be re-added here. |
@aaillet I do not have access to the R-Car hardware, so I cannot really drive the needed changes. |
@henrikbrixandersen Sorry I was for some days, I'll investigate on how to fix this issue. |
@henrikbrixandersen In fact, we need to be in halt mode in order to apply selected filters. |
Fix issue zephyrproject-rtos#45169. With this CAN controller, changing bit timing has to be done in controller reset mode, resetting some registers to their default values. TCR register, that is enabling loopback mode is one of these. Because of this reset, the controller switch back from loopback to normal mode without the test suite being notified, preventing receiving sent frames afterwards. To fix this issue, we are now storing useful registers values before switching to reset mode and restoring these values in halt mode before going back in operation mode. Signed-off-by: Aymeric Aillet <[email protected]>
Fix issue #45169. With this CAN controller, changing bit timing has to be done in controller reset mode, resetting some registers to their default values. TCR register, that is enabling loopback mode is one of these. Because of this reset, the controller switch back from loopback to normal mode without the test suite being notified, preventing receiving sent frames afterwards. To fix this issue, we are now storing useful registers values before switching to reset mode and restoring these values in halt mode before going back in operation mode. Signed-off-by: Aymeric Aillet <[email protected]>
Describe the bug
The test case
tests/drivers/can/api
is timing out on main branch (1e02dd0) when testing on Renesas R-Car H3ULCB platform (probably on H3 Salvator-X too)To Reproduce
or
Expected behavior
Test case should pass as expected.
Impact
The test case drivers.can.api failing, complete twister test suite is then also concerned and is reporting errors.
Logs and console output
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: