zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.98k stars 6.68k forks source link

tests: drivers: flash: common: drivers.flash.common.default, drivers.flash.common.nrf_qspi_nor.size_in_bytes and drivers.flash.common.nrf_qspi_nor fail #57327

Closed katgiadla closed 1 year ago

katgiadla commented 1 year ago

Describe the bug The drivers.flash.common.default, drivers.flash.common.nrf_qspi_nor.size_in_bytes and drivers.flash.common.nrf_qspi_nor fail.

Observed for:

To Reproduce Steps to reproduce the behavior:

  1. have nrf5340dk_nrf5340_cpuapp or nrf52840dk_nrf52840 connected
  2. go to your zephyr dir
  3. call ./scripts/twister -T tests/drivers/flash/common -p nrf5340dk_nrf5340_cpuapp --device-testing --device-serial /dev/ttyACM0 -v --inline-logs
  4. See console output with error

Expected behavior Valid console output

Impact Not clear

Logs and console output

[2023-04-26T21:47:47.954Z] ERROR   - *** Booting Zephyr OS build zephyr-v3.3.0-3164-ga0ad7b7752e6 ***
[2023-04-26T21:47:47.954Z] Running TESTSUITE flash_driver
[2023-04-26T21:47:47.954Z] ===================================================================
[2023-04-26T21:47:47.954Z] Assertion failed at ../../../../../../../../../zephyr/zephyr/tests/drivers/flash/common/src/main.c:101: flash_driver_setup: (rc not equal to 0)
[2023-04-26T21:47:47.954Z] Flash memory not properly erased
[2023-04-26T21:47:47.954Z] START - test_read_unaligned_address
[2023-04-26T21:47:47.954Z] FAIL - test_read_unaligned_address in 0.001 seconds
[2023-04-26T21:47:47.954Z] ===================================================================
[2023-04-26T21:47:47.954Z] TESTSUITE flash_driver failed.
[2023-04-26T21:47:47.954Z] ------ TESTSUITE SUMMARY START ------
[2023-04-26T21:47:47.954Z] SUITE FAIL -   0.00% [flash_driver]: pass = 0, fail = 1, skip = 0, total = 1 duration = 0.001 seconds
[2023-04-26T21:47:47.954Z] - FAIL - [flash_driver.test_read_unaligned_address] duration = 0.001 seconds
[2023-04-26T21:47:47.954Z] ------ TESTSUITE SUMMARY END ------
[2023-04-26T21:47:47.954Z] ===================================================================
[2023-04-26T21:47:47.954Z] RunID: d4ced2688b001370fec3c648b65075d3
[2023-04-26T21:47:47.954Z] PROJECT EXECUTION FAILED
[2023-04-26T21:47:47.954Z] 

Environment (please complete the following information):

katgiadla commented 1 year ago

The same problem occured for drivers.flash.common.soc on nrf52840dk_nrf52840:

[2023-05-02T21:12:33.637Z] ERROR   - *** Booting Zephyr OS build zephyr-v3.3.0-3341-gef3d01d16fd4 ***
[2023-05-02T21:12:33.637Z] Running TESTSUITE flash_driver
[2023-05-02T21:12:33.637Z] ===================================================================
[2023-05-02T21:12:33.637Z] Assertion failed at ../../../../../../../../../zephyr/zephyr/tests/drivers/flash/common/src/main.c:101: flash_driver_setup: (rc not equal to 0)
[2023-05-02T21:12:33.637Z] Flash memory not properly erased
[2023-05-02T21:12:33.637Z] START - test_read_unaligned_address
[2023-05-02T21:12:33.637Z] FAIL - test_read_unaligned_address in 0.000 seconds
[2023-05-02T21:12:33.637Z] ===================================================================
[2023-05-02T21:12:33.637Z] TESTSUITE flash_driver failed.
[2023-05-02T21:12:33.637Z] ------ TESTSUITE SUMMARY START ------
[2023-05-02T21:12:33.637Z] SUITE FAIL -   0.00% [flash_driver]: pass = 0, fail = 1, skip = 0, total = 1 duration = 0.000 seconds
[2023-05-02T21:12:33.637Z] - FAIL - [flash_driver.test_read_unaligned_address] duration = 0.000 seconds
[2023-05-02T21:12:33.637Z] ------ TESTSUITE SUMMARY END ------
[2023-05-02T21:12:33.637Z] ===================================================================
[2023-05-02T21:12:33.637Z] RunID: 5797357d5652efede69458caa06ab62e
[2023-05-02T21:12:33.637Z] PROJECT EXECUTION FAILED
[2023-05-02T21:12:33.637Z] 
de-nordic commented 1 year ago

I have invoked

./scripts/twister -T tests/drivers/flash/common -p nrf52840dk_nrf52840 --device-testing --device-serial /dev/ttyACM0 -v --inline-logs

on Zepyr @ b6d8989236147cb32da09f802b61aef70fb31b78 , with sdk 0.16.1 and the problem does not seem to occur.

katgiadla commented 1 year ago

Issue is fixed.