Don't set CONFIG_ESP32_WIFI_STA_AUTO_DHCPV4
as it is already enabled by default, if all dependencies are met.
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
`net_calc_chksum` is designed to return uint16_t checksum.
Its current behavior is to return 0 checksum on error
(or on an empty payload) and a valid non zero checksum for non empty
payloads. 0 could be a valid checksum for empty payload.
So update the `net_calc_chksum` and its wrapper's definition to
return error codes.
Signed-off-by: Nikhil Namjoshi <nikhilnamjoshi@google.com>
If a board is called a ethernet_kit, ethernet should be enabled
by default. Also without this being enabled, the esp32 ethernet driver
is not build tested by the ci.
Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
Add a new test suite to verify the accessibility of the ROM functions and
data across different configurations and chips (RP2040 and RP235x).
Signed-off-by: Andy Lin <andylinpersonal@gmail.com>
Add ESP32-C5 test overlays for counter, I2S, PWM loopback, retained
memory, and UART async API tests.
The PWM GPIO loopback test requires SKIP_EDGE_NUM=6 on ESP32-C5 to
account for flash cache loading latency on the first GPIO ISR
invocations that skews edge timing measurements.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
The OSIF API signature for `os_msg_queue_create` differs between the
RTL8752H series and other supported SoCs (e.g., RTL87x2G). Specifically,
the RTL8752H implementation does not accept a queue name string as an
argument.
This commit adds a conditional check using `CONFIG_SOC_SERIES_RTL8752H`
to invoke the correct API variant. This ensures the test suite compiles
and runs correctly on both RTL8752H and RTL87x2G platforms.
Signed-off-by: Zhiyuan Tang <zhiyuan_tang@realsil.com.cn>
Replaces usage of these deprecated macros with ones that support
fixed and mapped partition compatibles. Also includes an update to
hal_espressif which also (rightly or wrongly) has zephyr specific
code in it
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
esp32c3_devkitm has been used as board reference for ESP32-C3 SoC.
Change to default esp32c3_devkitc to align with internal CI tests.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
esp32s2_saola has been used as board reference for ESP32-S2 SoC.
Change to default esp32s2_devkitc to align with internal CI tests.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
The memory_layout test uses the ztest framework with zassert macros,
so the harness should be ztest instead of console with custom regex
patterns.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
Update the return type of the ICMP callback handler to enum net_verdict.
This fixes an issue where currently all ICMP handler are passed the same
pkt. Handlers could have modified the passed packet resulting in undefined
behavior.
Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
Move PLL frequency array before test_cpu_xtal_src so it can be used
to restore CPU to PLL after XTAL testing. Skip non-exact XTAL
divisions (e.g. 26 MHz / 4) instead of testing invalid frequencies
that would cause the clock driver to fail or hang.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
This commit introduces a comprehensive test suite to verify the
Realtek OSIF (Operating System Interface) implementation for the
Bee SoC family.
These tests ensure that the OSIF abstraction layer correctly maps
to the underlying Zephyr kernel APIs.
The test implementation references `tests/subsys/portability/cmsis_rtos_v2`
to adopt a proven testing structure for OS abstraction layers.
The test suite covers the following functional modules:
- Memory management (osif_mem)
- Message queues (osif_msgq)
- Synchronization primitives (Mutexes, Semaphores)
- Task management and Scheduling (osif_task, osif_sched)
- Software timers (osif_timer)
Signed-off-by: Zhiyuan Tang <zhiyuan_tang@realsil.com.cn>
MD5 is deprecated and the security methods that use are not officially
supported in Zephyr (EAP-MD5, TLSv1 etc), so, remove the code related to
MD5 and disable it in hostap.
Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
Use platform_allow to explicitly list supported boards instead of
a config filter. This restricts the test to specific devkit boards
and avoids running on appcpu targets.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
After porting nRF7120 to Zephyr, all tests that were supported in
sdk-nrf must now be supported in Zephyr instead.
Signed-off-by: Robert Robinson <robert.robinson@nordicsemi.no>
After porting nRF7120 to Zephyr, all tests that were supported in
sdk-nrf must now be supported in Zephyr instead.
Signed-off-by: Robert Robinson <robert.robinson@nordicsemi.no>
Add a test that validates SRAM region sizes and performs
write/read verification across the full heap range from
_end to _heap_sentry for all Espressif SoCs.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
After porting nRF7120 to Zephyr, all tests that were supported in
sdk-nrf must now be supported in Zephyr instead.
Signed-off-by: Robert Robinson <robert.robinson@nordicsemi.no>
After porting nRF7120 to Zephyr, all tests that were supported in
sdk-nrf must now be supported in Zephyr instead.
Signed-off-by: Robert Robinson <robert.robinson@nordicsemi.no>
Test update to resolve Zephyr issue #103893.
Zephyr SPI_EXTENDED_MODES is now marked EXPERIMENTAL and documented as
requiring more API changes. On our last Microchip XEC SPI QMSPI SPI driver
update we were instructured to remove SPI_EXTENDED_MODES support. We
forgot to update this test. We removed dual/quad tests and updated the
test case YAML. Dual and quad support will require developing a Zephyr
MSPI driver.
Signed-off-by: Scott Worley <scott.worley@microchip.com>
I2S bus specification 3.0 [1] updated terms "Master" and "Slave" to
"Controller" and "Target". This rename macros using these terms and
deprecates old names.
[1] https://www.nxp.com/docs/en/user-manual/UM11732.pdf
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
We added the Microchip mec_assy6941 and mec172xevb_assy6906 to the common
flash driver test. We use the SPI_NOR flash driver with the Microchip
XEC QMSPI-LDMA driver. The EVB has a SPI dongle attached with a Winbond
W25Q128JV 16 megabit SPI flash. We changed the name of QMSPI DT hardware
node to match the name at chip level.
Signed-off-by: Scott Worley <scott.worley@microchip.com>
Follow-up to PR# 102385.
Some occurrences of ${BOARD}${BOARD_QUALIFIERS} was missed in the
original alignment PR.
This commit adjusts the remaining occurrences to know include `/`.
Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
When CONFIG_INTEL_ADSP_IPC_OLD_INTERFACE is enabled, the clock
calibration test was registering the IPC message handler after sending
the first TIMESTAMP command. This caused a race condition where the
host's response would arrive during the k_msleep() before the handler
was set.
Without a registered handler, the old IPC glue layer's receive callback
sees handle_message == NULL, leaving msg_done unset. This prevents the
IPC backend from sending an acknowledgment to the host. The host then
blocks waiting for the ACK, causing subsequent TIMESTAMP requests to
time out.
Fix by moving intel_adsp_ipc_set_message_handler() call to before the
first message is sent, ensuring all incoming messages are properly
acknowledged even if the test doesn't need their data immediately.
Related to: #102103
Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
The smoke test IPC receive callbacks were not setting the msg_done flag
in the endpoint private data, preventing the ISR from acknowledging
received messages to the host. Without acknowledgment, the host would
not send subsequent messages, causing the tests to timeout waiting for
responses.
This patch updates both ipc_receive_cb() in hostipc.c and
clock_ipc_receive_cb() in clock.c to set priv_data->msg_done = true,
enabling immediate message acknowledgment by the ISR as documented in
the Intel ADSP host IPC backend.
Related to: #102103
Related to: #102106
Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
Add the target nrf54l15dk/nrf54l15/cpuapp as the integration platform
in the testcase yaml file.
Signed-off-by: Riadh Ghaddab <riadh.ghaddab@nordicsemi.no>
This patch updates the intel_adsp smoke tests to use the new host IPC
backend data model and APIs.
The host IPC smoke test now treats messages as a fixed two-word uint32_t
payload instead of using struct intel_adsp_ipc_msg and the
INTEL_ADSP_IPC_CB_* message types. The receive callback validates the
payload length and pointer, checks the header/payload values against the
expected RETURN_MSG_* constants, and sets msg_flag on receipt. The
test-specific intel_adsp_ipc_send_message() and
intel_adsp_ipc_send_message_sync() helpers are rewritten to send a
two-word payload via ipc_service_send(), and the synchronous helper
waits on the backend semaphore only when the send succeeds. A dedicated
done callback is registered via intel_adsp_ipc_set_done_handler() to
drive done_flag, and intel_adsp_ipc_complete() now completes RX by
calling ipc_service_release_rx_buffer() and asserting on failure.
Completion polling is aligned with the backend by using
ipc_service_get_tx_buffer_size().
The clock calibration smoke test is adapted in the same way. It now
includes the ipc_service and intel_adsp host IPC backend headers when
using the new interface, interprets incoming data as a two-word uint32_t
payload, validates the length and pointer, and stores the returned
timestamp from the extended payload word into the endpoint private data.
The rest of the test flow, including endpoint registration, timestamp
requests and clock rate checks, remains unchanged but runs on top of the
new IPC backend representation.
Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
Removing the esp32s3_devkitm as deprecated and redundant.
The esp32s3_devkitc has essentially the same functionality.
Signed-off-by: Marek Matej <marek.matej@espressif.com>
Remove duplicated #include directives within the same
preprocessor scope across the Zephyr tree.
Duplicates inside different #ifdef branches are preserved
as they may be intentional.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
Remove test from tests/boards/nrf/i2s/i2s_divider.
The i2s_divider test was relying on debug log from I2S driver.
With the recent NRFX updates log was removed.
Better test, that counts rising edges on I2S_LRCLK line was added
in downstream (https://github.com/nrfconnect/sdk-nrf/pull/26230).
Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
Currently only TWIM peripheral is verified against TWIS.
Add new test variant to verify nRF52 TWI peripheral as well.
Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
Several test sources used the misspelled string "Unsupported
configuraiton".
Fix the typo across all affected files to improve clarity and
consistency.
Updated files:
- tests/boards/nrf/rram_throttling/src/main.c
- tests/drivers/flash/common/src/main.c
- tests/drivers/flash/negative_tests/src/main.c
No functional change.
Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
arch_mem_coherent() is cache related so it is better to move it
under cache subsys. It is renamed to sys_cache_is_mem_coherent()
to reflect this change.
The only user of arch_mem_coherent() is Xtensa. However, it is
not an architecture feature. That's why it is moved to the cache
subsys.
Signed-off-by: Daniel Leung <daniel.leung@intel.com>