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

STM32 UART ASYNC DRIVER : Fix test regressions on STM32F429ZI and STM32F746ZG boards. #82480

Merged

Conversation

djiatsaf-st
Copy link
Collaborator

This PR will fix regressions on uart tests introduced by

@zephyrbot zephyrbot added the area: UART Universal Asynchronous Receiver-Transmitter label Dec 3, 2024
@zephyrbot zephyrbot requested a review from dcpleung December 3, 2024 11:08
@djiatsaf-st djiatsaf-st requested a review from erwango December 3, 2024 11:21
erwango
erwango previously approved these changes Dec 3, 2024
Test cases on F746ZG work with USERSPACE config not enabled.
PR zephyrproject-rtos#80944 forces the use of the TEST_ENABLE_USERSPACE config with
the "select" statement instead of "imply," which is more restrictive
for test case dependencies.This leads to the error
"Memory region 0x2004d180 (size 8) write access denied" on boards.
By setting CONFIG_TEST_USERSPACE=n, the TEST_ENABLE_USERSPACE config will
not be enabled.

Signed-off-by: Fabrice DJIATSA <[email protected]>
With the changes made in PR zephyrproject-rtos#76061, only on the F429ZI platform, in
the test_write_abort test,the number of received data (2) is not equal
to the number of sent data (1). It looks like uart_tx_abort is done very
quickly, and the callback doesn't have enough time to deal with it.
Adding a small delay solves the problem and doesn't affect results on
other platforms.

Signed-off-by: Fabrice DJIATSA <[email protected]>
@JarmouniA JarmouniA added the area: Tests Issues related to a particular existing or missing test label Dec 4, 2024
@JarmouniA
Copy link
Collaborator

Cc @dcpleung

@henrikbrixandersen henrikbrixandersen merged commit c7da46a into zephyrproject-rtos:main Jan 6, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Tests Issues related to a particular existing or missing test area: UART Universal Asynchronous Receiver-Transmitter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants