-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Labels
Stalearea: DMADirect Memory AccessDirect Memory Accessarea: UARTUniversal Asynchronous Receiver-TransmitterUniversal Asynchronous Receiver-TransmitterbugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugplatform: NXPNXPNXPplatform: NXP DriversNXP Semiconductors, driversNXP Semiconductors, driverspriority: lowLow impact/importance bugLow impact/importance bug
Description
**Describe the bug**
async_api.lpuart test is Failed on v3.4.0-rc2 on mimxrt1170_evk_cm7
testcase path is drivers/uart/async_api/lpuart/long_buffers
see logs for details
**To Reproduce**
1.
```
scripts/twister --device-testing --device-serial /dev/ttyACM0 -p mimxrt1170_evk_cm7 --sub-test drivers.uart
```
or
```
# cd tests/drivers/uart/async_api/lpuart/long_buffers
# west build -b mimxrt1170_evk_cm7
# west flash
```
2. See error
**Expected behavior**
test pass
**Impact**
**Logs and console output**
*** Booting Zephyr OS build v3.4.0-rc2 ***
Running TESTSUITE uart_async_chain_read
===================================================================
START - test_chained_read
E: Got error : -5
Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/uart/uart_async_api/src/test_uart_async.c:273: test_chained_read_callback: rx_data_idx + evt->data.rx.len <= sizeof(chained_cpy_buf) is false
FAIL - test_chained_read in 0.153 seconds
===================================================================
TESTSUITE uart_async_chain_read failed.
Running TESTSUITE uart_async_chain_write
===================================================================
START - test_chained_write
PASS - test_chained_write in 0.003 seconds
===================================================================
TESTSUITE uart_async_chain_write succeeded
Running TESTSUITE uart_async_double_buf
===================================================================
START - test_double_buffer
Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/uart/uart_async_api/src/test_uart_async.c:393: uart_async_double_buf_test_double_buffer: (k_sem_take(&rx_rdy, K_MSEC(100)) not equal to 0)
RX_RDY timeout
FAIL - test_double_buffer in 0.120 seconds
===================================================================
TESTSUITE uart_async_double_buf failed.
Running TESTSUITE uart_async_long_buf
===================================================================
START - test_long_buffers
E: Unable to start receive on UART.
Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/uart/uart_async_api/src/test_uart_async.c:793: uart_async_long_buf_test_long_buffers: (long_received[0] not equal to 500)
Wrong number of bytes received.
FAIL - test_long_buffers in 0.066 seconds
===================================================================
TESTSUITE uart_async_long_buf failed.
Running TESTSUITE uart_async_multi_rx
===================================================================
START - test_multiple_rx_enable
E: Unable to start receive on UART.
Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/uart/uart_async_api/src/test_uart_async.c:184: uart_async_multi_rx_test_multiple_rx_enable: (ret not equal to 0)
uart_rx_enable failed
FAIL - test_multiple_rx_enable in 0.021 seconds
===================================================================
TESTSUITE uart_async_multi_rx failed.
Running TESTSUITE uart_async_read_abort
===================================================================
START - test_read_abort
E: Unable to start receive on UART.
Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/uart/uart_async_api/src/test_uart_async.c:485: uart_async_read_abort_test_read_abort: (k_sem_take(&rx_rdy, K_MSEC(100)) not equal to 0)
RX_RDY timeout
FAIL - test_read_abort in 0.122 seconds
===================================================================
TESTSUITE uart_async_read_abort failed.
Running TESTSUITE uart_async_single_read
===================================================================
START - test_single_read
E: Unable to start receive on UART.
Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/uart/uart_async_api/src/test_uart_async.c:136: uart_async_single_read_test_single_read: (k_sem_take(&rx_rdy, K_MSEC(100)) not equal to 0)
RX_RDY timeout
FAIL - test_single_read in 0.223 seconds
===================================================================
TESTSUITE uart_async_single_read failed.
Running TESTSUITE uart_async_timeout
===================================================================
START - test_forever_timeout
E: Unable to start receive on UART.
Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/uart/uart_async_api/src/test_uart_async.c:649: uart_async_timeout_test_forever_timeout: (k_sem_take(&rx_rdy, K_MSEC(100)) not equal to 0)
RX_RDY timeout
FAIL - test_forever_timeout in 3.123 seconds
===================================================================
TESTSUITE uart_async_timeout failed.
Running TESTSUITE uart_async_write_abort
===================================================================
START - test_write_abort
E: Unable to start receive on UART.
Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/uart/uart_async_api/src/test_uart_async.c:569: uart_async_write_abort_test_write_abort: (k_sem_take(&rx_rdy, K_MSEC(100)) not equal to 0)
RX_RDY timeout
FAIL - test_write_abort in 0.123 seconds
===================================================================
TESTSUITE uart_async_write_abort failed.
------ TESTSUITE SUMMARY START ------
SUITE FAIL - 0.00% [uart_async_chain_read]: pass = 0, fail = 1, skip = 0, total = 1 duration = 0.153 seconds
- FAIL - [uart_async_chain_read.test_chained_read] duration = 0.153 seconds
SUITE PASS - 100.00% [uart_async_chain_write]: pass = 1, fail = 0, skip = 0, total = 1 duration = 0.003 seconds
- PASS - [uart_async_chain_write.test_chained_write] duration = 0.003 seconds
SUITE FAIL - 0.00% [uart_async_double_buf]: pass = 0, fail = 1, skip = 0, total = 1 duration = 0.120 seconds
- FAIL - [uart_async_double_buf.test_double_buffer] duration = 0.120 seconds
SUITE FAIL - 0.00% [uart_async_long_buf]: pass = 0, fail = 1, skip = 0, total = 1 duration = 0.066 seconds
- FAIL - [uart_async_long_buf.test_long_buffers] duration = 0.066 seconds
SUITE FAIL - 0.00% [uart_async_multi_rx]: pass = 0, fail = 1, skip = 0, total = 1 duration = 0.021 seconds
- FAIL - [uart_async_multi_rx.test_multiple_rx_enable] duration = 0.021 seconds
SUITE FAIL - 0.00% [uart_async_read_abort]: pass = 0, fail = 1, skip = 0, total = 1 duration = 0.122 seconds
- FAIL - [uart_async_read_abort.test_read_abort] duration = 0.122 seconds
SUITE FAIL - 0.00% [uart_async_single_read]: pass = 0, fail = 1, skip = 0, total = 1 duration = 0.223 seconds
- FAIL - [uart_async_single_read.test_single_read] duration = 0.223 seconds
SUITE FAIL - 0.00% [uart_async_timeout]: pass = 0, fail = 1, skip = 0, total = 1 duration = 3.123 seconds
- FAIL - [uart_async_timeout.test_forever_timeout] duration = 3.123 seconds
SUITE FAIL - 0.00% [uart_async_write_abort]: pass = 0, fail = 1, skip = 0, total = 1 duration = 0.123 seconds
- FAIL - [uart_async_write_abort.test_write_abort] duration = 0.123 seconds
------ TESTSUITE SUMMARY END ------
===================================================================
PROJECT EXECUTION FAILED
**Environment (please complete the following information):**
- OS: (e.g. Linux )
- Toolchain (e.g Zephyr SDK)
- Commit SHA or Version used: v3.4.0-rc2
v3.4.0-rc1-24-g5f5b34793dc8 is OK
git bisect found the first filure commit is
ubuntu@ubuntu-OptiPlex-7050:/home/shared/disk/zephyr_project/zephyr_rt1170/zephyr$ git bisect good
0a6c072b770c89a12e1a5afa5a1a7a7c05c1d9f4 is the first bad commit
commit 0a6c072b770c89a12e1a5afa5a1a7a7c05c1d9f4
Author: Declan Snyder <declan.snyder@nxp.com>
Date: Fri Jun 2 12:10:41 2023 -0500
drivers: usb_dc_mcux: Debug log needs more stack
Increase the size of the MCUX USB driver thread stack if using
the CONFIG_USB_DEVICE_LOG_LEVEL_DBG Kconfig, to avoid stack overflow
caused by many stack frames coming from the debug logs.
Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
drivers/usb/device/Kconfig | 1 +
1 file changed, 1 insertion(+)
Metadata
Metadata
Assignees
Labels
Stalearea: DMADirect Memory AccessDirect Memory Accessarea: UARTUniversal Asynchronous Receiver-TransmitterUniversal Asynchronous Receiver-TransmitterbugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugplatform: NXPNXPNXPplatform: NXP DriversNXP Semiconductors, driversNXP Semiconductors, driverspriority: lowLow impact/importance bugLow impact/importance bug