Commit graph

10700 commits

Author SHA1 Message Date
Andrzej Głąbek
ac3355ab97 samples: code_relocation_nocopy: Add configuration for nRF54H20 DK
Add nRF54H20 DK specific entries to allow using the sample on this
board.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2025-03-07 19:42:46 +01:00
Andrzej Głąbek
2d003e3ef4 samples|tests: drivers: flash: Add support for "jedec,mspi-nor" devices
Extend several flash samples and tests so that they can also be used
with "jedec,mspi-nor" devices.
Add configurations needed for the nrf54h20dk/nrf54h20/cpuapp target.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2025-03-07 19:42:46 +01:00
Anas Nashif
c82ad0dfbc sample: vl53l0x: make sample testable
No reason for this sample to be build_only, it can run and be verified
just fine on the right platforms.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-03-07 19:41:04 +01:00
Alberto Escolar Piedras
fc6e3c2b75 samples/subsys/debug/fuzz: Remove support for native_posix
native_posix has been removed from the tree. So there is no
need to support it anymore in this sample code.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-03-07 19:16:14 +01:00
Alberto Escolar Piedras
1823fcb173 samples/subsys/pm/latency: Remove native_posix overlays
native_posix is being removed as it has reached its end of life in 4.2,
after being deprecated since 4.0.

So these overlays will not serve any purpose anymore.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-03-07 19:16:14 +01:00
Alberto Escolar Piedras
3d97743ea3 samples/subsys/zbus/uart_bridge: Remove native_posix overlays
native_posix is being removed as it has reached its end of life in 4.2,
after being deprecated since 4.0.

So these overlays will not serve any purpose anymore.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-03-07 19:16:14 +01:00
Alberto Escolar Piedras
500cdd9223 samples/net: Remove native_posix overlays
native_posix is being removed as it has reached its end of life in 4.2,
after being deprecated since 4.0.

So these overlays will not serve any purpose anymore.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-03-07 19:16:14 +01:00
Alberto Escolar Piedras
4ae6c4518e samples/*/lvgl: Remove native_posix overlays
native_posix is being removed as it has reached its end of life in 4.2,
after being deprecated since 4.0.

So these overlays will not serve any purpose anymore.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-03-07 19:16:14 +01:00
Alberto Escolar Piedras
05aaa7ea1d samples/drivers/uart: Remove native_posix overlay
native_posix is being removed as it has reached its end of life in 4.2,
after being deprecated since 4.0.

So these overlays will not serve any purpose anymore.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-03-07 19:16:14 +01:00
Alberto Escolar Piedras
33ba1b342b samples/bluetooth/tmap_*: Remove native_posix overlays
native_posix is being removed as it has reached its end of life in 4.2,
after being deprecated since 4.0.

So these overlays will not serve any purpose anymore.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-03-07 19:16:14 +01:00
Alberto Escolar Piedras
6c38bc8ec4 boards native_posix: Remove twister support
native_posix is being removed as it has reached its end of life in 4.2,
after being deprecated since 4.0.

Remove the twister support for native_posix[//64] and therefore all
references to them from the testcases and samples yamls, so twister
does not error out.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-03-07 19:16:14 +01:00
Tomasz Moń
5595de3f68 samples: usb: uac2: Warn about Windows driver issues
The UAC2 samples do not work with Windows UAC2 driver because:
  * driver does not support implicit feedback
  * driver expects wMaxPacketSize equal 4 on Full-Speed device

The only correct place to solve these issues is the Windows UAC2 driver.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2025-03-05 21:52:00 +00:00
Andrej Butok
2766c78823 samples: zms: fix the loop_cnt iteration 0 check
- fix unwanted "Error: Something went wrong at iteration 0".
- the loop_cnt check has no sense for iteration 0,
  comparing with wrong -1.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2025-03-05 14:33:05 +00:00
Benjamin Cabé
651db03c68 samples: sensor: accel_trig: add arduino_gpio req + platform_allow entry
sample.sensor.accel_trig.shield-tap has a DT overlay that expects the
presence of an arduino_header, so add the appropriate dependency to only
build the sample against supported boards.

As per samples guidelines, use platform_allow to limit CI to run only on
a configuration that's actually been tested (and is documented in the
README)

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-03-05 09:59:36 +00:00
Benjamin Cabé
0ed09a8a51 samples: hello_world: set minimum flash requirement to 16K
Default in Twister is 32K, but 16K is a more "reasonable" goal and allows
to build hello_world against some of the most constrained boards in-tree.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-03-04 17:28:33 +01:00
IBEN EL HADJ MESSAOUD Marwa
1a12889561 samples: usb: dfu-next: make the sample testable
Add a console harness to check that the example has
started successfully.

Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
2025-03-04 12:17:34 +00:00
Benjamin Cabé
7654902f09 boards: enjoydigital: adopt new zephyr:board directive and role
This updates the documentation of all the EnjoyDigital boards to use
the new `zephyr:board::` directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-28 14:52:23 +01:00
Johann Fischer
9cb0fbf80d usb: device_next: fix Get Status request response
We need to track the self-powered status of the device independently of
the D6 bit in the bmAttributes value of the configuration descriptor
because the Get Status request about the self-powered status is valid in
address state and we support multiple configurations.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-02-28 14:51:53 +01:00
Andrej Butok
c887d5e235 sample: zms: add ZMS sample Kconfig
- adds ability to change the ZMS sample MAX_ITERATIONS
  and DELETE_ITERATION parameters via Kconfig without manually
  modifying the source code.
- adds ability to reduce flash memory wear on real devices
  by reducing the number of write iterations.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2025-02-27 23:19:34 +00:00
Maciej Perkowski
b85e4f1b00 samples: sensors: Add test criteria
Verify the output according to the description of the sample.
fixes: #84156

Signed-off-by: Maciej Perkowski <maciej.perkowski@nordicsemi.no>
2025-02-27 23:19:09 +00:00
Benjamin Cabé
6f56bea2b5 Revert "samples: zms: fix dropped messages"
This reverts commit 63bb55eb16
which causes failures in CI on qemu_x86/atom target.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-27 23:17:56 +00:00
Andrej Butok
63bb55eb16 samples: zms: fix dropped messages
- Sets CONFIG_LOG_MODE_IMMEDIATE for the zms sample.
- Fixes "--- 9999 messages dropped ---".

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2025-02-27 13:28:01 +00:00
Alberto Escolar Piedras
b1680688c1 samples/subsys/debug/fuzz: run on native_sim instead of native_posix
native_posix is deprecated and will be removed in 4.2
Run this sample in native_sim instead.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-02-27 13:27:46 +00:00
Alberto Escolar Piedras
cc2d31f4da samples/subsys/fs/zms: Allow it to run and add check
This sample could not run on any target as it depedend on zms
which is set by no board.
But it seems to run just fine in both allowed platforms,
so let's add a trivial twister check (so it actually passes instead
of waiting for ever), and remove that `depends on`.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-02-27 13:27:46 +00:00
Alberto Escolar Piedras
4a91a55ae2 samples/subsys/fs/zms: run on native_sim instead of native_posix
native_posix is deprecated and will be removed in 4.2
Run this sample in native_sim instead.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-02-27 13:27:46 +00:00
Jordan Yates
c0ef487a38 tests: secure_storage: add dependencies
Now that `SECURE_STORAGE` does not `select` dependencies, they need to
be enabled explicitly by the tests.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-02-27 09:07:56 +00:00
Jamie McCrae
8b5fb6a599 samples: subsys: mgmt: mcumgr: smp_svr: Update README
Updates README to reduce required steps

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-02-26 22:04:36 +00:00
Declan Snyder
d46c382950 drivers: ethernet: Remove deprecated eth_mcux
This driver was deprecated and must be removed by Zephyr version
4.1 according to lifecycle/release guidelines.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-02-26 22:04:26 +00:00
Simone Orru
d1c383993b samples: sensor: die_temp_polling: add i.MX RT1064 EVK support
Add the overlay file for the i.MX RT1064 EVK board.
The sample can be run on the i.MX RT1064 EVK board out of the box.

Signed-off-by: Simone Orru <simone.orru@secomind.com>
2025-02-26 15:05:42 +01:00
Pierrick Curt
f63bb9cafa samples: sensor: accel_trig: fix twister tests
Add twister tests for tap detection feature

The overlay must be applied only if the shield x_nucleo_iks01a3
is enabled on board nrf52dk/nrf52832.

Signed-off-by: Pierrick Curt <pierrickcurt@gmail.com>
2025-02-24 20:19:12 +00:00
Vinayak Kariappa Chettimada
662acab1ae Bluetooth: Controller: Fix ISO Tx PDU buffer counts for fragmentation
Fix ISO Tx PDU buffer count required when SDU fragmentation
is used.

Rename BT_CTLR_CONN_ISO_SDU_LEN_MAX to
BT_CTLR_ISO_TX_SDU_LEN_MAX so the value is common to both
Broadcast and Connected ISO transmissions.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-02-24 20:18:37 +00:00
Benjamin Cabé
86eea62e0b samples: sensor: Use dedicated overlay for fake sensor in sensor_shell
Using an app.overlay file is inherently preventing the use of board
overlays. Switch to a dedicated overlay file so that e.g.
the vmu_rt1170/mimxrt1176/cm7 board target can pass this test where
before it would have failed due to its board-specific overlay "winning"
over the app.overlay file.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-24 10:49:52 +01:00
Benjamin Cabé
a2fffdc038 samples: sensor: rename fake sensor binding
Binding files must be name the same as their compatible.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-24 10:49:52 +01:00
Vinayak Kariappa Chettimada
d382fca6ff Bluetooth: Controller: Fix HCI command buffer allocation failure
Fix HCI command buffer allocation failure, that can cause
loss of Host Number of Completed Packets command.

Fail by rejecting the HCI Host Buffer Size command if the
required number of HCI command buffers are not allocated in
the Controller implementation.

When Controller to Host data flow control is supported in
the Controller only build, ensure that BT_BUF_CMD_TX_COUNT
is greater than or equal to (BT_BUF_RX_COUNT + Ncmd),
where Ncmd is supported maximum Num_HCI_Command_Packets in
the Controller implementation.

Relates to commit 81614307e9 ("Bluetooth: Add workaround
for no command buffer available")'.

Relates to commit 297f4f481f ("Bluetooth: Split HCI
command & event buffers to two pools").

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2025-02-21 11:30:38 +00:00
Bjarki Arge Andreasen
7ee4011166 samples: drivers: i2c: rtio_loopback: change harness to console
The harness was set to ztest, but the sample requires the console
harness to match on the "sample complete" line, its not actually
using ztest.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-02-20 21:31:06 +01:00
Benjamin Cabé
b514241d21 samples: hello_world: set min RAM to 2KB for Hello World test
It is possible to fit the Hello World in 2K of RAM so update the
sample.yaml file accordingly. It might not *run*, but then the console
harness will catch that.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-20 15:08:50 +00:00
Jacob Wienecke
9e1bf0b496 dts: arm: nxp: RT10xx/11xx .dtsi Files: Remove flexram,bank-spec property
This commit removes the flexram,bank-spec property from dtsi files.
The property causes flexram to be dynamically configured based on
the configuration in flexram,bank-spec. This is a problem for 2 reasons:
1) The FlexRAM will always be dynamically reconfigured to default
fuse configuration. This is unnecessary if using default fuses.
2) If a user decides to program fuses. The FlexRAM will still be
reconfigured to the default fuse configuration.

Modify description in the binding to show how to use the property at:
dts/bindings/memory-controllers/nxp,flexram.yaml

Added board overlay to mimxrt1170_evk_cm7 magic_addr:
samples/boards/nxp/mimxrt1170_evk_cm7/magic_addr/boards

Signed-off-by: Jacob Wienecke <jacob.wienecke@nxp.com>
2025-02-20 06:04:46 +01:00
Benjamin Cabé
ae4d217f36 samples: fix spelling of "below"
s/bellow/below/

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-19 18:51:13 +01:00
Benjamin Cabé
848a461bbc samples: net: fix spelling of "Celsius"
Use correct spelling for celsius unit

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-19 18:51:13 +01:00
Benjamin Cabé
af28c00679 samples: doc: drop obsolete modemanager notice
As part of cleaning up usage of non-inclusive language in-tree,
I spotted an obsolete mention to a udev rule that ModemManager doesn't
use anymore. Drop it.
See commit 9639e52726854782508e35a75c6abf874bd9e608 in ModemManager
repo.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-19 18:48:15 +01:00
Declan Snyder
e76a5a8ed1 boards: mimxrt1050_evk: Fix test/sample conf names
Fix test/sample .conf names for this board, so they are actually pulled
into the build.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-02-18 18:38:51 +01:00
Robert Lubos
b8614607d4 samples: net: sockets: coap_download: Cancel requests before closing
Call coap_client_cancel_requests() before closing the client socket so
that all activities on that socket are ceased before close. This
prevents POLLNVAL error from being thrown by the coap_client thread and
error being printed in the sample output.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-02-18 13:31:15 +01:00
Benjamin Cabé
e3c6c87ffb samples: boards: Fix typo in nucleo_wba55cg overlay
s/MCO1_PRE_DIV_2/MCO_PRE_DIV_2/

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-17 16:48:32 +01:00
Bjarki Arge Andreasen
5c7f47de0f samples: drivers: i2c: rtio_loopback: add nrf54h20
Add nrf54h20 board support to the i2c rtio loopback sample.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-02-17 14:07:55 +01:00
Ram Mahesh
c0d8bd17d1 doc: Fix the doc issue in samples/net/wifi/apsta_mode/README.rst
In the above file, Building,Flashing and Running section is using
:zephyr-app: as samples/boards/espressif/deep_sleep.
But it should be samples/net/wifi/apsta_mode.
Fixes: #85505

Signed-off-by: Ram Mahesh <rammaheshram1234@gmail.com>
2025-02-16 21:05:41 +01:00
Emil Gydesen
4bf653aa4f samples: Bluetooth: CAP: Add missing k_sem_init
The source_stream_sem and sink_stream_sem semaphores were
never initialized, and thus when a disconnect happened the
call(s) to k_sem_give would fail fatally.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-02-15 07:23:28 +01:00
Mert Ekren
80536c1439 samples: drivers: sdhc: fs_sample: Add MAX32666fthr
Add MAX32666fthr for fs_sample testing

Signed-off-by: Mert Ekren <mert.ekren@analog.com>
2025-02-14 20:20:03 +01:00
Emil Gydesen
907261b619 Bluetooth: BAP: Remove GATT_CACHING req for unicast server
The unicast server does not need GATT caching and it was likely
incorrectly added earlier as a dependency.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-02-14 19:15:57 +00:00
Emil Gydesen
6713430783 samples: Bluetooth: BAP unicast server fix RX stack size
The sample is currently decoding in the BT RX thread,
and not the system workqueue thread,
which then requires additional stack size.

Ideally it would decode in a separate thread to avoid
expensive operations in the BT RX thread, but that is
outside the scope of this commit.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-02-14 19:15:49 +00:00
Anthony Williams
291a688de6 drivers: spi_nrfx: Fix NRFX_ASSERT crash when sck pin is set to no-connect
Fixes a bug in nrfx spi when used in modes where only MOSI is needed such
as driving a WS2812. In this mode NRFX_ASSERT() is triggered when sck pin
is configured as no-connect.

Signed-off-by: Anthony Williams <anthony289478@gmail.com>
2025-02-14 19:15:21 +00:00